From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Ben Widawsky <ben@bwidawsk.net>
Subject: Re: [PATCH 2/2] drm/i915: Don't default to overclock max
Date: Tue, 09 Apr 2013 16:44:28 +0300 [thread overview]
Message-ID: <87k3obyg1v.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <1365197363-10218-2-git-send-email-ben@bwidawsk.net>
Ben Widawsky <ben@bwidawsk.net> writes:
> Requested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
> ---
> drivers/gpu/drm/i915/intel_pm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 2edb743..c81921b 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -2632,11 +2632,10 @@ static void gen6_enable_rps(struct drm_device *dev)
> pcu_mbox = 0;
> ret = sandybridge_pcode_read(dev_priv, GEN6_READ_OC_PARAMS, &pcu_mbox);
> if (!ret && (pcu_mbox & (1<<31))) { /* OC supported */
> - DRM_DEBUG_DRIVER("overclocking supported, adjusting frequency max from %dMHz to %dMHz\n",
> + DRM_DEBUG_DRIVER("Overclocking supported. Max: %dMHz, Overclock max: %dMHz\n",
> (dev_priv->rps.max_delay & 0xff) * 50,
> (pcu_mbox & 0xff) * 50);
Minor nitpick:
Use GT_FREQUENCY_MULTIPLIER instead of 50
> dev_priv->rps.hw_max = pcu_mbox & 0xff;
> - dev_priv->rps.max_delay = pcu_mbox & 0xff;
> }
> } else {
> DRM_DEBUG_DRIVER("Failed to set the min frequency\n");
> --
> 1.8.2
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
next prev parent reply other threads:[~2013-04-09 13:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-03 2:45 [PATCH] drm/i915: Better overclock support Ben Widawsky
2013-04-03 8:27 ` Daniel Vetter
2013-04-05 21:29 ` [PATCH 1/2] [v2] " Ben Widawsky
2013-04-05 21:29 ` [PATCH 2/2] drm/i915: Don't default to overclock max Ben Widawsky
2013-04-09 13:44 ` Mika Kuoppala [this message]
2013-04-09 16:58 ` Daniel Vetter
2013-04-09 13:42 ` [PATCH] drm/i915: Better overclock support Mika Kuoppala
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=87k3obyg1v.fsf@gaia.fi.intel.com \
--to=mika.kuoppala@linux.intel.com \
--cc=ben@bwidawsk.net \
--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 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.