From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: Mikolaj Wasiak <mikolaj.wasiak@intel.com>
Cc: <igt-dev@lists.freedesktop.org>, <andi.shyti@intel.com>,
<krzysztof.karas@intel.com>, <janusz.krzysztofik@intel.com>
Subject: Re: [PATCH I-G-T v5] tests/intel/i915_hangman: Fix spin engine hang
Date: Thu, 19 Dec 2024 13:19:01 -0800 [thread overview]
Message-ID: <Z2SNxfSA/stYuCbt@orsosgc001> (raw)
In-Reply-To: <ewfsrzwiwey464lvqix4apzswvmfs4vvwbnndxdbrvtmtyjev5@p3lqcqy6sxve>
On Tue, Dec 17, 2024 at 02:45:53PM +0100, Mikolaj Wasiak wrote:
>On DG2 when RCS engine is active, the CCS engine freezes which leads to
>hangman test failures.
>This patch disables RCS and CCS background spins when testing any engine
>on hangman.
>
>Signed-off-by: Mikolaj Wasiak <mikolaj.wasiak@intel.com>
>---
> tests/intel/i915_hangman.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
>diff --git a/tests/intel/i915_hangman.c b/tests/intel/i915_hangman.c
>index a556eec53..6f1fdc788 100644
>--- a/tests/intel/i915_hangman.c
>+++ b/tests/intel/i915_hangman.c
>@@ -365,6 +365,12 @@ static void chk_err(int *dst, int err, int expected)
> #define ERR_FENCE_END 3
> #define ERR_FENCE_STAT 4
>
>+static bool is_rcs_ccs(const struct intel_execution_engine2 *e)
>+{
>+ return e->class == I915_ENGINE_CLASS_COMPUTE ||
>+ e->class == I915_ENGINE_CLASS_RENDER;
>+}
>+
> static void
> test_engine_hang(const intel_ctx_t *ctx,
> const struct intel_execution_engine2 *e, unsigned int flags)
>@@ -388,6 +394,14 @@ test_engine_hang(const intel_ctx_t *ctx,
> */
> num_ctx = 0;
> for_each_ctx_engine(device, ctx, other) {
>+ /* Due to Wa_14014494547:DG2 we can't run RCS and CCS
>+ * in parallel. We still want background spin of the
>+ * same type as hanged spin to be run.
>+ */
Ideally this should be (IS_DG2 && is_rcs_ccs(e) && is_rcs_ccs(other)),
but if this is working for you, then
Acked-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
>+ if (IS_DG2(intel_get_drm_devid(device)) &&
>is_rcs_ccs(other) &&
>+ other->class != e->class)
>+ continue;
>+
> local_ctx[num_ctx] = intel_ctx_create(device, &ctx->cfg);
> context_unban(device, local_ctx[num_ctx]->id);
> ahndN = get_reloc_ahnd(device, local_ctx[num_ctx]->id);
>--
>2.47.1
>
next prev parent reply other threads:[~2024-12-19 21:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-17 13:45 [PATCH I-G-T v5] tests/intel/i915_hangman: Fix spin engine hang Mikolaj Wasiak
2024-12-18 12:22 ` ✓ i915.CI.BAT: success for tests/intel/i915_hangman: Fix spin engine hang (rev5) Patchwork
2024-12-18 12:50 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-18 18:39 ` ✗ i915.CI.Full: failure " Patchwork
2024-12-20 7:52 ` Mikolaj Wasiak
2024-12-18 21:52 ` ✗ Xe.CI.Full: " Patchwork
2024-12-20 8:13 ` Mikolaj Wasiak
2024-12-19 21:19 ` Umesh Nerlige Ramappa [this message]
2024-12-20 8:22 ` [PATCH I-G-T v5] tests/intel/i915_hangman: Fix spin engine hang Mikolaj Wasiak
2024-12-30 12:49 ` Krzysztof Karas
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=Z2SNxfSA/stYuCbt@orsosgc001 \
--to=umesh.nerlige.ramappa@intel.com \
--cc=andi.shyti@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=janusz.krzysztofik@intel.com \
--cc=krzysztof.karas@intel.com \
--cc=mikolaj.wasiak@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox