Quoting Michal Wajdeczko (2017-10-10 15:51:32)
> Time to remove less important info and make messages clear
> and consistent.
>
> Signed-off-by: Michal Wajdeczko <[email protected]>
> Cc: Sagar Arun Kamble <[email protected]>
> Cc: Joonas Lahtinen <[email protected]>
> ---
> drivers/gpu/drm/i915/intel_uc_fw.c | 73
> +++++++++++++++++++++++---------------
> 1 file changed, 44 insertions(+), 29 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_uc_fw.c
> b/drivers/gpu/drm/i915/intel_uc_fw.c
> index 482115b..b52d6b6 100644
> --- a/drivers/gpu/drm/i915/intel_uc_fw.c
> +++ b/drivers/gpu/drm/i915/intel_uc_fw.c
> @@ -45,26 +45,33 @@ void intel_uc_fw_fetch(struct drm_i915_private *dev_priv,
> size_t size;
> int err;
>
> + DRM_DEBUG_DRIVER("%s fw fetch %s\n",
> + intel_uc_fw_type_repr(uc_fw->type), uc_fw->path);
> +
> if (!uc_fw->path)
> return;
>
> uc_fw->fetch_status = INTEL_UC_FIRMWARE_PENDING;
> -
> - DRM_DEBUG_DRIVER("before requesting firmware: uC fw fetch status
> %s\n",
> + DRM_DEBUG_DRIVER("%s fw fetch %s\n",
> + intel_uc_fw_type_repr(uc_fw->type),
> intel_uc_fw_status_repr(uc_fw->fetch_status));
>
> err = request_firmware(&fw, uc_fw->path, &pdev->dev);
> - if (err)
> - goto fail;
> - if (!fw)
> + if (err) {
> + DRM_NOTE("%s: Error while requesting firmware\n",
> + intel_uc_fw_type_repr(uc_fw->type));
So what am I, the user, meant to do? Do I need to worry? What are the
consequences of this?
> goto fail;
> + }
...
fail:
> + DRM_WARN("%s: Failed to fetch firmware %s (error %d)\n",
> + intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, err);
And then my "significant but normal" message has suddenly become a
warning the driver is crippled. Make up your mind, do I need to panic or
not?
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx