drm/i915/uc: Never fail on uC preparation step

Let's wait with decision about importance of uC failure to
hardware initialization step.

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-4-michal.wajdeczko@intel.com
Este commit está contenido en:
Michal Wajdeczko
2019-08-17 13:11:44 +00:00
cometido por Chris Wilson
padre 4a600cb707
commit 0075a20a6d
Se han modificado 5 ficheros con 16 adiciones y 17 borrados

Ver fichero

@@ -310,6 +310,9 @@ void intel_guc_fini(struct intel_guc *guc)
{
struct intel_gt *gt = guc_to_gt(guc);
if (!intel_uc_fw_is_available(&guc->fw))
return;
i915_ggtt_disable_guc(gt->ggtt);
if (intel_guc_is_submission_supported(guc))

Ver fichero

@@ -105,6 +105,9 @@ out:
void intel_huc_fini(struct intel_huc *huc)
{
if (!intel_uc_fw_is_available(&huc->fw))
return;
intel_huc_rsa_data_destroy(huc);
intel_uc_fw_fini(&huc->fw);
}

Ver fichero

@@ -288,27 +288,26 @@ void intel_uc_cleanup_firmwares(struct intel_uc *uc)
intel_uc_fw_cleanup_fetch(&uc->guc.fw);
}
int intel_uc_init(struct intel_uc *uc)
void intel_uc_init(struct intel_uc *uc)
{
struct intel_guc *guc = &uc->guc;
struct intel_huc *huc = &uc->huc;
int ret;
if (!intel_uc_uses_guc(uc))
return 0;
return;
/* XXX: GuC submission is unavailable for now */
GEM_BUG_ON(intel_uc_supports_guc_submission(uc));
ret = intel_guc_init(guc);
if (ret)
return ret;
if (intel_uc_uses_huc(uc)) {
intel_huc_init(huc);
if (ret) {
intel_uc_fw_cleanup_fetch(&huc->fw);
return;
}
return 0;
if (intel_uc_uses_huc(uc))
intel_huc_init(huc);
}
void intel_uc_fini(struct intel_uc *uc)

Ver fichero

@@ -24,9 +24,9 @@ void intel_uc_init_mmio(struct intel_uc *uc);
void intel_uc_fetch_firmwares(struct intel_uc *uc);
void intel_uc_cleanup_firmwares(struct intel_uc *uc);
void intel_uc_sanitize(struct intel_uc *uc);
void intel_uc_init(struct intel_uc *uc);
int intel_uc_init_hw(struct intel_uc *uc);
void intel_uc_fini_hw(struct intel_uc *uc);
int intel_uc_init(struct intel_uc *uc);
void intel_uc_fini(struct intel_uc *uc);
void intel_uc_reset_prepare(struct intel_uc *uc);
void intel_uc_suspend(struct intel_uc *uc);