From: Matthew Garrett <mjg@redhat.com>
To: Andy Lutomirski <luto@mit.edu>
Cc: cpufreq@vger.kernel.org, davej@redhat.com,
linux-kernel@vger.kernel.org, borislav.petkov@amd.com,
mark.langsdorf@amd.com, andreas.herrmann3@amd.com
Subject: Re: [PATCH v4 3/7] acpi-cpufreq: Add support for disabling dynamic overclocking
Date: Sun, 24 Jul 2011 04:28:58 +0100 [thread overview]
Message-ID: <20110724032858.GA25722@srcf.ucam.org> (raw)
In-Reply-To: <4E2B8C35.7030304@mit.edu>
On Sat, Jul 23, 2011 at 11:06:29PM -0400, Andy Lutomirski wrote:
> On 07/18/2011 12:37 PM, Matthew Garrett wrote:
> >One feature present in powernow-k8 that isn't present in acpi-cpufreq is
> >support for enabling or disabling AMD's core performance boost technology.
> >This patch adds that support to acpi-cpufreq, but also extends it to allow
> >Intel's dynamic acceleration to be disabled via the same interface. The
> >sysfs entry retains the cpb name for compatibility purposes.
> >
> >Signed-off-by: Matthew Garrett<mjg@redhat.com>
> >---
> > drivers/cpufreq/acpi-cpufreq.c | 191 ++++++++++++++++++++++++++++++++++++++++
> > 1 files changed, 191 insertions(+), 0 deletions(-)
> >
>
> How is this different from setting 3400000 vs 3401000 as the max
> freq? (I'm probably missing something about the way that Intel's
> turbo mode works.)
It's not really, it just means that there's a shared interface to
achieve the same goal.
> >+ unsigned long val = 0;
> >+
> >+ ret = strict_strtoul(buf, 10,&val);
> >+ if (!ret&& (val == 0 || val == 1)&& cpb_supported)
> >+ cpb_toggle(val);
>
> Shouldn't this set the flag only on policy->cpu (as opposed to all
> online cpus?)
It's effectively a per-package MSR rather than a per-thread or per-core
one. We could make this per-package rather than system-wide, but I don't
really know of any use cases that would benefit from the extra code. If
anyone cares enough it could be added, but I'm a great believer in
letting people come up with arguments for adding something before doing
it...
> Also, you're missing a space before &&.
Think that's a cut and paste error. I'll fix it up.
--
Matthew Garrett | mjg59@srcf.ucam.org
next prev parent reply other threads:[~2011-07-24 3:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 16:37 [PATCH v4] Move modern AMD cpufreq support to acpi-cpufreq Matthew Garrett
2011-07-18 16:37 ` [PATCH v4 1/7] x86: Add AMD HW_PSTATE cpu feature bit and MSRs Matthew Garrett
2011-07-18 16:37 ` [PATCH v4 2/7] acpi-cpufreq: Add support for modern AMD CPUs Matthew Garrett
2011-07-18 16:37 ` [PATCH v4 3/7] acpi-cpufreq: Add support for disabling dynamic overclocking Matthew Garrett
2011-07-22 14:41 ` Borislav Petkov
2011-07-22 14:49 ` Matthew Garrett
2011-07-24 3:06 ` Andy Lutomirski
2011-07-24 3:28 ` Matthew Garrett [this message]
2011-07-24 3:15 ` Andy Lutomirski
2011-07-24 3:33 ` Matthew Garrett
2011-07-24 3:42 ` Andrew Lutomirski
2011-07-24 3:49 ` Matthew Garrett
2011-07-24 9:36 ` Borislav Petkov
2011-07-18 16:37 ` [PATCH v4 4/7] ACPI: Add fixups for AMD P-state figures Matthew Garrett
2011-07-18 16:37 ` [PATCH v4 5/7] cpufreq: Add compatibility hack to powernow-k8 Matthew Garrett
2011-07-18 16:37 ` [PATCH v4 6/7] cpufreq: Remove support for hardware P-state chips from powernow-k8 Matthew Garrett
2011-07-22 14:43 ` Borislav Petkov
2011-07-18 16:37 ` [PATCH v4 7/7] cpufreq: Add boost alias to cpb Matthew Garrett
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=20110724032858.GA25722@srcf.ucam.org \
--to=mjg@redhat.com \
--cc=andreas.herrmann3@amd.com \
--cc=borislav.petkov@amd.com \
--cc=cpufreq@vger.kernel.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@mit.edu \
--cc=mark.langsdorf@amd.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.