drm/amd: Add a DC debug mask for IPS
authorRoman Li <Roman.Li@amd.com>
Tue, 23 Jan 2024 20:14:28 +0000 (15:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jan 2024 21:00:24 +0000 (16:00 -0500)
For debugging IPS-related issues, expose a new debug mask
that allows to disable IPS.
Usage:
amdgpu.dcdebugmask=0x800

Signed-off-by: Roman Li <Roman.Li@amd.com>
Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/amd_shared.h

index 1dc5dd9..df2c7ff 100644 (file)
@@ -258,6 +258,7 @@ enum DC_DEBUG_MASK {
        DC_ENABLE_DML2 = 0x100,
        DC_DISABLE_PSR_SU = 0x200,
        DC_DISABLE_REPLAY = 0x400,
+       DC_DISABLE_IPS = 0x800,
 };
 
 enum amd_dpm_forced_level;