[Intel-gfx] [PATCH 1/8] drm/i915: Rename execlists->queue_priority to preempt_priority_hint

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 29 10:24:49 UTC 2019


Quoting Tvrtko Ursulin (2019-01-29 10:14:45)
> 
> On 29/01/2019 08:58, Chris Wilson wrote:
> > diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
> > index 2927b712b973..5e2231d0c2fa 100644
> > --- a/drivers/gpu/drm/i915/intel_ringbuffer.h
> > +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
> > @@ -293,14 +293,18 @@ struct intel_engine_execlists {
> >       unsigned int port_mask;
> >   
> >       /**
> > -      * @queue_priority: Highest pending priority.
> > +      * @preempt_priority_hint: Highest pending priority.
> 
> Would queue_priority_hint be better since it is used not just for 
> preemption but to start an idle GPU?

~o~

It's 2 letters shorter so that's a plus.

And it doesn't always relate to preemption per se. If you are happy with
adding _hint, then queue_priority_hint it shall be.
-Chris


More information about the Intel-gfx mailing list