public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Nerlige Ramappa, Umesh" <umesh.nerlige.ramappa@intel.com>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v2] drm/xe/oa: Allow reading after disabling OA stream
Date: Tue, 17 Mar 2026 16:03:48 -0700	[thread overview]
Message-ID: <87zf46xdm3.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <DS0PR11MB74083DB850FA5CDC1DE2C710A941A@DS0PR11MB7408.namprd11.prod.outlook.com>

On Mon, 16 Mar 2026 21:42:50 -0700, Nerlige Ramappa, Umesh wrote:
>
> Have mail client problems, so sending from Outlook
>
> > -----Original Message-----
> > From: Dixit, Ashutosh <ashutosh.dixit@intel.com>
> > Sent: Friday, March 13, 2026 11:07 AM
> > To: intel-xe@lists.freedesktop.org
> > Cc: Nerlige Ramappa, Umesh <umesh.nerlige.ramappa@intel.com>
> > Subject: [PATCH v2] drm/xe/oa: Allow reading after disabling OA stream
> >
> > Some OA data might be present in the OA buffer when OA stream is disabled.
> > Allow UMD's to retrieve this data, so that all data till the point when OA stream is
> > disabled can be retrieved.
> >
> > v2: Update tail pointer after disable (Umesh)
> >
> > Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> > ---
> >  drivers/gpu/drm/xe/xe_oa.c | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c index
> > dcd393b0931a2..2efc16c3a95df 100644
> > --- a/drivers/gpu/drm/xe/xe_oa.c
> > +++ b/drivers/gpu/drm/xe/xe_oa.c
> > @@ -543,8 +543,7 @@ static ssize_t xe_oa_read(struct file *file, char __user
> > *buf,
> >	size_t offset = 0;
> >	int ret;
> >
> > -	/* Can't read from disabled streams */
> > -	if (!stream->enabled || !stream->sample)
> > +	if (!stream->sample)
> >		return -EINVAL;
> >
> >	if (!(file->f_flags & O_NONBLOCK)) {
> > @@ -1456,6 +1455,10 @@ static void xe_oa_stream_disable(struct
> > xe_oa_stream *stream)
> >
> >	if (stream->sample)
> >		hrtimer_cancel(&stream->poll_check_timer);
> > +
> > +	/* Update stream->oa_buffer.tail to allow any final reports to be read */
> > +	if (xe_oa_buffer_check_unlocked(stream))
> > +		wake_up(&stream->poll_wq);
>
> Reviewed-by: Umesh Nerlige Ramappa<umesh.nerlige.ramappa@intel.com>

Thanks Umesh, just FYI, I added Fixes: as well Cc:stable tags on this and
merged it.

>
> > }
> >
> >  static int xe_oa_enable_preempt_timeslice(struct xe_oa_stream *stream)
> > --
> > 2.48.1
>

      reply	other threads:[~2026-03-17 23:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-13  5:36 [PATCH v2] drm/xe/oa: Allow reading after disabling OA stream Ashutosh Dixit
2026-03-13  5:45 ` ✓ CI.KUnit: success for drm/xe/oa: Allow reading after disabling OA stream (rev2) Patchwork
2026-03-13  6:27 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-14  7:00 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-17  4:42 ` [PATCH v2] drm/xe/oa: Allow reading after disabling OA stream Nerlige Ramappa, Umesh
2026-03-17 23:03   ` Dixit, Ashutosh [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=87zf46xdm3.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=umesh.nerlige.ramappa@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