]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Protect request peeking with RCU
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 3 Nov 2019 16:23:05 +0000 (16:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Nov 2019 10:01:36 +0000 (10:01 +0000)
commitd0549d0a87fcb5b7c6b5109bf1f359a1a0309872
tree7c184686ad53ad72be86592cc5dd83357e2cacd9
parent1c108748e9a0acdafcad76741bf452699a17e021
drm/i915: Protect request peeking with RCU

Since the execlists_active() is no longer protected by the
engine->active.lock, we need to protect the request pointer with RCU to
prevent it being freed as we evaluate whether or not we need to preempt.

Fixes: 4a24537b5914 ("drm/i915/execlists: Lift process_csb() out of the irq-off spinlock")
Fixes: 034d370ae900 ("drm/i915: Don't set queue_priority_hint if we don't kick the submission")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191104090158.2959-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_scheduler.c