]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid tainting i915_gem_park() with wakeref.lock
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Jun 2019 22:06:16 +0000 (23:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 15 Jun 2019 07:51:34 +0000 (08:51 +0100)
commit26d95483df3d948b3026b2e223cb4d11ee5c6a19
tree95863d452ae632c88243dce713aaf175604c0e0c
parent48f781e24a3b7a7451616487f4c0649d84190bb7
drm/i915: Avoid tainting i915_gem_park() with wakeref.lock

While we need to flush the wakeref before parking, we do not need to
perform the i915_gem_park() itself underneath the wakeref lock, merely
the struct_mutex. If we rearrange the locks, we can avoid the unnecessary
tainting.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190614220616.24932-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_pm.c