From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: akash.goel@intel.com
Cc: ankitprasad.r.sharma@intel.com, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/8] drm/i915/skl: Updated intel_gpu_freq() and intel_freq_opcode()
Date: Thu, 5 Mar 2015 12:18:11 +0200 [thread overview]
Message-ID: <20150305101811.GZ11371@intel.com> (raw)
In-Reply-To: <1424954986-24450-3-git-send-email-akash.goel@intel.com>
On Thu, Feb 26, 2015 at 06:19:38PM +0530, akash.goel@intel.com wrote:
> From: Akash Goel <akash.goel@intel.com>
>
> On SKL, frequency is specified in units of 16.66 MHZ.
> Updated the intel_gpu_freq() and intel_freq_opecode() functions
> to do the conversion appropriately.
>
> Signed-off-by: Akash Goel <akash.goel@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_pm.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 7dcb5b6..1b36d0e 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -6660,7 +6660,9 @@ static int chv_freq_opcode(struct drm_i915_private *dev_priv, int val)
>
> int intel_gpu_freq(struct drm_i915_private *dev_priv, int val)
> {
> - if (IS_CHERRYVIEW(dev_priv->dev))
> + if (IS_GEN9(dev_priv->dev))
> + return (val * GT_FREQUENCY_MULTIPLIER) / GEN9_FREQ_SCALER;
> + else if (IS_CHERRYVIEW(dev_priv->dev))
> return chv_gpu_freq(dev_priv, val);
> else if (IS_VALLEYVIEW(dev_priv->dev))
> return byt_gpu_freq(dev_priv, val);
> @@ -6670,7 +6672,9 @@ int intel_gpu_freq(struct drm_i915_private *dev_priv, int val)
>
> int intel_freq_opcode(struct drm_i915_private *dev_priv, int val)
> {
> - if (IS_CHERRYVIEW(dev_priv->dev))
> + if (IS_GEN9(dev_priv->dev))
> + return (val * GEN9_FREQ_SCALER) / GT_FREQUENCY_MULTIPLIER;
> + else if (IS_CHERRYVIEW(dev_priv->dev))
> return chv_freq_opcode(dev_priv, val);
> else if (IS_VALLEYVIEW(dev_priv->dev))
> return byt_freq_opcode(dev_priv, val);
> --
> 1.9.2
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-03-05 10:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 12:49 [PATCH v3 00/10] Added missing changes for Turbo feature on SKL akash.goel
2015-02-26 12:49 ` [PATCH 1/8] drm/i915/skl: Added new macros akash.goel
2015-02-26 12:50 ` Chris Wilson
2015-02-26 12:51 ` Chris Wilson
2015-03-05 8:42 ` Akash Goel
2015-03-05 8:45 ` Chris Wilson
2015-02-26 12:49 ` [PATCH 2/8] drm/i915/skl: Updated intel_gpu_freq() and intel_freq_opcode() akash.goel
2015-03-05 10:18 ` Ville Syrjälä [this message]
2015-02-26 12:49 ` [PATCH 3/8] drm/i915/skl: Updated the gen6_init_rps_frequencies function akash.goel
2015-03-05 10:14 ` Ville Syrjälä
2015-03-05 10:26 ` Akash Goel
2015-02-26 12:49 ` [PATCH 4/8] drm/i915/skl: Updated the gen6_set_rps function akash.goel
2015-03-05 10:20 ` Ville Syrjälä
2015-02-26 12:49 ` [PATCH 5/8] drm/i915/skl: Restructured the gen6_set_rps_thresholds function akash.goel
2015-02-26 12:49 ` Chris Wilson
2015-02-26 12:49 ` [PATCH 6/8] drm/i915/skl: Updated the gen6_rps_limits function akash.goel
2015-03-05 10:20 ` Ville Syrjälä
2015-02-26 12:49 ` [PATCH 7/8] drm/i915/skl: Updated the gen9_enable_rps function akash.goel
2015-02-26 12:49 ` [PATCH 8/8] drm/i915/skl: Updated the i915_frequency_info debugfs function akash.goel
2015-02-28 9:57 ` shuang.he
2015-02-26 12:49 ` [PATCH 09/10] drm/i915/skl: Updated the act_freq_mhz_show sysfs function akash.goel
2015-03-05 10:22 ` Ville Syrjälä
2015-02-26 12:49 ` [PATCH 10/10] drm/i915/skl: Enabling processing of Turbo interrupts akash.goel
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=20150305101811.GZ11371@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=akash.goel@intel.com \
--cc=ankitprasad.r.sharma@intel.com \
--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