]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Reorder FCLK P-state switch sequence for DCN32
authorDillon Varone <Dillon.Varone@amd.com>
Mon, 19 Sep 2022 17:14:02 +0000 (13:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 15:57:43 +0000 (11:57 -0400)
commit3426c3c33db985f8851207236d8a9e2e7b3df45a
tree712b7ab5cda9d4f8ef8c146955af1453d9e90fa1
parent3b62cfea478afa977218e83435d4d82879a3f151
drm/amd/display: Reorder FCLK P-state switch sequence for DCN32

[WHY?]
In some cases, DCFCLK hardmin requests are not acknowledged by SMU as
the requested clock does not have a compatible ratio with current FCLK,
and it cannot be changed as FCLK P-state is not allowed.

[HOW?]
Allow FCLK p-state change prior to changing DCFCLK hardmin.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c