drm/i915: Be irqsafe inside reset
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jun 2018 09:31:36 +0000 (10:31 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jun 2018 18:50:36 +0000 (19:50 +0100)
commit042ed2dbe5b294e6c225e12d380062ee6adb3ac0
tree5c63d00bfd1af56d706da7f4b0a01a61dae3f76e
parent14921f3cef85b0167a9145e5f29b9dfc3b2a84dc
drm/i915: Be irqsafe inside reset

As we want to be able to call i915_reset_engine and co from a softirq or
timer context, we need to be irqsafe at all times. So we have to forgo
the simple spin_lock_irq for the full spin_lock_irqsave.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180615093137.14270-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c