drm/amd/display: On clock init, maintain DISPCLK freq
authorChris Park <chris.park@amd.com>
Tue, 4 Jun 2024 18:25:14 +0000 (14:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:55 +0000 (16:18 -0400)
commit3838c6736524c903a95cd1d46fcbbcb6cae8e42f
tree31d10f8e4e291fc86cd719b56297bc3fe4c2fb6a
parent3a69c1702fdff79f631525ac6dc4487de050865a
drm/amd/display: On clock init, maintain DISPCLK freq

[Why]
On init if a display is connected, we need to maintain the DISPCLK
frequency Even though DPG_EN=1, the display still requires the correct
timing or it could cause audio corruption (if DISPCLK freq is reduced).

[How]
Read the current DISPCLK freq and request the same value to ensure the
timing is valid and unchanged.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Chris Park <chris.park@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c