]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Order two completing nop_submit_request
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Oct 2017 11:56:17 +0000 (12:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Oct 2017 17:23:20 +0000 (18:23 +0100)
commitfa1e7f0ced5211ee7906cf0a8bad551a422cf48d
tree026b3f7fa482214eb3bd96c32bcd61b71323630e
parent6a98175e6536101b41ccfa5298fe93e98f70d014
drm/i915: Order two completing nop_submit_request

If two nop's (requests in-flight following a wedged device) complete at
the same time, the global_seqno value written to the HWSP is undefined
as the two threads are not serialized.

v2: Use irqsafe spinlock. We expect the callback may be called from
inside another irq spinlock, so we can't unconditionally restore irqs.

Fixes: 30fe4c1e0e3b ("drm/i915: Complete requests in nop_submit_request")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171006115617.18432-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c