[PATCH] drm/xe/oa: Call xe_oa_emit_oa_config() with new config when updating config

Dixit, Ashutosh ashutosh.dixit at intel.com
Thu Jun 20 16:16:42 UTC 2024


On Wed, 19 Jun 2024 15:22:00 -0700, Dixit, Ashutosh wrote:
>
> On Wed, 19 Jun 2024 12:28:54 -0700, José Roberto de Souza wrote:
> >
>
> Hi Jose,
>
> > When UMD ask config to be updated, xe_oa_config_locked() was calling
> > xe_oa_emit_oa_config() that would use stream->oa_config but that is
> > only changed to the next oa_config after xe_oa_emit_oa_config() finish.
> > So it was setting the same config for all DRM_XE_PERF_IOCTL_CONFIG
> > calls.
> >
> > Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>
> > Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
> > ---
> >  drivers/gpu/drm/xe/xe_oa.c | 11 +++++------
> >  1 file changed, 5 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
> > index 34206e0b6a08e..a2da54d49f1ce 100644
> > --- a/drivers/gpu/drm/xe/xe_oa.c
> > +++ b/drivers/gpu/drm/xe/xe_oa.c
> > @@ -887,9 +887,8 @@ __xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa
> >	return ERR_CAST(bb);
> >  }
> >
> > -static struct xe_oa_config_bo *xe_oa_alloc_config_buffer(struct xe_oa_stream *stream)
> > +static struct xe_oa_config_bo *xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa_config)
>
> Nice catch and thanks for the patch.
>
> Just fix the reported checkpatch warning here ("line length of 117 exceeds
> 100 columns"). With that this is:
>
> Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
>
> I think no need for "Fixes" tag(s) because this will get into the same
> kernel version. Thanks.

I fixed up the checkpatch warning and merged the patch to drm-xe-next.

Thanks once again.
--
Ashutosh


More information about the Intel-xe mailing list