All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nils Faerber <nils.faerber@kernelconcepts.de>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: CPU MSR register "tweak" module?
Date: Fri, 28 Sep 2012 14:27:58 +0200	[thread overview]
Message-ID: <506597CE.9030703@kernelconcepts.de> (raw)

Hello!
Recently I purchased an AMD E-450 based netbook - my first AMD CPU for a
long time. As expected Grub works perfectly on it - as does the Debian
Linux I did install.

Many AMD CPUs, and some Intel CPUs maybe too, can be tweaked for way
lower power consumption by modifying the CPU MSR registers to lower the
core voltage and eventually also the frequency (per P-state).

The drawback of this is that the new values are lost upon reboot or
suspend-to-disk. And additionally some of the Linux kernel drivers that
get loaded or re-initialised during boot/resume pick up those values
from those registers before user-space can re-setup them.

So I was wondering if there is a possibility to configure Grub in a way
that it will set-up specific registers with specific values. Ideally
using the Grub config file... a small table with register/value pairs
would be enough and they can just be written to the MSR registers
without additional magic, so such a function should be pretty easy to
implement - if it does not exist yet.

I did search through the docs and also had a brief look at the Grub
source but could not find something like that.

Cheers
  nils

-- 
kernel concepts GmbH       Tel: +49-271-771091-12
Sieghuetter Hauptweg 48
D-57072 Siegen             Mob: +49-176-21024535
http://www.kernelconcepts.de


             reply	other threads:[~2012-09-28 12:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28 12:27 Nils Faerber [this message]
2012-09-28 15:59 ` CPU MSR register "tweak" module? Vladimir 'φ-coder/phcoder' Serbinenko
2012-09-28 16:13   ` Nils Faerber

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=506597CE.9030703@kernelconcepts.de \
    --to=nils.faerber@kernelconcepts.de \
    --cc=grub-devel@gnu.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.