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