]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2024 23:35:25 +0000 (18:35 -0500)
commit24d3749c11d949972d8c22e75567dc90ff5482e7
tree8c6bbba8794985080e2c76000d563242a57b8624
parent6a7fd76b949efe40fb6d6677f480e624e0cb6e40
drm/amd/display: Correct prefetch calculation

[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>
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c