[PATCH i-g-t] tests/intel/xe_compute_preempt: Run it on only CCS engine

Nirmoy Das nirmoy.das at intel.com
Thu Apr 4 10:29:01 UTC 2024


Expectation is that mid thread preemption works on CCS and
RCS is optional. In future we should check with engine capability
when that such uAPI is supported by the KMD.

Cc: Janga Rahul Kumar <janga.rahul.kumar at intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
---
 tests/intel/xe_compute_preempt.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/tests/intel/xe_compute_preempt.c b/tests/intel/xe_compute_preempt.c
index b8448ef91..78b19158d 100644
--- a/tests/intel/xe_compute_preempt.c
+++ b/tests/intel/xe_compute_preempt.c
@@ -49,8 +49,7 @@ igt_main
 
 	igt_subtest_with_dynamic("compute-preempt") {
 		xe_for_each_engine(xe, hwe) {
-			if (hwe->engine_class != DRM_XE_ENGINE_CLASS_COMPUTE &&
-			    hwe->engine_class != DRM_XE_ENGINE_CLASS_RENDER)
+			if (hwe->engine_class != DRM_XE_ENGINE_CLASS_COMPUTE)
 				continue;
 
 			igt_dynamic_f("engine-%s", xe_engine_class_string(hwe->engine_class))
@@ -60,7 +59,6 @@ igt_main
 
 	igt_subtest_with_dynamic("compute-preempt-many") {
 		xe_for_each_engine(xe, hwe) {
-			/* TODO: This subtest fails on RCS engine */
 			if (hwe->engine_class != DRM_XE_ENGINE_CLASS_COMPUTE)
 				continue;
 
@@ -74,8 +72,7 @@ igt_main
 
 	igt_subtest_with_dynamic("compute-threadgroup-preempt") {
 		xe_for_each_engine(xe, hwe) {
-			if (hwe->engine_class != DRM_XE_ENGINE_CLASS_COMPUTE &&
-			    hwe->engine_class != DRM_XE_ENGINE_CLASS_RENDER)
+			if (hwe->engine_class != DRM_XE_ENGINE_CLASS_COMPUTE)
 				continue;
 
 			igt_dynamic_f("engine-%s", xe_engine_class_string(hwe->engine_class))
-- 
2.42.0



More information about the igt-dev mailing list