[Intel-gfx] [PATCH] drm/i915: Localise the fbdev console lock frobbing
Chris Wilson
chris at chris-wilson.co.uk
Wed Aug 13 14:00:44 CEST 2014
On Wed, Aug 13, 2014 at 01:39:22PM +0200, Daniel Vetter wrote:
> On Wed, Aug 13, 2014 at 12:32:33PM +0100, Chris Wilson wrote:
> > On Wed, Aug 13, 2014 at 01:26:40PM +0200, Daniel Vetter wrote:
> > > This one here must be synchronous.
> >
> > Right, but notice that we synchronize the work afterwards. I thought if
> > we were careful enough to call the waiter that waited for additional
> > work items to be completed, it would be sufficient.
>
> Given that the work creates new work when it can't do it's job I don't
> think that flush is sufficient. Iirc that only flush out pending stuff,
> not newly queued work.
I had a fancy while(flush_work()) ; all planned out. But that is
effectively a busy-wait during suspend and the console_lock() is
contended, so that got binned. :(
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list