drm/amd/display: Add support for hw_state logging via debugfs
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 14 Aug 2018 19:40:57 +0000 (15:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 20:20:17 +0000 (15:20 -0500)
commite498eb7136042aa9a352b1039c678537f4694158
treed764727b8a40ce5714fb40443fe4ab09351ae9f1
parente5d0170e5644508a28e063995b89af4fdabd38b9
drm/amd/display: Add support for hw_state logging via debugfs

[Why]

We have logging methods for printing hardware state for newer ASICs
but no way to trigger the log output.

[How]

Add support for triggering the output via writing to a debugfs file
entry. Log output currently goes into dmesg for convenience, but
accessing via a read should be possible later.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c