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)
committerJani Nikula <jani.nikula@intel.com>
Thu, 12 Jan 2017 08:15:44 +0000 (10:15 +0200)
commite4621b73b6b472fe2b434b4f0f76b8f33ee26a73
treea3dd884c82ac30a9b658af818282083e5f8c9bc8
parente88893fea17996018b2d68a22e677ea04f3baadf
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>
(cherry picked from commit 10466d2a59b23aa6d5ecd5310296c8cdb6458dac)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem.c