drm/i915/selftests: Include the trace as a debug aide
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Mar 2018 07:49:08 +0000 (07:49 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Mar 2018 20:34:39 +0000 (20:34 +0000)
commit0ade43909d599bdde0d60e0c79e6d73479d65ffa
tree8cd50202aea997ac5c14f8d6d660f35cf5ba7501
parent4ccfee92f4b6fbbedee1eb68f110a66f03edf7c6
drm/i915/selftests: Include the trace as a debug aide

If we fail to reset the GPU in a timely fashion, dump the GEM trace so
that we can see what operations were in flight when the GPU got stuck.

v2: There's more than one timeout that deserves tracing!
v3: Silence checkpatch by not even using a product at all!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Jeff McGee <jeff.mcgee@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180322074908.10838-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_hangcheck.c