drm/amd/display: Add DMUB tracebuffer debugfs
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 15 Jan 2020 19:39:52 +0000 (14:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 20:04:38 +0000 (15:04 -0500)
commit60ec1b5633afaf624290c1d62145285f005634bd
tree9bedea5c19346249c22eb8f29ed5024cbc2ca7c3
parent7e1482b1c7c0d78110558d1cd31f1c1bf4209575
drm/amd/display: Add DMUB tracebuffer debugfs

[Why]
The DMUB tracebuffer is useful for understanding DMCUB execution state.

[How]
Add a "show" attribute debugfs so we can loop through the buffer
and print the entries.

The structs for the entry format are defined in the debugfs since
the tracebuffer header no longer exists in the DMUB service.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c