All of lore.kernel.org
 help / color / mirror / Atom feed
From: priyanka.dandamudi@intel.com
To: igt-dev@lists.freedesktop.org, arjun.melkaveri@intel.com,
	priyanka.dandamudi@intel.com, ashutosh.dixit@intel.com,
	John.C.Harrison@Intel.com, saurabhg.gupta@intel.com
Subject: [igt-dev] [PATCH i-g-t v2] tests/i915/gem_ctx_exec: Skip test for RCS+CCS
Date: Wed,  5 Jan 2022 15:40:22 +0530	[thread overview]
Message-ID: <20220105101022.1604358-1-priyanka.dandamudi@intel.com> (raw)

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

The test tries to submit non-preemptible spinners to all engines,
causes a hang and expects the non-preemptible spinners to survive
but fails to do for RCS+CCS.
So, updated the code to skip nohangcheck subtest for a platform with RCS+CCS.

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 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c
index a1270a88..7b2aa390 100644
--- a/tests/i915/gem_ctx_exec.c
+++ b/tests/i915/gem_ctx_exec.c
@@ -276,6 +276,8 @@ static void nohangcheck_hostile(int i915)
 	int err = 0;
 	int dir;
 	uint64_t ahnd;
+	bool rcs0 = false;
+	bool ccs0 = false;
 
 	/*
 	 * Even if the user disables hangcheck during their context,
@@ -292,6 +294,20 @@ static void nohangcheck_hostile(int i915)
 	ahnd = get_reloc_ahnd(i915, ctx->id);
 
 	igt_require(__enable_hangcheck(dir, false));
+	/* Skips for RCS+CCS combination when nopreemption batch submitted*/
+	for_each_ctx_engine (i915, ctx, e) {
+		if (rcs0 && ccs0)
+			break;
+		else if (!rcs0) {
+			if (e->class == I915_ENGINE_CLASS_RENDER)
+				rcs0 = true;
+		}
+		else if (!ccs0) {
+			if (e->class == I915_ENGINE_CLASS_COMPUTE)
+				ccs0 = true;
+		}
+	}
+	igt_require(!(rcs0 && ccs0));
 
 	for_each_ctx_engine(i915, ctx, e) {
 		igt_spin_t *spin;
-- 
2.25.1

             reply	other threads:[~2022-01-05 10:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-05 10:10 priyanka.dandamudi [this message]
2022-01-05 11:20 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/i915/gem_ctx_exec: Skip test for RCS+CCS (rev2) Patchwork
2022-01-05 12:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-01-06  2:41 ` [igt-dev] [PATCH i-g-t v2] tests/i915/gem_ctx_exec: Skip test for RCS+CCS Dixit, Ashutosh
2022-01-06  4:27   ` Dandamudi, Priyanka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220105101022.1604358-1-priyanka.dandamudi@intel.com \
    --to=priyanka.dandamudi@intel.com \
    --cc=John.C.Harrison@Intel.com \
    --cc=arjun.melkaveri@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=saurabhg.gupta@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.