Skip to content

Commit 9d63fbf

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
drm/amd: Add debug option to disable subvp
Some monitors flicker when subvp is enabled which maybe related to an uncommon timing they use. To isolate such issues, add a debug option to help isolate this the issue for debugging. Signed-off-by: Aurabindo Pillai <[email protected]> Acked-by: Alex Deucher <[email protected]> Suggested-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 36a21f2 commit 9d63fbf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
20342034
if (amdgpu_dc_debug_mask & DC_FORCE_SUBVP_MCLK_SWITCH)
20352035
adev->dm.dc->debug.force_subvp_mclk_switch = true;
20362036

2037+
if (amdgpu_dc_debug_mask & DC_DISABLE_SUBVP)
2038+
adev->dm.dc->debug.force_disable_subvp = true;
2039+
20372040
if (amdgpu_dc_debug_mask & DC_ENABLE_DML2) {
20382041
adev->dm.dc->debug.using_dml2 = true;
20392042
adev->dm.dc->debug.using_dml21 = true;

drivers/gpu/drm/amd/include/amd_shared.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ enum DC_DEBUG_MASK {
349349
* @DC_DISABLE_HDMI_CEC: If set, disable HDMI-CEC feature in amdgpu driver.
350350
*/
351351
DC_DISABLE_HDMI_CEC = 0x10000,
352+
353+
/*
354+
* @DC_DISABLE_SUBVP: If set, disable DCN Sub-Viewport feature in amdgpu driver.
355+
*/
356+
DC_DISABLE_SUBVP = 0x20000,
352357
};
353358

354359
enum amd_dpm_forced_level;

0 commit comments

Comments
 (0)