drm/i915: Use the engine name directly in the error_state file
authorMichel Thierry <michel.thierry@intel.com>
Thu, 18 Jan 2018 17:52:28 +0000 (17:52 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Jan 2018 18:16:30 +0000 (18:16 +0000)
commit1edf6958c195146973fd78c82fadea8330becfd0
tree95193893099adf080958e3c482b093fab9ecef10
parent35fe703c3161ac9e723c845d425814a02cfda140
drm/i915: Use the engine name directly in the error_state file

Instead of using local string names that we will have to keep
maintaining, use the engine->name directly.

v2: Better invalid engine_id handling, capture_bo will not be able know
the engine_id and end up with -1 (Michal).

Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180110012151.28261-1-michel.thierry@intel.com
[ickle: minor massaging of function names]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180118175228.2830-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gpu_error.c