drm/i915/uc: Cleanup fw fetch on every GuC/HuC init failure
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sat, 17 Aug 2019 13:11:43 +0000 (13:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Aug 2019 14:04:36 +0000 (15:04 +0100)
commit4a600cb707e1249472bd9c1c7d63bb971fc6675d
treefc3b60f16d759e33a4df76d27730d9dce9adf1f8
parent5bde5a4572e122a68406ddb1d0798988cf9c2b0e
drm/i915/uc: Cleanup fw fetch on every GuC/HuC init failure

Be consistent and always perform fw fetch cleanup in GuC/HuC specific
init functions on every failure. Also while converting firmware
status to error, stop treating SELECTED as non-error, as long term
we should not see it.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
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/20190817131144.26884-3-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc.c
drivers/gpu/drm/i915/gt/uc/intel_huc.c
drivers/gpu/drm/i915/gt/uc/intel_uc.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h