drm/i915/uc: Skip GuC HW unwinding if GuC is already dead
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 22 May 2019 19:32:01 +0000 (19:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 May 2019 20:58:36 +0000 (21:58 +0100)
commit0922f3459f6d4e15bbc325d3030021f1053c2b8f
tree41e6cb93e0c5146eb7ba6055a6a116718d5b2242
parentf1e6b336bafae78ca9a94114a73a4fda5f29c73f
drm/i915/uc: Skip GuC HW unwinding if GuC is already dead

We should not attempt to unwind GuC hardware/firmware setup
if we already have sanitized GuC.

v2: replace USES_GUC with guc_is_loaded

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-8-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_uc.c