aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStylon Wang <[email protected]>2023-06-30 16:48:23 +0800
committerAlex Deucher <[email protected]>2023-07-18 11:11:57 -0400
commitb2225568cc7bbffc6fa4c65cdd83e2de2eacb84b (patch)
treef482805203a5889b37d8adb664d1e919b59dae50
parent5229a37e17dd3edea08b56e0303c410a18c695af (diff)
drm/amdgpu: Add dcdebugmask option to enable DPIA trace
[Why & How] It's useful to be able to enable DPIA trace with dcdebugmask option, especially to debug DPIA issues involved in transition of system power states. This patch adds an option to amdgpu.dcdebugmask to be picked up by amdgpu DM to enable DPIA trace. Signed-off-by: Stylon Wang <[email protected]> Reviewed-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/include/amd_shared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h
index f175e65b853a..abe829bbd54a 100644
--- a/drivers/gpu/drm/amd/include/amd_shared.h
+++ b/drivers/gpu/drm/amd/include/amd_shared.h
@@ -250,6 +250,7 @@ enum DC_DEBUG_MASK {
DC_DISABLE_PSR = 0x10,
DC_FORCE_SUBVP_MCLK_SWITCH = 0x20,
DC_DISABLE_MPO = 0x40,
+ DC_ENABLE_DPIA_TRACE = 0x80,
};
enum amd_dpm_forced_level;