drm/amd/display: Set exit_optimized_pwr_state for DCN31
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 10 Dec 2021 23:03:59 +0000 (15:03 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Dec 2021 22:53:26 +0000 (17:53 -0500)
commit7e4d2f30df3fb48f75ce9e96867d42bdddab83ac
tree72b4ec8505900f5f0737034d22792243e9cfd545
parentdcd10d879a9d1d4e929d374c2f24aba8fac3252b
drm/amd/display: Set exit_optimized_pwr_state for DCN31

[Why]
SMU now respects the PHY refclk disable request from driver.

This causes a hang during hotplug when PHY refclk was disabled
because it's not being re-enabled and the transmitter control
starts on dc_link_detect.

[How]
We normally would re-enable the clk with exit_optimized_pwr_state
but this is only set on DCN21 and DCN301. Set it for dcn31 as well.

This fixes DMCUB timeouts in the PHY.

Fixes: 64b1d0e8d500 ("drm/amd/display: Add DCN3.1 HWSEQ")

Reviewed-by: Eric Yang <Eric.Yang2@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_init.c