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

drm/amd/display: Add work-around option to skip DCN20 clock updates

[Why] Auto Overclock Memory fails for some systems that don't support
p-state.

[How] Implement the workaround, and it's corresponding enable flag.

Signed-off-by: Jaehyun Chung <jaehyun.chung@amd.com>
Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jaehyun Chung and committed by
Alex Deucher
37495fbd f7f38ffe

+4
+3
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
··· 198 198 bool force_reset = false; 199 199 int i; 200 200 201 + if (dc->work_arounds.skip_clock_update) 202 + return; 203 + 201 204 if (clk_mgr_base->clks.dispclk_khz == 0 || 202 205 dc->debug.force_clock_mode & 0x1) { 203 206 //this is from resume or boot up, if forced_clock cfg option used, we bypass program dispclk and DPPCLK, but need set them for S3.
+1
drivers/gpu/drm/amd/display/dc/dc.h
··· 122 122 bool no_connect_phy_config; 123 123 bool dedcn20_305_wa; 124 124 struct display_mode_lib alternate_dml; 125 + bool skip_clock_update; 125 126 }; 126 127 #endif 127 128