Re: [Intel-gfx] [PATCH 09/10] drm/i915: add support for checking RPM atomic sections

2015-12-16 Thread Imre Deak
On Wed, 2015-12-16 at 12:18 +0100, Daniel Vetter wrote: > On Tue, Dec 15, 2015 at 08:10:37PM +0200, Imre Deak wrote: > > In some cases we want to check whether we hold an RPM wakelock > > reference > > for the whole duration of a sequence. To achieve this add a new RPM > > atomic sequence > > count

Re: [Intel-gfx] [PATCH 09/10] drm/i915: add support for checking RPM atomic sections

2015-12-16 Thread Daniel Vetter
On Tue, Dec 15, 2015 at 08:10:37PM +0200, Imre Deak wrote: > In some cases we want to check whether we hold an RPM wakelock reference > for the whole duration of a sequence. To achieve this add a new RPM atomic > sequence > counter that we increment any time the wakelock refcount drops to zero. >

Re: [Intel-gfx] [PATCH 09/10] drm/i915: add support for checking RPM atomic sections

2015-12-16 Thread Joonas Lahtinen
On ti, 2015-12-15 at 20:10 +0200, Imre Deak wrote: > In some cases we want to check whether we hold an RPM wakelock > reference > for the whole duration of a sequence. To achieve this add a new RPM > atomic sequence > counter that we increment any time the wakelock refcount drops to > zero. > Check

[Intel-gfx] [PATCH 09/10] drm/i915: add support for checking RPM atomic sections

2015-12-15 Thread Imre Deak
In some cases we want to check whether we hold an RPM wakelock reference for the whole duration of a sequence. To achieve this add a new RPM atomic sequence counter that we increment any time the wakelock refcount drops to zero. Check whether the sequence number stays the same during the atomic se