drm/amd/display: Force max clocks unconditionally when p-state is unsupported
authorDillon Varone <dillon.varone@amd.com>
Thu, 16 May 2024 02:48:10 +0000 (22:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 19:23:50 +0000 (15:23 -0400)
commitba73d69a2c03d4cc10b09b2d5579f997eb26f61d
treee3d992710079629719db8c580a9fbf387ffbc6a0
parent028383b64da2c8c59d0f049c68c816b634d98641
drm/amd/display: Force max clocks unconditionally when p-state is unsupported

[WHY&HOW]
UCLK and FCLK are updated together, so an FCLK update can also cause UCLK update
to SMU.  When this happens, the UCLK provided should be max if switching is
unsupported.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@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/dcn401/dcn401_clk_mgr.c