diff options
author | David Zhang <dingchen.zhang@amd.com> | 2022-03-12 00:29:08 -0500 |
---|---|---|
committer | Aurabindo Pillai <aurabindo.pillai@amd.com> | 2022-03-16 15:49:06 -0400 |
commit | 893fc8f76bc755e1598032f11b006595bb64fc84 (patch) | |
tree | 5dd108c4685ef1b4825d3a8c6d1741e1fc079203 /tests/amdgpu | |
parent | 7d58593b9f502933d4e0d0ec7cf8268b5002bb54 (diff) |
lib/igt_amd: add helpers to check PSR state
[why]
For AMDGPU devices, we'd check the PSR state via reading from the
debugfs interface for a given eDP connector, where the debugfs
interface path locates at
<debugfs_root>/dri/0/eDP-X/psr_state
where 'X' is the eDP connector index.
[how]
define and add the helper to check if PSR state debugfs interface
is supported in driver, and the helper to read PSR state from the
debugfs interface.
Cc: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Diffstat (limited to 'tests/amdgpu')
-rw-r--r-- | tests/amdgpu/amd_psr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/amdgpu/amd_psr.c b/tests/amdgpu/amd_psr.c index 732eab25..865511d0 100644 --- a/tests/amdgpu/amd_psr.c +++ b/tests/amdgpu/amd_psr.c @@ -24,6 +24,7 @@ #include "igt.h" #include "igt_core.h" #include "igt_kms.h" +#include "igt_amd.h" #include <stdint.h> #include <fcntl.h> #include <xf86drmMode.h> |