drm/i915: intel_engine_init_global_seqno() requires atomic kmap
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Mar 2017 14:56:09 +0000 (14:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Mar 2017 09:21:14 +0000 (09:21 +0000)
commit24caf6559393f68eeefa39faf8c47c0d51a63cee
treee4e3888f69617bba3c521af218f56e2844369d61
parent467221bc60c1b500b2f7dc1df77f1a88c725cd4a
drm/i915: intel_engine_init_global_seqno() requires atomic kmap

As intel_engine_init_global_seqno() may be called by
nop_submit_request() from inside irq context, we have to use atomic
versions of kmap/kunmap. This is rare as this requires using gen8 legacy
ringbuffer submission.

Reported-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170320145609.4898-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/intel_engine_cs.c