Commit cd7a214f authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Include engine name after reset failure

During igt_reset_nop_engine, an engine reset unexpectedly failed. For the
next time this happens, mention which engine that was.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210111105735.21515-4-chris@chris-wilson.co.uk
parent 0da3f250
...@@ -506,7 +506,8 @@ static int igt_reset_nop_engine(void *arg) ...@@ -506,7 +506,8 @@ static int igt_reset_nop_engine(void *arg)
} }
err = intel_engine_reset(engine, NULL); err = intel_engine_reset(engine, NULL);
if (err) { if (err) {
pr_err("i915_reset_engine failed\n"); pr_err("intel_engine_reset(%s) failed, err:%d\n",
engine->name, err);
break; break;
} }
...@@ -608,7 +609,8 @@ static int __igt_reset_engine(struct intel_gt *gt, bool active) ...@@ -608,7 +609,8 @@ static int __igt_reset_engine(struct intel_gt *gt, bool active)
err = intel_engine_reset(engine, NULL); err = intel_engine_reset(engine, NULL);
if (err) { if (err) {
pr_err("i915_reset_engine failed\n"); pr_err("intel_engine_reset(%s) failed, err:%d\n",
engine->name, err);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment