[Intel-xe] [PATCH 00/21] Add OA functionality to Xe

Dixit, Ashutosh ashutosh.dixit at intel.com
Tue Oct 31 06:51:27 UTC 2023


On Fri, 20 Oct 2023 00:52:17 -0700, Lionel Landwerlin wrote:

Hi Lionel,

>
> On 20/10/2023 10:44, Lionel Landwerlin wrote:
> > On 19/09/2023 19:10, Ashutosh Dixit wrote:
> >> This patchset is the initial port of i915 perf/OA functionality to the
> >> XE
> >> driver. The following features in i915 have not been ported and will be
> >> added (as new patches) if/as they are needed:
> >>
> >> * Inline batch submission on stream exec_queue/hw_engine
> >
> > If you give us a syncobj to wait on for the NOA reconfiguration this
> > won't be necessary
> >
> >> * NOA wait
> >
> > This is kind of required, otherwise we start reading reports from the OA
> > buffer and the values are garbage
>
> Actually thinking about it, we could use the syncobj you give us and do
> the wait in a userspace batch.

Hmm. Why do we need to do this in userspace? What I was thinking was (a)
KMD submits a few batch buffers to program various things and returns from
the open/reconfigure IOCTL (b) KMD can detect (using fences) when the
submitted batches complete (c) After the batches complete, KMD adds an
addtional 500 us (NOA wait) delay (using the CPU) before signalling the
fence in the uapi. Wouldn't this work?

> >
> >> * GuC ctx id (guc_sw_ctx_id)
> >
> > This is probably fine. On Gfx8 we always consider using OA a privileged
> > operation, if we keep it like that then it's okay.
> >
> >> * CTX_R_PWR_CLK_STATE/GEN8_R_PWR_CLK_STATE
> > I think if we never care about Gfx11 that's fine.

Great, yes no plan to support Gfx11. I was really scared that we don't have
this so it is great to get some confirmation it's not needed for Gfx12+.

> >> * hold_preemption (DRM_XE_OA_PROP_HOLD_PREEMPTION)
> >
> > Without this, we can't implement perf queries in userspace.
> >
> > Maybe that's okay?

Is it ok? You tell me. You mean OAR/OAC MI_RPC like queries? They are not
needed? We were thinking we'll need to support this eventually.

> >
> >> * sseu_config (DRM_XE_OA_PROP_GLOBAL_SSEU)
> > Without Gfx11 probably fine.

Yup no plan to support Gfx11. Thanks for the confirmation on this too.

> >> * MTL bios_c6_setup
> >> * ratelimits
> >> * compat ioctl

Thanks.
--
Ashutosh


More information about the Intel-xe mailing list