[Intel-gfx] [PATCH] drm/i915/perf: Do not clear pollin for small user read buffers

Dixit, Ashutosh ashutosh.dixit at intel.com
Fri Mar 27 01:28:15 UTC 2020


On Thu, 26 Mar 2020 11:02:46 -0700, Umesh Nerlige Ramappa wrote:
> On Wed, Mar 25, 2020 at 06:52:52PM -0700, Dixit, Ashutosh wrote:
> > On Wed, 25 Mar 2020 17:32:35 -0700, Umesh Nerlige Ramappa wrote:
> >>
> >> On Wed, Mar 25, 2020 at 11:20:19AM -0700, Ashutosh Dixit wrote:
> >> >
> >> > +	/* Possible values for __ret are 0, -EFAULT, -ENOSPC, -EAGAIN, ... */
> >>
> >> __ret may never be EAGAIN either (comment^). I don't see EAGAIN in the read
> >> path.
> >
> > It's here:
> >
> > gen8_append_oa_reports()
> > {
> >
> >        /*
> >         * An invalid tail pointer here means we're still waiting for the poll
> >         * hrtimer callback to give us a pointer
> >         */
> >        if (tail == INVALID_TAIL_PTR)
> >                return -EAGAIN;
> > }
>
> Oh, you are right, EAGAIN is returned here. I was looking for it with the
> poll period patch series applied and these references are removed in that
> series.

No, you are right, since that series is likely to be merged first, it is
better to remove it from this patch.


More information about the Intel-gfx mailing list