mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Tridgell <tridge@linuxcare.com>
To: linux-kernel@vger.kernel.org
Cc: junichi_morita@ysv.yokogawa.co.jp, torvalds@transmeta.com
Subject: setting cpu speed on crusoe
Date: Sun,  4 Feb 2001 09:39:39 +1100 (EST)	[thread overview]
Message-ID: <20010203223939.40F82659858@au2.samba.org> (raw)

Junichi Morita and I have worked out how to access the crusoe
"longrun" settings on the crusoe based VAIO. This allows you to enable
power saving mode and slow the cpu down. It should help battery life a
lot.

the following will enable power saving and set the cpu to the slowest
speed:

  setpci -s 0:0.0 a8.b=11

and this will restore you to max speed:

  setpci -s 0:0.0 a8.b=0e

the bits are:

LRON bit0: long run "on" - I'm not really sure what this does
LRRV bit1-3: cpu speed
LREN bit4: seems to enable variable speed 

the info came from a dump of the AML off the box like this:

00001e24:   Scope PCI0 (\_SB_.PCI0)
00001e30:     OpRegion LRCR (\_SB_.PCI0.LRCR)
00001e36:       PCI_Config
00001e37:       0xa8
00001e39:       0x04
00001e3b:     Field
00001e3e:       LRCR (00001e30)
00001e42:       AccessType: ByteAcc; LockRule: NoLock; UpdateRule: Preserve
00001e43:       NamedField (1 bits at 0x0:0) LRON
00001e48:       NamedField (3 bits at 0x0:1) LRRV
00001e4d:       NamedField (1 bits at 0x0:4) LREN

the patch to acpidisasm to give the bit offsets and lengths for named
fields is available from
http://www.samba.org/ftp/unpacked/picturebook/acpi.patch





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2001-02-03 22:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-03 22:39 Andrew Tridgell [this message]
2001-02-10 21:48 ` Pavel Machek
2001-02-13 17:33   ` Linus Torvalds
2001-02-14 11:44     ` Daniel Quinlan
2001-02-14 14:31       ` Ookhoi
2001-03-19 12:49       ` is it possible to upgrade crusoe code morphing software with linux? Ookhoi

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=20010203223939.40F82659858@au2.samba.org \
    --to=tridge@linuxcare.com \
    --cc=junichi_morita@ysv.yokogawa.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®