From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Dave Gordon <david.s.gordon@intel.com>, intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 3/3] drm/i915/guc: revisit GuC loader message levels
Date: Tue, 12 Jul 2016 10:26:36 +0100 [thread overview]
Message-ID: <5784B7CC.5010009@linux.intel.com> (raw)
In-Reply-To: <1468260090-2756-3-git-send-email-david.s.gordon@intel.com>
On 11/07/16 19:01, Dave Gordon wrote:
> Some downgraded from DRM_ERROR() to DRM_WARN(), some eliminated,
> and a few upgraded from DRM_INFO() to DRM_NOTE() or DRM_WARN().
>
> Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
> ---
> drivers/gpu/drm/i915/intel_guc_loader.c | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_guc_loader.c b/drivers/gpu/drm/i915/intel_guc_loader.c
> index 605c696..fd032eb 100644
> --- a/drivers/gpu/drm/i915/intel_guc_loader.c
> +++ b/drivers/gpu/drm/i915/intel_guc_loader.c
> @@ -140,12 +140,14 @@ static u32 get_gttype(struct drm_i915_private *dev_priv)
>
> static u32 get_core_family(struct drm_i915_private *dev_priv)
> {
> - switch (INTEL_INFO(dev_priv)->gen) {
> + u32 gen = INTEL_GEN(dev_priv);
> +
> + switch (gen) {
> case 9:
> return GFXCORE_FAMILY_GEN9;
>
> default:
> - DRM_ERROR("GUC: unsupported core family\n");
> + DRM_WARN("GEN%d does not support GuC operation\n", gen);
> return GFXCORE_FAMILY_UNKNOWN;
> }
> }
> @@ -433,7 +435,7 @@ int intel_guc_setup(struct drm_device *dev)
> goto fail;
> } else if (*fw_path == '\0') {
> /* Device has a GuC but we don't know what f/w to load? */
> - DRM_INFO("No GuC firmware known for this platform\n");
> + DRM_WARN("No GuC firmware known for this platform\n");
> err = -ENODEV;
> goto fail;
> }
> @@ -471,10 +473,8 @@ int intel_guc_setup(struct drm_device *dev)
> * that the state and timing are fairly predictable
> */
> err = i915_reset_guc(dev_priv);
> - if (err) {
> - DRM_ERROR("GuC reset failed: %d\n", err);
> + if (err)
> goto fail;
> - }
>
> err = guc_ucode_xfer(dev_priv);
> if (!err)
> @@ -532,15 +532,15 @@ int intel_guc_setup(struct drm_device *dev)
> else if (err == 0)
> DRM_INFO("GuC firmware load skipped\n");
> else if (ret != -EIO)
> - DRM_INFO("GuC firmware load failed: %d\n", err);
> + DRM_NOTE("GuC firmware load failed: %d\n", err);
> else
> - DRM_ERROR("GuC firmware load failed: %d\n", err);
> + DRM_WARN("GuC firmware load failed: %d\n", err);
>
> if (i915.enable_guc_submission) {
> if (fw_path == NULL)
> DRM_INFO("GuC submission without firmware not supported\n");
> if (ret == 0)
> - DRM_INFO("Falling back from GuC submission to execlist mode\n");
> + DRM_NOTE("Falling back from GuC submission to execlist mode\n");
> else
> DRM_ERROR("GuC init failed: %d\n", ret);
> }
> @@ -656,7 +656,7 @@ static void guc_fw_fetch(struct drm_device *dev, struct intel_guc_fw *guc_fw)
> fail:
> DRM_DEBUG_DRIVER("GuC fw fetch status FAIL; err %d, fw %p, obj %p\n",
> err, fw, guc_fw->guc_fw_obj);
> - DRM_ERROR("Failed to fetch GuC firmware from %s (error %d)\n",
> + DRM_WARN("Failed to fetch GuC firmware from %s (error %d)\n",
> guc_fw->guc_fw_path, err);
>
> mutex_lock(&dev->struct_mutex);
>
R-b if you also change all the other DRM_ERRORs in guc_fw_fetch to
DRM_DEBUG_DRIVER and merge this last two log lines (DRM_DEBUG_DRIVER +
DRM_WARN) to one. :)
Regards,
Tvrtko
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-07-12 9:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-11 18:01 [PATCH 1/3] drm: extra printk() wrapper macros Dave Gordon
2016-07-11 18:01 ` [PATCH 2/3] drm/i915/guc: downgrade some DRM_ERROR() messages to DRM_WARN() Dave Gordon
2016-07-12 9:20 ` Tvrtko Ursulin
2016-07-12 9:27 ` [Intel-gfx] " Chris Wilson
2016-07-12 9:37 ` Tvrtko Ursulin
2016-07-12 12:29 ` Dave Gordon
2016-07-11 18:01 ` [PATCH 3/3] drm/i915/guc: revisit GuC loader message levels Dave Gordon
2016-07-12 9:26 ` Tvrtko Ursulin [this message]
2016-07-12 15:11 ` Dave Gordon
2016-07-12 9:06 ` [PATCH 1/3] drm: extra printk() wrapper macros Tvrtko Ursulin
2016-07-12 13:28 ` Dave Gordon
2016-07-12 13:51 ` [Intel-gfx] " Tvrtko Ursulin
2016-07-12 11:06 ` Eric Engestrom
2016-07-12 14:25 ` Daniel Vetter
2016-07-12 14:53 ` Dave Gordon
2016-07-12 14:59 ` Daniel Vetter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5784B7CC.5010009@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=david.s.gordon@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox