if (ret)
goto err_ads;
+ if (intel_uc_is_using_guc_submission(>->uc)) {
+ /*
+ * This is stuff we need to have available at fw load time
+ * if we are planning to enable submission later
+ */
+ ret = intel_guc_submission_init(guc);
+ if (ret)
+ goto err_ct;
+ }
+
/* now that everything is perma-pinned, initialize the parameters */
guc_init_params(guc);
return 0;
+err_ct:
+ intel_guc_ct_fini(&guc->ct);
err_ads:
intel_guc_ads_destroy(guc);
err_log:
i915_ggtt_disable_guc(gt->ggtt);
+ if (intel_uc_is_using_guc_submission(>->uc))
+ intel_guc_submission_fini(guc);
+
intel_guc_ct_fini(&guc->ct);
intel_guc_ads_destroy(guc);
goto err_guc;
}
- if (intel_uc_is_using_guc_submission(uc)) {
- /*
- * This is stuff we need to have available at fw load time
- * if we are planning to enable submission later
- */
- ret = intel_guc_submission_init(guc);
- if (ret)
- goto err_huc;
- }
-
return 0;
-err_huc:
- if (intel_uc_is_using_huc(uc))
- intel_huc_fini(huc);
err_guc:
intel_guc_fini(guc);
return ret;
GEM_BUG_ON(!intel_uc_fw_supported(&guc->fw));
- if (intel_uc_is_using_guc_submission(uc))
- intel_guc_submission_fini(guc);
-
if (intel_uc_is_using_huc(uc))
intel_huc_fini(&uc->huc);