drm/i915: Fix phys pwrite for struct_mutex-less operation
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jan 2017 15:22:38 +0000 (15:22 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jan 2017 16:53:44 +0000 (16:53 +0000)
commit10466d2a59b23aa6d5ecd5310296c8cdb6458dac
tree04c5dc18dfd38645ec55ebf009d5035d7ca41323
parent984ff29f74c0c130b43f0c5b0fe0fbca5de0fddc
drm/i915: Fix phys pwrite for struct_mutex-less operation

Since commit fe115628d567 ("drm/i915: Implement pwrite without
struct-mutex") the lowlevel pwrite calls are now called without the
protection of struct_mutex, but pwrite_phys was still asserting that it
held the struct_mutex and later tried to drop and relock it.

Fixes: fe115628d567 ("drm/i915: Implement pwrite without struct-mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: <drm-intel-fixes@lists.freedesktop.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170106152240.5793-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem.c