From: Ben Widawsky <ben@bwidawsk.net>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] xdrm/i915: Respect HW RC6 states availability
Date: Wed, 24 Oct 2012 22:31:01 -0700 [thread overview]
Message-ID: <20121024223101.000041b4@unknown> (raw)
In-Reply-To: <1351116315-1822-1-git-send-email-rodrigo.vivi@gmail.com>
On Wed, 24 Oct 2012 20:05:15 -0200
Rodrigo Vivi <rodrigo.vivi@gmail.com> wrote:
> If Hardware doesn't allow RC6p or RC6pp we shall avoid end users
> turning them on, falling back to the only RC6 deepness available.
>
> v2: fixed "if" comparison pointed by Chris Wilson
>
For future reference, putting "v2" in the title is often helpful in
situations like this.
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
> ---
> drivers/gpu/drm/i915/intel_pm.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c
> b/drivers/gpu/drm/i915/intel_pm.c index 50f5809..b6362d0 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -2370,7 +2370,7 @@ static void gen6_disable_rps(struct drm_device
> *dev) int intel_enable_rc6(const struct drm_device *dev)
> {
> /* Respect the kernel parameter if it is set */
> - if (i915_enable_rc6 >= 0)
> + if (i915_enable_rc6 == 0)
> return i915_enable_rc6;
>
> if (INTEL_INFO(dev)->gen == 5) {
> @@ -2394,6 +2394,9 @@ int intel_enable_rc6(const struct drm_device
> *dev) return INTEL_RC6_ENABLE;
> }
>
> + if (i915_enable_rc6 > 0)
> + return i915_enable_rc6;
> +
> DRM_DEBUG_DRIVER("RC6 and deep RC6 enabled\n");
> return (INTEL_RC6_ENABLE | INTEL_RC6p_ENABLE);
> }
I like the direction this patch is going but I think it does limit
people with knowledge might want to do (for instance, I ran with rc6
on ILK just fine for quite a while).
How about we use add_taint instead, and a printk with KERN_WARNING for
platforms which have known issues?
next prev parent reply other threads:[~2012-10-25 5:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <84c8a88hfcj@orsmga001.jf.intel.com>
2012-10-24 22:05 ` [PATCH] xdrm/i915: Respect HW RC6 states availability Rodrigo Vivi
2012-10-25 5:31 ` Ben Widawsky [this message]
2012-10-26 10:17 ` Chris Wilson
2012-10-24 22:07 ` [PATCH] drm/i915: " Rodrigo Vivi
2012-10-24 22:13 ` Rodrigo Vivi
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=20121024223101.000041b4@unknown \
--to=ben@bwidawsk.net \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rodrigo.vivi@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox