All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_exec: Skip test for RCS+CCS
@ 2021-12-29  7:52 priyanka.dandamudi
  2021-12-29 11:31 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: priyanka.dandamudi @ 2021-12-29  7:52 UTC (permalink / raw)
  To: igt-dev, arjun.melkaveri, priyanka.dandamudi, ashutosh.dixit,
	John.C.Harrison, saurabhg.gupta

From: Priyanka Dandamudi <priyanka.dandamudi@intel.com>

Updated the nohangcheck test to skip for DG2
as test fails when reset is applied for the RCS+CCS combination.

Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Melkaveri, Arjun <arjun.melkaveri@intel.com>
---
 tests/i915/gem_ctx_exec.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c
index a1270a88..dbb46404 100644
--- a/tests/i915/gem_ctx_exec.c
+++ b/tests/i915/gem_ctx_exec.c
@@ -276,6 +276,9 @@ static void nohangcheck_hostile(int i915)
 	int err = 0;
 	int dir;
 	uint64_t ahnd;
+	bool rcs_found = false;
+	bool ccs_found = false;
+
 
 	/*
 	 * Even if the user disables hangcheck during their context,
@@ -293,6 +296,17 @@ static void nohangcheck_hostile(int i915)
 
 	igt_require(__enable_hangcheck(dir, false));
 
+	for_each_ctx_engine(i915, ctx, e) {
+		if(rcs_found && ccs_found)
+			break;
+		else if(e->class == I915_ENGINE_CLASS_RENDER && rcs_found == false){
+			rcs_found = true;
+			continue;
+		}
+		else if(e->class == I915_ENGINE_CLASS_COMPUTE && ccs_found == false)
+			ccs_found = true;
+	}
+	igt_require(!(rcs_found && ccs_found));
 	for_each_ctx_engine(i915, ctx, e) {
 		igt_spin_t *spin;
 		int new;
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-05  8:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-29  7:52 [igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_exec: Skip test for RCS+CCS priyanka.dandamudi
2021-12-29 11:31 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-12-29 12:41 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-12-29 20:42 ` [igt-dev] [PATCH i-g-t] " Dixit, Ashutosh
2021-12-30 16:43   ` Ewins, Jon
2022-01-04 19:42 ` John Harrison
2022-01-05  6:01   ` Dandamudi, Priyanka
2022-01-05  8:46     ` Dandamudi, Priyanka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.