drm/i915/guc: Pick better place for Guc final status message
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 16 Oct 2017 14:47:17 +0000 (14:47 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 16 Oct 2017 15:53:27 +0000 (18:53 +0300)
GuC status message printed right after firmware upload may be too
optimistic, as we may fail on subsequent steps. Move that message
to the end of intel_uc_init_hw where we know the status for sure.

v2: use dev_info (Chris)

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171016144724.17244-9-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_guc_fw.c
drivers/gpu/drm/i915/intel_uc.c

index 71dacc3..4cb8c1c 100644 (file)
@@ -289,11 +289,5 @@ int intel_guc_fw_upload(struct intel_guc *guc)
 
        guc->fw.load_status = INTEL_UC_FIRMWARE_SUCCESS;
 
-       DRM_INFO("GuC %s (firmware %s [version %u.%u])\n",
-                i915_modparams.enable_guc_submission ? "submission enabled" :
-                                                       "loaded",
-                guc->fw.path,
-                guc->fw.major_ver_found, guc->fw.minor_ver_found);
-
        return 0;
 }
index 048f5c4..9d84fdd 100644 (file)
@@ -222,6 +222,12 @@ int intel_uc_init_hw(struct drm_i915_private *dev_priv)
                        goto err_interrupts;
        }
 
+       dev_info(dev_priv->drm.dev, "GuC %s (firmware %s [version %u.%u])\n",
+                i915_modparams.enable_guc_submission ? "submission enabled" :
+                                                       "loaded",
+                guc->fw.path,
+                guc->fw.major_ver_found, guc->fw.minor_ver_found);
+
        return 0;
 
        /*