From: Stylon Wang Date: Fri, 30 Jun 2023 08:48:23 +0000 (+0800) Subject: drm/amdgpu: Add dcdebugmask option to enable DPIA trace X-Git-Tag: v6.6.7~1918^2~20^2~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2225568cc7bbffc6fa4c65cdd83e2de2eacb84b;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Aurabindo Pillai Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index f175e65..abe829b 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;