drm/i915/uc: Explicitly sanitize GuC/HuC on failure and finish
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 22 May 2019 19:31:59 +0000 (19:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 May 2019 20:58:36 +0000 (21:58 +0100)
commit89195bab5d8c540e565b47e2ad6ebbbe420be640
treeff1ad23c24c6d81d690c0ad321523322401fd77f
parent78577e294bf2b013470d2f9e1e5b5f531440683b
drm/i915/uc: Explicitly sanitize GuC/HuC on failure and finish

Explicitly sanitize GuC/HuC on load failure and when we finish
using them to make sure our fw state tracking is always correct.

While around, use new helper in uc_reset_prepare.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@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/20190522193203.23932-6-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_uc.c