drm/i915: Grab execlist spinlock to avoid post-reset concurrency issues.
authorTomas Elf <tomas.elf@intel.com>
Mon, 19 Oct 2015 15:32:32 +0000 (16:32 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Oct 2015 17:34:38 +0000 (19:34 +0200)
commit7de1691a8b1c902bc4d10015e1dbe674ead49461
treeea30fc45fac44b99b0716ce16e068a442a437c00
parent510567234180d7d65d2db9f7bd8424cabef13d3c
drm/i915: Grab execlist spinlock to avoid post-reset concurrency issues.

Grab execlist lock when cleaning up execlist queues after GPU reset to avoid
concurrency problems between the context event interrupt handler and the reset
path immediately following a GPU reset.

* v2 (Chris Wilson):
Do execlist check and use simpler form of spinlock functions.

Signed-off-by: Tomas Elf <tomas.elf@intel.com>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c