[PATCH i-g-t] tests/xe_exec_threads: Skip Compute engine for legacy mode

Tejas Upadhyay tejas.upadhyay at intel.com
Mon Apr 1 14:48:34 UTC 2024


RCS/CCS are dependent engines as they are sharing reset
domain. Whenever there is reset from CCS, all the exec queues
running on RCS are victimised.

Lets skip parallel execution on CCS with RCS.

Fixes: VLK-55941, VLK-52341
Signed-off-by: Tejas Upadhyay <tejas.upadhyay at intel.com>
---
 tests/intel/xe_exec_threads.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/intel/xe_exec_threads.c b/tests/intel/xe_exec_threads.c
index e9588f9b9..b1c65e1c5 100644
--- a/tests/intel/xe_exec_threads.c
+++ b/tests/intel/xe_exec_threads.c
@@ -996,6 +996,14 @@ static void threads(int fd, int flags)
 	}
 
 	xe_for_each_engine(fd, hwe) {
+		/* RCS/CCS sharing reset domain hence dependent engines.
+		 * When CCS is doing reset, all the contexts of RCS are
+		 * victimised, so skip the compute engine avoiding
+		 * parallel execution with RCS
+		 */
+		if (hwe->engine_class == DRM_XE_ENGINE_CLASS_COMPUTE)
+			continue;
+
 		threads_data[i].mutex = &mutex;
 		threads_data[i].cond = &cond;
 #define ADDRESS_SHIFT	39
-- 
2.25.1



More information about the Intel-xe mailing list