drm/amd/display: add a debugfs interface for the DMUB trace mask
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Thu, 9 Nov 2023 21:42:32 +0000 (16:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 14:30:49 +0000 (09:30 -0500)
commitc41028a2a16303e5a59e11338d6ef5475945c79d
treee6353a876a60364e5f606dedc5e57175998dc353
parentfcfc6ceec3ebb725a0d6381a1120e7cd546e1df4
drm/amd/display: add a debugfs interface for the DMUB trace mask

For features that are implemented primarily in DMUB (e.g. PSR), it is
useful to be able to trace them at a DMUB level from the kernel,
especially when debugging issues. So, introduce a debugfs interface that
is able to read and set the DMUB trace mask dynamically at runtime and
document how to use it.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Documentation/gpu/amdgpu/display/dc-debug.rst
Documentation/gpu/amdgpu/display/trace-groups-table.csv [new file with mode: 0644]
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h