From: Nirmoy Das <nirmoy.das@linux.intel.com>
To: Jonathan-Cavitt <jonathan.cavitt@intel.com>,
igt-dev@lists.freedesktop.org
Cc: saurabhg.gupta@intel.com, alex.zuo@intel.com,
nirmoy.das@intel.com, chris.p.wilson@linux.intel.com,
john.c.harrison@intel.com
Subject: Re: [PATCH i-g-t] tests/intel/gem_spin_batch: Skip compute engines on DG2 due to w/a
Date: Mon, 19 Aug 2024 17:47:36 +0200 [thread overview]
Message-ID: <88be445a-0b20-4c9a-824a-8b1fbcceea2d@linux.intel.com> (raw)
In-Reply-To: <20240816213110.718186-1-jonathan.cavitt@intel.com>
On 8/16/2024 11:31 PM, Jonathan-Cavitt wrote:
> Much like MTL, there's a w/a on DG2 that prevent the execution of
> multiple non-preemptible processes on RCS and CCS. So, prevent the
> running of CCS engines in the 'spin-all-new' test, extending the MTL
> solution to DG2.
>
> Suggested-by: John Harrison <john.c.harrison@intel.com>
> Signed-off-by: Jonathan-Cavitt <jonathan.cavitt@intel.com>
> CC: Nirmoy Das <nirmoy.das@intel.com>
> CC: Chris Wilson <chris.p.wilson@linux.intel.com>
LGTM now that DG2 and MTL are handled in the same func
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
> ---
> tests/intel/gem_spin_batch.c | 22 +++++++++++++++-------
> 1 file changed, 15 insertions(+), 7 deletions(-)
>
> diff --git a/tests/intel/gem_spin_batch.c b/tests/intel/gem_spin_batch.c
> index 682a062180..85408a4c0d 100644
> --- a/tests/intel/gem_spin_batch.c
> +++ b/tests/intel/gem_spin_batch.c
> @@ -161,16 +161,24 @@ spin_on_all_engines(int fd, const intel_ctx_t *ctx,
> }
>
> /*
> - * Wa_14019159160:
> - * An RCS/CCS workaround on MTL means that contexts from different address spaces
> - * cannot run in parallel, they must be timesliced. However, a non-preemptible
> - * spinner cannot be timesliced. Thus the PARALLEL_SPIN_NEW_CTX test cannot be run
> - * across both RCS and CCS engines, one or other must be skipped for the test to
> - * not hit a heartbeat timeout and be killed.
> + * Wa_14019159160:MTL
> + * Wa_114014494547:DG2
> + * An RCS/CCS workaround on some platforms means that contexts from different
> + * address spaces cannot run in parallel, they must be timesliced. However, a
> + * non-preemptible spinner cannot be timesliced. Thus the PARALLEL_SPIN_NEW_CTX
> + * test cannot be run across both RCS and CCS engines, one or other must be
> + * skipped for the test to not hit a heartbeat timeout and be killed.
> */
> static bool skip_bad_engine(int fd, const struct intel_execution_engine2 *e)
> {
> - return IS_METEORLAKE(intel_get_drm_devid(fd)) && (e->class == I915_ENGINE_CLASS_COMPUTE);
> + uint32_t devid = intel_get_drm_devid(fd);
> +
> + if (IS_METEORLAKE(devid) && (e->class == I915_ENGINE_CLASS_COMPUTE))
> + return true;
> + else if (IS_DG2(devid) && (e->class == I915_ENGINE_CLASS_COMPUTE))
> + return true;
> + else
> + return false;
> }
>
> static void spin_all(int i915, const intel_ctx_t *ctx, unsigned int flags)
prev parent reply other threads:[~2024-08-19 15:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-16 21:31 [PATCH i-g-t] tests/intel/gem_spin_batch: Skip compute engines on DG2 due to w/a Jonathan-Cavitt
2024-08-16 22:44 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-08-16 22:55 ` ✓ CI.xeBAT: " Patchwork
2024-08-17 8:18 ` ✓ CI.xeFULL: " Patchwork
2024-08-18 14:53 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-08-19 15:47 ` Nirmoy Das [this message]
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=88be445a-0b20-4c9a-824a-8b1fbcceea2d@linux.intel.com \
--to=nirmoy.das@linux.intel.com \
--cc=alex.zuo@intel.com \
--cc=chris.p.wilson@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=john.c.harrison@intel.com \
--cc=jonathan.cavitt@intel.com \
--cc=nirmoy.das@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox