All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Tom O'Rourke <Tom.O'Rourke@intel.com>
Subject: Re: [PATCH v6 05/23] drm/i915/slpc: Sanitize GuC version
Date: Thu, 16 Mar 2017 20:56:04 +0000	[thread overview]
Message-ID: <20170316205604.GG2118@nuc-i3427.alporthouse.com> (raw)
In-Reply-To: <1489688907-18718-6-git-send-email-sagar.a.kamble@intel.com>

On Thu, Mar 16, 2017 at 11:58:09PM +0530, Sagar Arun Kamble wrote:
> From: Tom O'Rourke <Tom.O'Rourke@intel.com>
> 
> The SLPC interface is dependent on GuC version.
> Only GuC versions known to be compatible are supported here.
> 
> SLPC with GuC firmware v9 is supported with this series.
> Other platforms and corresponding checks added later in the series.
> 
> v1: Updated with modified sanitize_slpc_option in earlier patch.
> 
> v2-v3: Rebase.
> 
> v4: Updated support for GuC firmware v9.
> 
> v5: Commit subject updated.
> 
> v6: Commit subject and message update. Add support condition as >=v9.
> 
> Signed-off-by: Tom O'Rourke <Tom.O'Rourke@intel.com>
> Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_uc.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/intel_uc.c b/drivers/gpu/drm/i915/intel_uc.c
> index 31b90fb..1dcfbd5 100644
> --- a/drivers/gpu/drm/i915/intel_uc.c
> +++ b/drivers/gpu/drm/i915/intel_uc.c
> @@ -83,6 +83,8 @@ void intel_uc_init_early(struct drm_i915_private *dev_priv)
>  
>  void sanitize_slpc_option(struct drm_i915_private *dev_priv)
>  {
> +	struct intel_uc_fw *guc_fw = &dev_priv->guc.fw;
> +
>  	/* slpc requires hardware support and compatible firmware */
>  	if (!HAS_SLPC(dev_priv))
>  		i915.enable_slpc = 0;
> @@ -94,6 +96,11 @@ void sanitize_slpc_option(struct drm_i915_private *dev_priv)
>  	/* slpc requires guc submission */
>  	if (!i915.enable_guc_submission)
>  		i915.enable_slpc = 0;
> +
> +	if (guc_fw->major_ver_found < 9) {
> +		DRM_INFO("SLPC not supported with current GuC firmware\n");

Say the actual version found, the requirement and the likely consequence.
Is it important enough to direct the user to 01.org?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-03-16 20:56 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-16 18:28 [PATCH v6 00/23] Add support for GuC-based SLPC Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 01/23] drm/i915/debugfs: Create generic string tokenize function and update CRC control parsing Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 02/23] drm/i915/gen9: Separate RPS and RC6 handling Sagar Arun Kamble
2017-03-17 20:05   ` Chris Wilson
2017-03-16 18:28 ` [PATCH v6 03/23] drm/i915/slpc: Add has_slpc capability flag Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 04/23] drm/i915/slpc: Add enable_slpc module parameter Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 05/23] drm/i915/slpc: Sanitize GuC version Sagar Arun Kamble
2017-03-16 20:56   ` Chris Wilson [this message]
2017-03-17  9:21     ` Kamble, Sagar A
2017-03-16 18:28 ` [PATCH v6 06/23] drm/i915/slpc: Use intel_slpc_* functions if supported Sagar Arun Kamble
2017-03-16 21:05   ` Chris Wilson
2017-03-17  9:58     ` Kamble, Sagar A
2017-03-16 18:28 ` [PATCH v6 07/23] drm/i915/slpc: Enable SLPC in GuC " Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 08/23] drm/i915/slpc: If using SLPC, do not set frequency Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 09/23] drm/i915/slpc: Allocate/Release/Initialize SLPC shared data Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 10/23] drm/i915/slpc: Add SLPC banner to RPS debugfs interfaces Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 11/23] drm/i915/slpc: Add SLPC communication interfaces Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 12/23] drm/i915/slpc: Send RESET event to enable SLPC Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 13/23] drm/i915/slpc: Send SHUTDOWN event Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 14/23] drm/i915/slpc: Add parameter set/unset/get functions Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 15/23] drm/i915/slpc: Add debugfs support to read/write/revert the parameters Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 16/23] drm/i915/slpc: Add support for min/max frequency control Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 17/23] drm/i915/slpc: Add enable/disable controls for SLPC tasks Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 18/23] drm/i915/slpc: Add i915_slpc_info to debugfs Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 19/23] drm/i915/slpc: Set default values for tasks and min frequency parameters Sagar Arun Kamble
2017-03-16 21:18   ` Chris Wilson
2017-03-17 10:02     ` Kamble, Sagar A
2017-03-16 18:28 ` [PATCH v6 20/23] drm/i915/slpc: Add SKL SLPC Support Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 21/23] drm/i915/slpc: Add Broxton SLPC support Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 22/23] drm/i915/slpc: Add Kabylake " Sagar Arun Kamble
2017-03-16 18:28 ` [PATCH v6 23/23] drm/i915/slpc: Enable SLPC, where supported Sagar Arun Kamble
2017-03-16 21:16   ` Chris Wilson
2017-03-16 18:45 ` ✓ Fi.CI.BAT: success for Add support for GuC-based SLPC (rev8) Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2017-03-16 16:32 [PATCH v6 00/23] Add support for GuC-based SLPC Sagar Arun Kamble
2017-03-16 16:32 ` [PATCH v6 05/23] drm/i915/slpc: Sanitize GuC version Sagar Arun Kamble

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=20170316205604.GG2118@nuc-i3427.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=Tom.O'Rourke@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=sagar.a.kamble@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.