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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: DCN35 set min dispclk to 50Mhz

[Why]

Causes hard hangs when resuming after display off on extended/duplicate
modes

[How]

Set the min dispclk to 50Mhz for DCN35

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Nicholas Susanto <Nicholas.Susanto@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Nicholas Susanto and committed by
Alex Deucher
23444132 ec9e2e7a

+4
+3
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
··· 305 305 if (new_clocks->dtbclk_en && !new_clocks->ref_dtbclk_khz) 306 306 new_clocks->ref_dtbclk_khz = 600000; 307 307 308 + if (dc->debug.min_disp_clk_khz > 0 && new_clocks->dispclk_khz < dc->debug.min_disp_clk_khz) 309 + new_clocks->dispclk_khz = dc->debug.min_disp_clk_khz; 310 + 308 311 /* 309 312 * if it is safe to lower, but we are already in the lower state, we don't have to do anything 310 313 * also if safe to lower is false, we just go in the higher state
+1
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
··· 786 786 .disable_dmub_reallow_idle = false, 787 787 .static_screen_wait_frames = 2, 788 788 .disable_timeout = true, 789 + .min_disp_clk_khz = 50000, 789 790 }; 790 791 791 792 static const struct dc_panel_config panel_config_defaults = {