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

drm/amd/display: Add dcdebugmask option for disabling MPO

[Why & How]

It's useful to disable MPO when debugging or testing. Therefore, add a
dcdebugmask option to disable MPO.

Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Leo Li and committed by
Alex Deucher
8813381a 792a0cdd

+5
+4
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 4197 4197 for (i = 0; i < dm->dc->caps.max_planes; ++i) { 4198 4198 struct dc_plane_cap *plane = &dm->dc->caps.planes[i]; 4199 4199 4200 + /* Do not create overlay if MPO disabled */ 4201 + if (amdgpu_dc_debug_mask & DC_DISABLE_MPO) 4202 + break; 4203 + 4200 4204 if (plane->type != DC_PLANE_TYPE_DCN_UNIVERSAL) 4201 4205 continue; 4202 4206
+1
drivers/gpu/drm/amd/include/amd_shared.h
··· 249 249 DC_DISABLE_CLOCK_GATING = 0x8, 250 250 DC_DISABLE_PSR = 0x10, 251 251 DC_FORCE_SUBVP_MCLK_SWITCH = 0x20, 252 + DC_DISABLE_MPO = 0x40, 252 253 }; 253 254 254 255 enum amd_dpm_forced_level;