OSDN Git Service

drm/i915/perf: Manually acquire engine-wakeref around use of kernel_context
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 Feb 2020 08:57:06 +0000 (08:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Feb 2020 14:05:34 +0000 (14:05 +0000)
commitd236e2ac535aee1ee19684427edd3654bac143a4
tree25f21c79635adb04b7bebbfe6621860d5ca2aaca
parenta5af081d012e8b0ede5b1ef59a9c143067b45af6
drm/i915/perf: Manually acquire engine-wakeref around use of kernel_context

The engine->kernel_context is a special case for request emission. Since
it is used as the barrier within the engine's wakeref, we must acquire the
wakeref before submitting a request to the kernel_context.

Reported-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200227085723.1961649-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_perf.c