drm/i915: Handle catastrophic error on engine reset
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 12 Apr 2019 16:53:53 +0000 (19:53 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Apr 2019 18:23:45 +0000 (19:23 +0100)
commit5ce5f61b70f97bd664f7a20aeffd9574d17ab350
treecfb4d788f723131176629d2bbae19f6188c96026
parent019d26004ebad73a5aedaedab958ea8a381c2ffc
drm/i915: Handle catastrophic error on engine reset

If cat error is set, we need to clear it by acking it. Further,
if it is set, we must not do a normal request for reset.

v2: avoid goto (Chris)
v3: comment, error format, direct assign (Chris)
Bspec: 12567
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190412165353.16432-1-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/i915_reset.c