]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Guard DST_Y_PREFETCH register overflow in DCN21
authorVictor Lu <victorchengchi.lu@amd.com>
Thu, 8 Jul 2021 18:50:48 +0000 (14:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jul 2021 16:43:09 +0000 (12:43 -0400)
commitaa088d4dcd120d4d887678deb3213dca1b0d8ce1
treeabffd449db79405d305286ff3c1e64c8f6dbfeb7
parente449a6b98f27714e566c0185ab38e9271950a907
drm/amd/display: Guard DST_Y_PREFETCH register overflow in DCN21

[why]
DST_Y_PREFETCH can overflow when DestinationLinesForPrefetch values are
too large due to the former being limited to 8 bits.

[how]
Set the maximum value of DestinationLinesForPrefetch to be 255 * refclk
period.

Reviewed-by: Laktyushkin Dmytro <dmytro.laktyushkin@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Victor Lu <victorchengchi.lu@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/dml/dcn21/display_mode_vba_21.c