Skip to contentSkip to conversation

drm/amdgpu: Add dcdebugmask option to enable DPIA trace

PATCH In review Stylon Wang 2 participants 2 messages Jul 6, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpu/drm/amd/include/amd_shared.h | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/include/amd_shared.h +1 -0
index f175e65b853a..abe829bbd54a 100644
@@ -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;
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw

[Public]

--

Regards,
Jay
________________________________
From: Wang, Chao-kai (Stylon) <[email protected]>
Sent: Thursday, July 6, 2023 3:00 AM
To: [email protected] <[email protected]>
Cc: Wentland, Harry <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Lakha, Bhawanpreet <[email protected]>; Siqueira, Rodrigo <[email protected]>; Pillai, Aurabindo <[email protected]>; Zhuo, Qingqing (Lillian) <[email protected]>; Li, Roman <[email protected]>; Lin, Wayne <[email protected]>; Wang, Chao-kai (Stylon) <[email protected]>; Chiu, Solomon <[email protected]>; Kotarac, Pavle <[email protected]>; Gutierrez, Agustin <[email protected]>
Subject: [PATCH] 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.

---
 drivers/gpu/drm/amd/include/amd_shared.h | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/include/amd_shared.h +1 -0
index f175e65b853a..abe829bbd54a 100644
@@ -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;

--
2.40.1