]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitc1969fbaa57d88ddef626bb8ae313d38478d8631
tree712b7ab5cda9d4f8ef8c146955af1453d9e90fa1
parentf7367b5fe0e38af02d6915a355f2ee63b172c9ac
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