]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50d2ac6c665bf1851a5bc95a890ad5d6f95aa638
tree04c5dc18dfd38645ec55ebf009d5035d7ca41323
parentc62b8a97b00ba292fa57aaded2c3bd4e91c0ee0d
drm/i915: Fix phys pwrite for struct_mutex-less operation

Since commit 263f779b5927 ("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: 263f779b5927 ("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