All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/7] drm/i915/uc: Prefer dev_info for reporting options
Date: Wed, 07 Aug 2019 18:22:12 +0100	[thread overview]
Message-ID: <156519853275.6198.1682015960123253868@skylake-alporthouse-com> (raw)
In-Reply-To: <20190807170034.8440-2-michal.wajdeczko@intel.com>

Quoting Michal Wajdeczko (2019-08-07 18:00:28)
> While modparams are global for the i915 module, we are reporting
> status of the params applied against specific device instance.
> 
> 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>
> ---
>  drivers/gpu/drm/i915/gt/uc/intel_uc.c | 25 ++++++++++++++++---------
>  1 file changed, 16 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc.c b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
> index e87b7904ab7a..3c007e0e1a20 100644
> --- a/drivers/gpu/drm/i915/gt/uc/intel_uc.c
> +++ b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
> @@ -59,11 +59,14 @@ static int __intel_uc_reset_hw(struct intel_uc *uc)
>  
>  static void __confirm_options(struct intel_uc *uc)
>  {
> -       DRM_DEBUG_DRIVER("enable_guc=%d (guc:%s submission:%s huc:%s)\n",
> -                        i915_modparams.enable_guc,
> -                        yesno(intel_uc_supports_guc(uc)),
> -                        yesno(intel_uc_supports_guc_submission(uc)),
> -                        yesno(intel_uc_supports_huc(uc)));
> +       struct drm_i915_private *i915 = uc_to_gt(uc)->i915;
> +
> +       DRM_DEV_DEBUG_DRIVER(i915->drm.dev,
> +                            "enable_guc=%d (guc:%s submission:%s huc:%s)\n",
> +                            i915_modparams.enable_guc,
> +                            yesno(intel_uc_supports_guc(uc)),
> +                            yesno(intel_uc_supports_guc_submission(uc)),
> +                            yesno(intel_uc_supports_huc(uc)));

DDD_DRIVER()? :)

>         if (i915_modparams.enable_guc == -1)
>                 return;
> @@ -76,22 +79,26 @@ static void __confirm_options(struct intel_uc *uc)
>         }
>  
>         if (!intel_uc_supports_guc(uc))
> -               DRM_INFO("Incompatible option enable_guc=%d - %s\n",
> +               dev_info(i915->drm.dev,
> +                        "Incompatible option enable_guc=%d - %s\n",
>                          i915_modparams.enable_guc, "GuC is not supported!");
>  
>         if (i915_modparams.enable_guc & ENABLE_GUC_LOAD_HUC &&
>             !intel_uc_supports_huc(uc))
> -               DRM_INFO("Incompatible option enable_guc=%d - %s\n",
> +               dev_info(i915->drm.dev,
> +                        "Incompatible option enable_guc=%d - %s\n",
>                          i915_modparams.enable_guc, "HuC is not supported!");
>  
>         if (i915_modparams.enable_guc & ENABLE_GUC_SUBMISSION &&
>             !intel_uc_supports_guc_submission(uc))
> -               DRM_INFO("Incompatible option enable_guc=%d - %s\n",
> +               dev_info(i915->drm.dev,
> +                        "Incompatible option enable_guc=%d - %s\n",
>                          i915_modparams.enable_guc, "GuC submission is N/A");
>  
>         if (i915_modparams.enable_guc & ~(ENABLE_GUC_SUBMISSION |
>                                           ENABLE_GUC_LOAD_HUC))
> -               DRM_INFO("Incompatible option enable_guc=%d - %s\n",
> +               dev_info(i915->drm.dev,
> +                        "Incompatible option enable_guc=%d - %s\n",
>                          i915_modparams.enable_guc, "undocumented flag");

Yes, "confirm_options" fits the device model, as opposed to the old
sanitize that adjusted the global parameter.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-08-07 17:22 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-07 17:00 [PATCH 0/7] Hardening firmware fetch Michal Wajdeczko
2019-08-07 17:00 ` [PATCH 1/7] drm/i915/uc: Prefer dev_info for reporting options Michal Wajdeczko
2019-08-07 17:22   ` Chris Wilson [this message]
2019-08-07 17:00 ` [PATCH 2/7] drm/i915/uc: HuC firmware can't be supported without GuC Michal Wajdeczko
2019-08-07 17:27   ` Chris Wilson
2019-08-07 20:21   ` Kumar Valsan, Prathap
2019-08-07 20:12     ` Michal Wajdeczko
2019-08-07 17:00 ` [PATCH 3/7] drm/i915/uc: Don't fetch HuC fw if GuC fw fetch already failed Michal Wajdeczko
2019-08-07 17:29   ` Chris Wilson
2019-08-07 17:00 ` [PATCH 4/7] drm/i915: Don't try to partition WOPCM without GuC firmware Michal Wajdeczko
2019-08-07 17:31   ` Chris Wilson
2019-08-07 17:00 ` [PATCH 5/7] drm/i915: Make wopcm_to_i915() private Michal Wajdeczko
2019-08-07 17:32   ` Chris Wilson
2019-08-07 17:00 ` [PATCH 6/7] drm/i915/uc: WOPCM programming errors are not always real Michal Wajdeczko
2019-08-07 17:34   ` Chris Wilson
2019-08-07 17:00 ` [PATCH 7/7] drm/i915/uc: Hardening firmware fetch Michal Wajdeczko
2019-08-07 17:45   ` Chris Wilson
2019-08-07 18:37   ` Michal Wajdeczko
2019-08-07 18:50     ` Chris Wilson
2019-08-07 18:16 ` ✗ Fi.CI.BAT: failure for " Patchwork
2019-08-07 19:42 ` ✓ Fi.CI.BAT: success for Hardening firmware fetch (rev2) Patchwork
2019-08-07 20:19   ` Chris Wilson
2019-08-08  8:51 ` ✗ Fi.CI.IGT: failure " Patchwork

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=156519853275.6198.1682015960123253868@skylake-alporthouse-com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=michal.wajdeczko@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.