From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4371B10E6D9 for ; Wed, 5 Jan 2022 10:21:48 +0000 (UTC) From: priyanka.dandamudi@intel.com Date: Wed, 5 Jan 2022 15:40:22 +0530 Message-Id: <20220105101022.1604358-1-priyanka.dandamudi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2] tests/i915/gem_ctx_exec: Skip test for RCS+CCS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" 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 List-ID: From: Priyanka Dandamudi 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 Cc: John Harrison Cc: Melkaveri, Arjun --- 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