]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Fail hangcheck testing if the GPU is wedged
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jul 2018 15:02:14 +0000 (16:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 06:39:30 +0000 (07:39 +0100)
commit95b498c7a1a269b0e3c29ca00d0f365612c2682b
tree7c02dfe7dbb84d4686fa0515243e4e24ea56abf7
parentc31c23568e0045f3d1a3c14f44b9e28745a79600
drm/i915/selftests: Fail hangcheck testing if the GPU is wedged

If the GPU is irrecoverably wedged on startup, it means that it failed
on initialisation and we have already tried to reset it but failed. We
can ignore all further testing, as it is already dead. Failing early,
prevents us from slowly failing in our endeavours later and timing out.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180705150214.28316-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_hangcheck.c