Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Prevent Diags from entering S2

[why]
Lowering clocks when entering S2 Idle state causes DMUB to hang with
Diags.

[how]
Do not enter S2 optimization with Diags on dcn301 to prevent DMUB hang.

Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mikita Lipski and committed by
Alex Deucher
97b9c006 23e55639

+1 -1
+1 -1
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
··· 114 114 115 115 display_count = vg_get_active_display_cnt_wa(dc, context); 116 116 /* if we can go lower, go lower */ 117 - if (display_count == 0) { 117 + if (display_count == 0 && !IS_DIAG_DC(dc->ctx->dce_environment)) { 118 118 union display_idle_optimization_u idle_info = { 0 }; 119 119 120 120 idle_info.idle_info.df_request_disabled = 1;