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

Daniel Vetter daniel at ffwll.ch
Thu Jul 12 08:37:59 UTC 2018


On Thu, Jul 12, 2018 at 09:33:32AM +0100, Chris Wilson wrote:
> Quoting Chris Wilson (2018-07-12 09:20:37)
> 
> It needs to be equally on runtime_pm_get.

Just wanted to complain about "what if we know there's someone holding an
rpm ref already?", but then remembered that this is what we have the
_if_in_use and _noresume variants for.

So a might_lock in runtime_pm_get sounds perfect.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list