[igt-dev] [PATCH i-g-t 1/1] tests/i915/gem_ctx_persistence: pre-emption support check.
Bommu, Krishnaiah
krishnaiah.bommu at intel.com
Fri Dec 20 15:40:30 UTC 2019
Check for I915_SCHEDULER_CAP_PREEMPTION support, if driver has support for
pre-emption test will continue otherwise skip the test
Cc: Welty, Brian <brian.welty at intel.com>
Cc: Dutt, Sudeep <sudeep.dutt at intel.com>
Signed-off-by: Bommu, Krishnaiah <krishnaiah.bommu at intel.com>
---
tests/i915/gem_ctx_persistence.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c
index d68431ae..282ce082 100644
--- a/tests/i915/gem_ctx_persistence.c
+++ b/tests/i915/gem_ctx_persistence.c
@@ -703,6 +703,7 @@ igt_main
i915 = drm_open_driver(DRIVER_INTEL);
igt_require_gem(i915);
+ igt_require(gem_scheduler_has_preemption(i915));
igt_require(has_persistence(i915));
enable_hangcheck(i915);
--
2.24.0
More information about the igt-dev
mailing list