From bcb9d6f8b9f93610bf5964381431eef5c0dfa675 Mon Sep 17 00:00:00 2001 From: Michel Thierry Date: Wed, 28 Jun 2017 11:36:54 -0700 Subject: lib: Add reset-type helper in ioctl_wrappers Soon we will have tests that are only for platforms with reset-engine (GEN8+), so add a helper to query the has_gpu_reset via the getparam ioctl. v2: Add more helper functions to avoid using magic numbers in tests (Arek). Cc: Arkadiusz Hiler Signed-off-by: Michel Thierry Acked-by: Arkadiusz Hiler --- lib/ioctl_wrappers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ioctl_wrappers.h') diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index e1279d94..8915edca 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -166,6 +166,9 @@ bool gem_has_bsd2(int fd); int gem_gtt_type(int fd); bool gem_uses_ppgtt(int fd); bool gem_uses_full_ppgtt(int fd); +int gem_gpu_reset_type(int fd); +bool gem_gpu_reset_enabled(int fd); +bool gem_engine_reset_enabled(int fd); int gem_available_fences(int fd); uint64_t gem_total_mappable_size(int fd); uint64_t gem_total_stolen_size(int fd); -- cgit v1.2.3