]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add DMUB firmware state debugfs
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 11 Feb 2020 14:48:18 +0000 (09:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:05:57 +0000 (11:05 -0500)
commitb6c755bb96e20c6d8aa846d1db93fedbd09558c6
treea0f12f1cbfafb9ca70550799726e1bb0597a5e71
parent73b6e100816464c928924beb73fe56ca2a4b7be2
drm/amd/display: Add DMUB firmware state debugfs

[Why]
Firmware state helps to debug sequence issues and hangs for DMCUB
commands and we don't have an easy mechanism to dump it from the driver.

[How]
Add a debugfs entry to dump the current firmware state.
Example usage:

cat /sys/kernel/debug/dri/0/amdgpu_dm_dmub_fw_state

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