]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fic incorrect pipe being used for clk update
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Thu, 5 May 2022 20:16:47 +0000 (16:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 May 2022 18:56:31 +0000 (14:56 -0400)
commitdb4e51f3c1c66e27a42009b97d4466016a39dfec
treeee4c9e1df6951bce6a26f106270a4d2a7e0fed36
parent425b665db5d0a48b4e25a7a8a82cc2f14595f0ee
drm/amd/display: Fic incorrect pipe being used for clk update

[Why]
we save the prev_dppclk value using "dpp_inst" but
when reading this value we use the index "i". In
a case where a pipe is fused off we can end up reading
the incorrect instance because i != dpp_inst in this
case.

[How]
read the prev_dppclk using dpp_inst instead of i

Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@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/clk_mgr/dcn21/rn_clk_mgr.c