[Intel-gfx] [PATCH 2/4] drm/i915/lpt: Avoid early timeout during FDI PHY reset

Chris Wilson chris at chris-wilson.co.uk
Tue Jun 28 10:50:48 UTC 2016


On Tue, Jun 28, 2016 at 01:37:31PM +0300, Imre Deak wrote:
> Since wait_for_atomic doesn't re-check the wait-for condition after
> expiry of the timeout it can fail when called from non-atomic context
> even if the condition is set correctly before the expiry. Fix this by
> using the non-atomic wait_for instead.

Same point as patch 1. If the bug is using the wrong function, ...
The only question is whether you do have an atomic context, in which
case we need to reinspect the notion of "there is only at most 3
non-preemptible instructions between the COND and the timeout"...
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list