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)
commitdfdeaff293962a55a9ab8699cfc2ef960fa4b754
tree95863d452ae632c88243dce713aaf175604c0e0c
parent422d7df4f090bbbc4d49e66d533a259ba63ec70d
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