OSDN Git Service

drm/i915/selftests: Verify we can perform resets from atomic context
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Dec 2018 09:15:20 +0000 (09:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Dec 2018 10:07:54 +0000 (10:07 +0000)
commit921f3a60e54e751ce1393deef6218c5900558b3d
treeb8068f28490f817b553138299741c17c2ff26291
parent5edd56d394dc30438cb627586eb471f5f339a603
drm/i915/selftests: Verify we can perform resets from atomic context

We currently require that our per-engine reset can be called from any
context, even hardirq, and in the future wish to perform the device
reset without holding struct_mutex (which requires some lockless
shenanigans that demand the lowlevel intel_reset_gpu() be able to be
used in atomic context). Test that we meet the current requirements by
calling i915_reset_engine() from under various atomic contexts.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181213091522.2926-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_hangcheck.c