[Intel-gfx] [PATCH] drm/i915: Mark runtime_pm as a special class of lock

Chris Wilson chris at chris-wilson.co.uk
Fri Jul 20 11:11:45 UTC 2018


Quoting Chris Wilson (2018-07-20 12:10:16)
> Runtime power management acts as a type of "wakelock" that code must
> hold in order to access the device. Such a lock has all the ordering
> issues of a regular lock, and so it would be convenient to use lockdep
> to catch violations and cyclic deadlocks.
> 
> In the long run, it will be interesting to use cross-release tracking so
> that we could mark the runtime wakelock as held for as long as the
> device was suspended, so that we catch whenever we might be trying to
> access the device having forgotten about acquiring the wakelock.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>

Wrong branch, ignore this for the moment. We'll be back with this later
after cross-release.
-Chris


More information about the Intel-gfx mailing list