From: Eric Piel <Eric.Piel@lifl.fr>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Andrew Morton <akpm@osdl.org>,
Linux Kernel list <linux-kernel@vger.kernel.org>,
linuxppc64-dev <linuxppc64-dev@ozlabs.org>
Subject: Re: [PATCH] ppc64: Add cpufreq support for SMU based G5
Date: Tue, 04 Oct 2005 10:49:06 +0200 [thread overview]
Message-ID: <43424202.7070600@lifl.fr> (raw)
In-Reply-To: <1128403842.31063.24.camel@gaston>
10/04/2005 07:30 AM, Benjamin Herrenschmidt wrote/a écrit:
> iMac G5 and latest single CPU desktop G5 (SMU based machines) have a
> 970FX DD3 CPU that supports frequency & vooltage switching. This patch
> adds support for simple dual frequency switch. It is required for the
> upcoming thermal control patch for these machines.
>
Hello,
I know only very little about cpufreq, probably you could post your
patch to the cpufreq mailing list for better review :
cpufreq@lists.linux.org.uk (you may have to subscride before posting,
don't remember).
For what have seen, your patch looks pretty good in general. However, is
this kind of CPU only in one CPU machines? Your patch doesn't seem
support SMP, then it's probably safer to prevent compilation on an SMP
kernel in the Makefile? Or you can add SMP support (shouldn't be so hard
in theory, but with no hardware to test it might be pointless), you can
have a look at other drivers that support it, like in
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c .
Just a little more thing, concerning:
+ policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
Could you have a look if you could find the real info about how long it
takes to change the speed (put the worse case latency)? Maybe the info
can be found in some parts of the ROM you read? I don't know if
conservative or ondemand governors are supposed to be able to mix with
your code (especially wrt Windfarm) but not putting this info will
prevent them from ever working...
Cheers,
Eric
next prev parent reply other threads:[~2005-10-04 8:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-04 5:30 [PATCH] ppc64: Add cpufreq support for SMU based G5 Benjamin Herrenschmidt
2005-10-04 8:49 ` Eric Piel [this message]
2005-10-04 9:12 ` Benjamin Herrenschmidt
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=43424202.7070600@lifl.fr \
--to=eric.piel@lifl.fr \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc64-dev@ozlabs.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.