drm/i915: Use ABI engine class in error state ecode
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 5 Nov 2020 11:38:42 +0000 (11:38 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 9 Nov 2020 12:00:22 +0000 (12:00 +0000)
commit2dae0c852940189af35b65895443f9ab05e1b319
treef01dd4f1c319b8853d6c3ba4acf7b435f3030a81
parentbda3002485a3dcf975b4ecf3fab9dd53f228db6d
drm/i915: Use ABI engine class in error state ecode

Instead of printing out the internal engine mask, which can change between
kernel versions making it difficult to map to actual engines, present a
bitmask of hanging engines ABI classes. For example:

  [drm] GPU HANG: ecode 9:8:24dffffd, in gem_exec_schedu [1334]

Engine ABI class is useful to quickly categorize render vs media etc hangs
in bug reports. Considering virtual engine even more so than the current
scheme.

v2:
 * Do not re-order fields. (Chris)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201105113842.1395391-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_gpu_error.c