mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
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>
This commit is contained in:
@@ -4197,6 +4197,10 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
|
||||
for (i = 0; i < dm->dc->caps.max_planes; ++i) {
|
||||
struct dc_plane_cap *plane = &dm->dc->caps.planes[i];
|
||||
|
||||
/* Do not create overlay if MPO disabled */
|
||||
if (amdgpu_dc_debug_mask & DC_DISABLE_MPO)
|
||||
break;
|
||||
|
||||
if (plane->type != DC_PLANE_TYPE_DCN_UNIVERSAL)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user