drm/amd/display: Avoid avoid unnecessary pixel rate divider programming
authorTaimur Hassan <Syed.Hassan@amd.com>
Tue, 13 Sep 2022 20:04:06 +0000 (16:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:44 +0000 (09:41 -0400)
commit202c1e3dbc882c9040208223c12d158286475084
tree2811e8172121c562eb1fd69f3dbfcd18ae927c7b
parent15afe32388bac88661ffdc1645be2a038f49b9f2
drm/amd/display: Avoid avoid unnecessary pixel rate divider programming

[Why]
Programming pixel rate divider when FIFO is enabled can cause FIFO error.

[How]
Skip divider programming when divider values are the same to prevent FIFO
error.

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Taimur Hassan <Syed.Hassan@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/dcn314/dcn314_dccg.c