[Intel-gfx] [PATCH 2/2] drm/i915: add lockdep_assert_held in i915_ppat_{get, put}

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Fri Sep 15 06:09:18 UTC 2017


On Thu, 2017-09-14 at 19:39 +0100, Chris Wilson wrote:
> Quoting Zhi Wang (2017-09-14 18:24:10)
> > struct_mutext needs to be held before call these two APIs.
> 
> True for the moment. But raises a question of whether introducing a
> ppat->mutex would be beneficial? All depends on whether the caller is
> already forced to use struct_mutex and is likely to continue to need it
> next year...

I doubt this will be performance critical, so introducing separate
locking should not hurt.

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the Intel-gfx mailing list