All of lore.kernel.org
 help / color / mirror / Atom feed
From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] AT91 cpufreq support
Date: Wed, 30 Sep 2009 17:22:53 +0200	[thread overview]
Message-ID: <4AC377CD.5020809@atmel.com> (raw)
In-Reply-To: <20090826193324.GB7084@pc-ras4041.res.insa>

Albin Tonnerre :
> Hi there,
> 
> Here is an updated version of the patch that brings cpufreq support on AT91.
> This one is more generic that the previous one: instead of using fixed values,
> it gets the current prescaler value and builds the frequency table accordingly.
> 
> It fixes a couple mistakes from the previous iteration, making it work more
> reliably, at least there. I also added a cpufreq notifier to atmel_serial, so
> that we don't lose the console over a frequency change (I'll move it to a
> separate patch in a further update, and will add such support for the macb
> driver too).
> As there's no cpufreq notifier in the macb driver (yet), using cpufreq with a
> NFS root filesystem will fail (obviously, other uses of the network will
> probably fail too, but at least they don't make the system unusable)
> 
> On a Calao USB-A9263 board, switching from 180MHz to 11MHz reduces the current
> consumption by roughly 65mA
> 
> Testing/feedback would be very much welcome

I am testing your cpufreq patch on at91sam9263ek board.

Indeed it is working quite well. But, I it is true that we will have to
add notifiers for several drivers: my LCD screen gets messy while
reducing frequency ;-)

Anyway, as I see that there is a notifier for serial driver, I wonder if
we can keep serial console connexion during frequency switching ? I
assume that we will have to change the baud rate configuration of the
terminal emulator but do you have a clue to give us (I tried without
success) ?

On my test case: at91sam9263ek without LCD backlight I have those
values: 1,63W @ 199MHz and 1,28W @ 12MHz => 21% gain: good !

Bye-bye,
-- 
Nicolas Ferre

  reply	other threads:[~2009-09-30 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-26 19:33 [RFC] AT91 cpufreq support Albin Tonnerre
2009-09-30 15:22 ` Nicolas Ferre [this message]
2009-09-30 16:28   ` Eric Bénard
2009-10-03 12:18     ` Albin Tonnerre

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=4AC377CD.5020809@atmel.com \
    --to=nicolas.ferre@atmel.com \
    --cc=linux-arm-kernel@lists.infradead.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.