]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Add Replay capability and state in debugfs
authorTom Chung <chiahsuan.chung@amd.com>
Wed, 17 Apr 2024 09:29:42 +0000 (17:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 18:56:51 +0000 (14:56 -0400)
commit504a336a57df8e5c7e136b1a594ffc4a1875dae8
treec3aede7e3aedb99395783c7a22daa455143aaa74
parent23554c3ec85a7d7300f896e5a75bbb1e6a06f5c6
drm/amd/display: Add Replay capability and state in debugfs

[Why & How]
User can get the panel replay capability and state for debug.

sudo cat /sys/kernel/debug/dri/0/eDP-1/replay_capability
"Sink support: no" - if panel doesn't support Replay
"Sink support: yes" - if panel supports Replay
"Driver support: no\n" - if driver doesn't support Replay
"Driver support: yes\n" - if driver supports Replay

sudo cat /sys/kernel/debug/dri/0/eDP-1/replay_state
It will return current panel replay state

Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.h