]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Correct prefetch calculation
authorLo-an Chen <lo-an.chen@amd.com>
Thu, 14 Nov 2024 09:53:41 +0000 (17:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:28 +0000 (20:03 +0100)
commita249735619a8050417b49dfa86896a547d9b5680
tree0be29a2c53151aeac982c346f8d271593870c9bf
parentbe826b4451fd187a7c0b04be4f8243d5df6e0450
drm/amd/display: Correct prefetch calculation

commit 24d3749c11d949972d8c22e75567dc90ff5482e7 upstream.

[WHY]
The minimum value of the dst_y_prefetch_equ was not correct
in prefetch calculation whice causes OPTC underflow.

[HOW]
Add the min operation of dst_y_prefetch_equ in prefetch calculation.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Lo-an Chen <lo-an.chen@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c