]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/selftest: Refactor reset locking
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jul 2017 12:32:35 +0000 (13:32 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Jul 2017 07:38:57 +0000 (09:38 +0200)
commit3744d49c6b2d2d08f06715285196a946215887ba
tree83ed9a0728a1e51133497922ddc37e44c8794aa6
parentd1d1ebf4120db07a6706faed970be7460303834e
drm/i915/selftest: Refactor reset locking

Extract the common barrier against rogue hangchecks from disrupting our
direct testing of resets, and in the process expand the lock to include
the per-engine reset shortcuts.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170721123238.16428-17-chris@chris-wilson.co.uk
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/selftests/intel_hangcheck.c