]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d010a4d035edc9158b25855ba9366bc05a92b9f
treeb8068f28490f817b553138299741c17c2ff26291
parentb2f6ffe12c2f0df5998266a512b9c5957868cc6e
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