Skip to content

Commit de61273

Browse files
Leo Chenalexdeucher
authored andcommitted
drm/amd/display: Exit idle optimizations before attempt to access PHY
[Why & How] DMUB may hang when powering down pixel clocks due to no dprefclk. It is fixed by exiting idle optimization before the attempt to access PHY. Reviewed-by: Nicholas Kazlauskas <[email protected]> Acked-by: Alex Hung <[email protected]> Signed-off-by: Leo Chen <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 4509e69 commit de61273

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,10 +1792,13 @@ void dce110_enable_accelerated_mode(struct dc *dc, struct dc_state *context)
17921792
hws->funcs.edp_backlight_control(edp_link_with_sink, false);
17931793
}
17941794
/*resume from S3, no vbios posting, no need to power down again*/
1795+
clk_mgr_exit_optimized_pwr_state(dc, dc->clk_mgr);
1796+
17951797
power_down_all_hw_blocks(dc);
17961798
disable_vga_and_power_gate_all_controllers(dc);
17971799
if (edp_link_with_sink && !keep_edp_vdd_on)
17981800
dc->hwss.edp_power_control(edp_link_with_sink, false);
1801+
clk_mgr_optimize_pwr_state(dc, dc->clk_mgr);
17991802
}
18001803
bios_set_scratch_acc_mode_change(dc->ctx->dc_bios, 1);
18011804
}

0 commit comments

Comments
 (0)