From: Matthew Brost <matthew.brost@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>,
<igt-dev@lists.freedesktop.org>,
Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Subject: Re: [PATCH i-g-t] lib/intel_compute: Wait for compute walker before returning to ring
Date: Thu, 26 Feb 2026 10:20:49 -0800 [thread overview]
Message-ID: <aaCPAXa/r7FeJw7b@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <qpbdm4jnjgoeygdnrbdjvbqx2arrp64cuze62izvzvp5v6xbaw@76hvvll2vrzb>
On Tue, Feb 03, 2026 at 08:57:56AM +0100, Zbigniew Kempczyński wrote:
> On Mon, Feb 02, 2026 at 03:15:58PM +0100, Francois Dugast wrote:
> > On Thu, Jan 22, 2026 at 11:45:29AM +0100, Zbigniew Kempczyński wrote:
> > > Most compute tests don't need to synchronize at the batch level as
> > > kmd executes pipe-control at some point. Last xe driver proposal (link
> > > below) causes turning off preemption before pipe-control preventing
> > > entering to SIP and finish the WMTP test properly.
> > >
> > > Change adds pipe-control at batch level causing sync wait on
> > > compute-walker and preventing disabling the preemption prematurely.
> >
> > This looks right and does solve the issue when applying the referenced KMD
> > change, so it would be necessary going forward.
> >
> > For maintainability, can we please replace the 8 occurrences of 0x00100000
> > with a define, maybe in a preparation patch?
>
> Maybe emit_pipe_control() function similar to xe_ring_ops.c would be better?
>
Yes, let's drop the hard coded numbers in this IGT but this can be done
in a follow up as this patch is no worse than the existing code. I also
just merged the KMD part which will break so CI so...
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> --
> Zbigniew
>
> >
> > Francois
> >
> > >
> > > Link: https://patchwork.freedesktop.org/series/160113/
> > > Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> > > Cc: Matthew Brost <matthew.brost@intel.com>
> > > Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> > > Cc: Francois Dugast <francois.dugast@intel.com>
> > > ---
> > > lib/intel_compute.c | 14 ++++++++++++++
> > > 1 file changed, 14 insertions(+)
> > >
> > > diff --git a/lib/intel_compute.c b/lib/intel_compute.c
> > > index 00ef280e8f..8578b6e402 100644
> > > --- a/lib/intel_compute.c
> > > +++ b/lib/intel_compute.c
> > > @@ -1694,6 +1694,13 @@ static void xe2lpg_compute_exec_compute(int fd,
> > > addr_bo_buffer_batch[b++] = 0x00000000;
> > > addr_bo_buffer_batch[b++] = 0x00000000;
> > >
> > > + addr_bo_buffer_batch[b++] = PIPE_CONTROL;
> > > + addr_bo_buffer_batch[b++] = 0x00100000;
> > > + addr_bo_buffer_batch[b++] = 0x00000000;
> > > + addr_bo_buffer_batch[b++] = 0x00000000;
> > > + addr_bo_buffer_batch[b++] = 0x00000000;
> > > + addr_bo_buffer_batch[b++] = 0x00000000;
> > > +
> > > addr_bo_buffer_batch[b++] = MI_BATCH_BUFFER_END;
> > > }
> > >
> > > @@ -2032,6 +2039,13 @@ static void xe3p_compute_exec_compute(int fd,
> > > addr_bo_buffer_batch[b++] = 0x00000000; /* dw62 */
> > > addr_bo_buffer_batch[b++] = 0x00000000; /* dw63 */
> > >
> > > + addr_bo_buffer_batch[b++] = PIPE_CONTROL;
> > > + addr_bo_buffer_batch[b++] = 0x00100000;
> > > + addr_bo_buffer_batch[b++] = 0x00000000;
> > > + addr_bo_buffer_batch[b++] = 0x00000000;
> > > + addr_bo_buffer_batch[b++] = 0x00000000;
> > > + addr_bo_buffer_batch[b++] = 0x00000000;
> > > +
> > > addr_bo_buffer_batch[b++] = MI_BATCH_BUFFER_END;
> > > }
> > >
> > > --
> > > 2.43.0
> > >
prev parent reply other threads:[~2026-02-26 18:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 10:45 [PATCH i-g-t] lib/intel_compute: Wait for compute walker before returning to ring Zbigniew Kempczyński
2026-01-22 14:55 ` ✓ i915.CI.BAT: success for " Patchwork
2026-01-23 2:47 ` ✗ i915.CI.Full: failure " Patchwork
2026-01-27 9:13 ` ✓ Xe.CI.BAT: success for lib/intel_compute: Wait for compute walker before returning to ring (rev2) Patchwork
2026-01-27 9:16 ` ✗ i915.CI.BAT: failure " Patchwork
2026-01-27 11:11 ` ✗ Xe.CI.Full: " Patchwork
2026-02-02 14:15 ` [PATCH i-g-t] lib/intel_compute: Wait for compute walker before returning to ring Francois Dugast
2026-02-03 7:57 ` Zbigniew Kempczyński
2026-02-26 18:20 ` Matthew Brost [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=aaCPAXa/r7FeJw7b@lstrano-desk.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=francois.dugast@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=zbigniew.kempczynski@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