From: Matthew Garrett <mjg@redhat.com>
To: Tom Hughes <tom@compton.nu>
Cc: Thomas Renninger <trenn@suse.de>,
Cristiano Prisciandaro <cristiano.p@solnet.ch>,
Dave Jones <davej@redhat.com>,
cpufreq@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] cpufreq: eeepc 900 frequency scaling driver
Date: Sat, 6 Dec 2008 16:35:39 +0000 [thread overview]
Message-ID: <20081206163539.GB7623@srcf.ucam.org> (raw)
In-Reply-To: <4939B3C3.8060205@compton.nu>
On Fri, Dec 05, 2008 at 11:05:39PM +0000, Tom Hughes wrote:
> Thomas Renninger wrote:
>
> >The biggest problem I see with these "special" ACPI cpufreq interface is:
> >Can there be Asus/eeepcs which provide these ACPI functions (maybe dummies
> >on
> >future machines?), but can still be switched via the spec conform and more
> >efficient acpi-cpufreq driver via PSS tables?
>
> So should we tie this driver to particular DMI signature(s) then? As far
> as I know it is only useful for the Eee 900 and possibly the 701 when
> running later BIOSes.
It appears to be implemented in the 900 and 901 BIOSes as well, so some
kind of limitation is probably needed. The best approach would probably
to check whether the CPU has the EST flag. Just do something like:
struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu);
if (cpu->x86_vendor != X86_VENDOR_INTEL || cpu_has(cpu, X86_FEATURE_EST))
return -ENODEV
at the top of the cpufreq init code. That way you'll refuse to bind on
anything that implements speedstep and acpi-cpufreq can be used instead.
> Running with wifi and the screen off, and the CPU busy (doing m5sum of
> /dev/zero) I get 2:37 run time at 900MHz and 3:09 at 630MHz so the
> increase in run time is about 20% on that test.
My only concern about this is that implementing it via cpufreq means
that on most distributions you'll end up with ondamend running the CPU.
This makes sense on systems where the cpu scaling drops the voltage, but
that isn't the case here as far as I can tell. This may result in some
workloads now having lower battery lives than they did previously. I'll
try to do some experimentation next week.
Other than that, this patch looks good. I think it makes sense to
integrate it into eeepc-laptop.
--
Matthew Garrett | mjg59@srcf.ucam.org
next prev parent reply other threads:[~2008-12-06 16:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-23 15:27 [PATCH 1/1] cpufreq: eeepc 900 frequency scaling driver Cristiano Prisciandaro
2008-11-23 18:04 ` Pavel Machek
2008-12-02 16:15 ` Matthew Garrett
2008-12-02 20:14 ` Pavel Machek
2009-03-16 4:24 ` Len Brown
2009-03-16 8:29 ` Pavel Machek
2009-03-17 8:30 ` Fabio Comolli
2009-03-17 8:59 ` Fabio Comolli
2008-11-24 9:38 ` Tom Hughes
2008-11-24 15:13 ` Thomas Renninger
2008-11-24 16:36 ` Thomas Renninger
2008-11-24 16:41 ` [Acpi4asus-user] " Corentin Chary
2008-11-24 16:48 ` Tom Hughes
2008-11-24 16:58 ` Corentin Chary
2008-11-24 17:07 ` Tom Hughes
2008-11-24 16:46 ` Tom Hughes
2008-11-24 23:02 ` Cristiano Prisciandaro
2009-04-05 7:43 ` [Acpi4asus-user] " Corentin Chary
2009-04-05 7:43 ` Corentin Chary
2009-04-05 10:20 ` Matthew Garrett
2009-04-05 11:39 ` Grigori Goronzy
2008-11-24 16:39 ` Tom Hughes
2008-11-24 19:09 ` Cristiano Prisciandaro
2008-12-03 19:26 ` Tom Hughes
2008-12-04 1:57 ` Thomas Renninger
2008-12-05 23:05 ` Tom Hughes
2008-12-06 16:35 ` Matthew Garrett [this message]
2008-12-07 15:55 ` Tom Hughes
2008-12-09 12:36 ` Pavel Machek
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=20081206163539.GB7623@srcf.ucam.org \
--to=mjg@redhat.com \
--cc=cpufreq@vger.kernel.org \
--cc=cristiano.p@solnet.ch \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tom@compton.nu \
--cc=trenn@suse.de \
/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.