Athlon Powersaving HOWTO

Daniel Nofftz

daniel@nofftz.net.NOSPAM

Seiji Kaneko - {F

2003-10-04

Revision History                                                      
Revision 1.1.0            2003-10-04         Revised by: dn           
ƃNꂱǉB                                          
Revision 1.02             2003-08-29         Revised by: dn           
VEFuTCgAV[AhX -> NXV                        
Revision 1.01             2003-07-09         Revised by: dn           
oOCBAMD-`bvZbg̃R}hCnbN܂ł
B                                                                  
Revision 1.0              2003-06-20         Revised by: tm           
ŏ̃[XBLDP ł̍ǔ                                        

Athlon/Duron/AthlonXP vZbTƓ̃}U[{[h/`bvZbg̑g
킹Ńp[Z[u@\Lɂ@B

 

Table of Contents
1. ͂߂
   
    1.1. Athlon p[Z[u[h̊{
    1.2. Copyright and License
    1.3. Disclaimer
    1.4. tB[hobN
    1.5. ̐̕V
   
2. lXȃAv[`
   
    2.1. R}hCnbN
    2.2. Athcool vO
    2.3. BIOS Abvf[g
    2.4. ̃J[lpb`
    2.5. LVCool g@
    2.6. FVCool vO
    2.7. AMD 760MP p[Z[u
   
3. ɂ́H
   
    3.1. Ă邩ǂeXg@
    3.2. m̃oO/_
    3.3. ToDo
    3.4. |
   
1. ͂߂

1.1. Athlon p[Z[u[h̊{

  ʏ Linux J[l̃ACh[vŎgĂ HLT ḾA
Athlon/Duron t@~̃vZbT (ȉł Athlon Ƒ̂܂) ł͑
ȃp[Z[uʂ͓܂B Athlon vZbTŖ{Ƀp[Z
[usꍇ́AvZbT STPGNT-Mode (Stop Grant Mode) ɂ
Kv܂B̃[hł̓vZbT̓tgTChoX (FSB) 
؂藣ACPU ̓̕d؂Ad͐ߌ̂߂ɃNbN
Ƃ܂B

  ŋ߂̃}U[{[h/`bvZbǵAHLT Moۂ STPGNT [
hɂ@\T|[gĂ܂B

 

1.2. Copyright and License

y󒍁F{߂͖󂵂܂z

  This document, Athlon Powersaving HOWTO, is copyrighted (c) 2003 by 
Daniel Nofftz.

  Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is available at   http://www.gnu.org/
copyleft/fdl.html <http://www.gnu.org/copyleft/fdl.html>.

  Linux is a registered trademark of Linus Torvalds.

 

1.3. Disclaimer

y󒍁F{߂͖󂵂܂z

  No liability for the contents of this document can be accepted. Use
the concepts, examples and information at your own risk. There may be
errors and inaccuracies, that could be damaging to your system. Proceed
with caution, and although this is highly unlikely, the author(s) do
not take any responsibility.

  All copyrights are held by their respective owners, unless
specifically noted otherwise. Use of a term in this document should not
be regarded as affecting the validity of any trademark or service mark.
Naming of particular products or brands should not be seen as
endorsements.

 

1.4. tB[hobN

tB[hobN͂̕łdvȕłBV`bvZbĝ
̐V@ɕKvƂȂĂ܂B܂AŒ񋟂@
ǂ̕񍐂KvłBǋLė~eAӌ]͈ȉ e-mail
AhX <daniel@nofftz.net.NOSPAM> ɂ肢܂B

dq[͉pꂩhCcł肢܂B

 

1.5. ̐̕V

  ̍̕ŐVł͂ <http://www.daniel.nofftz.net/linux/> 
ŏɒuĂ܂B

 

2. lXȃAv[`

ȉ̊e߂ł́AړIA܂ Athlon x[X̃VXeł̃p[Z[
uB邽߂̗lXȎ@Ă܂B̒ō̂Ƃ남
̕@́A"R}hCnbN" p@łBJ[lpb`͊
ÂȂĂĊJ~܂ĂA LVCool ͈ނ̃`bvZbgt@~
T|[gĂ܂B athcool vO͗ǂłA܂
g͎Ă܂B

̊e@͂قڑSāA`bvZbg̃m[XubW "STPGNT o
fBXRlNgLɂ鐧rbg" 𗧂Ă̂łBȏłȉ
܂B̕Kvȏ́Aacpi-c2 ACh[hɓɃv
ZbT STPGNT M𑗂J[l ACPI TuVXeōsĂ܂
B

J[l ACPI T|[ggݍݍς݂ł͖ꍇɂ́AJ[l̐ݒ
蒼ĐVJ[l蒼Kv܂B ACPI ֘ÃIvV
́AGeneral Setup+Power Management Setup->ACPI ȉłBȂƂ
AACPI Bus ManagerASystem  Processor ̊eIvV͗LɂKv
܂B

  ܂͐V 2.4.22 J[lł́AGeneral Setup+ACPI Support ȉł
BȂƂ Processor ȉ̃IvV͗LɂĂKv܂B

  ꕔ̃`bvZbgł́AHLT Mo STPGNT Ƃ@\T|[g
Ă܂B̃}U[{[h/`bvZbgł ACPI @\Lɂ
Kv܂B݁AACPI Ȃœ`bvZbg ACPI Kvȃ`b
vZbg̏WĂ܂BȂ̃}U[{[hŎʂ[
Ă (Section 3.1 Q)B

 

2.1. R}hCnbN

R}hCnbNgɂ́Aʏ̓J[l ACPI T|[gL
ȂĂKv܂Bsvȏꍇɂ́A̎|LڂĂ܂Bp
[Z[u@\Lɂ̂Ƀu[g͕svłBp[Z[u@\͈ȉ
̃R}h On/Off \łB

KT133/133A, KX133, KL/KLE133, KM/KN133 ̊e`bvZbg (炩 ACPI
    LłKv)
   
    L - setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 52) | 0x80)))
   
     - setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 52) & 0x7f)))
   
KT266/266A/333, KM266/333 ̊e`bvZbg
   
    L -
   
    setpci -v -H1 -s 0:0.0 92=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    92) | 0x80)))
   
    setpci -v -H1 -s 0:0.0 95=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    95) | 0x02)))
   
     -
   
    setpci -v -H1 -s 0:0.0 92=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    92) & 0x7f)))
   
    setpci -v -H1 -s 0:0.0 95=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    95) & 0xfd)))
   
KT400 ̏ꍇ
   
    L -
   
    setpci -v -H1 -s 0:0.0 D2=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    D2) | 0x80)))
   
    setpci -v -H1 -s 0:0.0 D5=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    D5) | 0x02)))
   
     -
   
    setpci -v -H1 -s 0:0.0 D2=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    D2) & 0x7f)))
   
    setpci -v -H1 -s 0:0.0 D5=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    D5) & 0xfd)))
   
SIS730/733 ̏ꍇ (IB삵ꍇA|[g)
   
    L - setpci -v -H1 -s 0:0.0 6B=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 6B) | 0x01)))
   
     - setpci -v -H1 -s 0:0.0 6B=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 6B) & 0xfe)))
   
SIS735/740/745/746/755 ̏ꍇ
   
    L - setpci -v -H1 -s 0:0.0 6A=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 6A) | 0x0001)))
   
     - setpci -v -H1 -s 0:0.0 6A=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 6A) & 0xfffe)))
   
Nforce ̏ꍇ
   
    L -
   
    setpci -v -H1 -s 0:0.0 E7=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    E7) | 0x06)))
   
    setpci -v -H1 -s 0:0.0 6D=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    6D) | 0x80)))
   
     -
   
    setpci -v -H1 -s 0:0.0 E4=$(printf %x $((0x$(setpci -H1 -s 0:0.0
    E7) & 0xf9)))
   
Nforce 2 ̏ꍇ (ACPI Ȃœ삵܂)
   
    L - setpci -v -H1 -s 0:0.0 6F=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 6F) | 0x10)))
   
     - setpci -v -H1 -s 0:0.0 6F=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 6F) & 0xef)))
   
AMD751  AMD760/761 (ACPI T|[gȂɓ삵܂)
   
    L - setpci -v -s 0:0.0 0x62=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 62) | 0x06)))
   
     - setpci -v -s 0:0.0 0x62=$(printf %x $((0x$(setpci -H1 -s
    0:0.0 62) & 0xf9)))
   
 

2.2. Athcool vO

Athcool ͏ setpci R}hƓsȃvOłB
́ALƓ`bvZbgT|[gĂAȂ̎Ă`b
vZbgFăp[Z[u삷悤ݒs܂B

ڂ (ă_E[h)    <http://members.jcom.home.ne.jp/
jacobi/linux/softwares.html> s܂B

 

2.3. BIOS Abvf[g

  V}U[{[ḧꕔł́A[J{[h̃`bvZbg̕Kv
rbgZbg (܂́ALɂ邩ǂ BIOS ݒ肩Ił
悤ɂ) @\񋟂Ă܂B}U[{[h̃x_̃z[y[W
āÂ悤 BIOS Abvf[g邩ǂmFĂ݂Ă
B

 

2.4. ̃J[lpb`

̃pb` Newsnet Ōʂ̃pb` (Jan Niehusmann ̕)
ɂĂ܂B܂Ãpb` KT266/266A `bvZbgœ삷
悤ύXĂ܂BǂɂÃpb`̓R}hCnbNƓ
ƂAJ[lsĂ邾łB̂߁Ag{ɊȒP
ȃR}hCnbN̕߂łB

菇ǂĐi߂܂Bȉpb`̓ĕłB

 1.   ܂ȉ̃pb`_E[h܂B
   
      2.4.17 ނJ[lpb` <http://www.daniel.nofftz.net/linux/
    amd_cool.diff>
   
      2.4.21 ނJ[lpb` <http://www.daniel.nofftz.net/linux/
    amd_cool.linux-2.4.21.diff> (2.4.21 Ƀ|[g Thomas Reinhardt
    Ɋ)
   
 2. root ŃOC܂B
   
 3.   cd /usr/src
   
 4. pb`𓖂Ă܂ - cat $path-to-patch/amd_cool.diff | patch -p0
   
 5.   cd linux
   
 6. VJ[l܂B
   
 7. u[g܂BăJ[l̃u[gvvĝƂŁA 
    amd_disconnect=yes ̈s͂ĂB́AAthlon vZ
    bTɂ͊m̃oOA̃{[hł͖肪邽߂
    B̂߁Ãpb`͂܂ƂeXgKv܂B
    悤ȂA/etc/lilo.conf t@C amd_disconnect=yes ̍s
    邱Ƃł܂B
   
 

2.5. LVCool g@

  LVCool  Windows ̏ȃvO VCool <http://
vcool.occludo.net/> ̈ڐAłB KT133/133A  KX133 `bvZbg
T|[gĂ܂񂵁Aȏ̃T|[g͂ł܂B
<http://vcool.occludo.net/VC_Linux.html> _E[h\łB
 Linux J[l ACPI @\KvƂ܂B

 

2.6. FVCool vO

     <http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/
download.html> ɁA̃`bvZbgT|[gʂ̃p[Z[u
vO܂Bg͎Ă܂񂪁A삷ƕĂ܂
BĂ݂ĂB܂Aɂ͈ꕔ̃}U[{[h̃{[h̃j
^@\g߂̃vO (lm-sensors Ɏ) Ă܂B

 

2.7. AMD 760MP p[Z[u

  760MP }`vZbT`bvZbgŃp[Z[uLJ[l
W[܂B <http://www.muru.com/linux/amd-smp-idle/> 
ł܂Bꂪǂ̒x삷̂Ȃ̂͂悭܂񂪁A
ȂƂ삵Ƃ[ʎ󂯎Ă܂BĂ݂Ă
B

 

3. ɂ́H

3.1. Ă邩ǂeXg@

  āALŋLڂĂp[Z[uîǂꂩp邱Ƃɂ
AeXg悤ƂƂ܂ŗ܂BeXgɂ͓̕@
܂B

  AxŐ䂷t@ CPU q[gVNɎgĂȂAt@
̑`FbNē삵Ă邩ǂ𒲂ׂ邱Ƃł܂B
ɂȂłāǍ CPU ɉׂ|܂B

͕ʂ͈ȉ̂悤ɂĂ܂B

 1.   [U (root) ɂȂB
   
 2.   cd /usr/src/linux
   
 3.   ̌ARs[^Ɏd^ - while true; do make clean;
    make bzImage; done
   
  20  30 bɁAt@ɉoăt@̉傫Ȃ
͂łBقǂقǂ̎ ()  CTRL-C Ń[v~߂
YꂸɁB

  菇ACPU ̉x𑪒肷vO (lm-sensors  xmbmon) 
g܂B

 

3.2. m̃oO/_

  Athlon/Duron ɂ͓̊m̃oO܂B́AAMD Athlon
Processor Revision Guide  #11  #14 ̖łBAthlon XP ̕
oOpxRƒႢ悤Ȃ̂ŁÂ悤 Athlon XP 
l͂ĂAƂƂɂȂ܂ [1]B

  ȉ̖肪\܂ (L̃oOɂ)

 E   yĐɍĐƂ
   
 E   rfIĐɍĐƂ
   
 E   Ultra-DMA n[hfBXN̓]x򉻂
   
 E VXenO
   
 E USB ̖
   
 E   s[ƂoƂ̕񍐂܂
   
  BIOS Abvf[gɗꍇ܂ (oO #11  BIOS \
ȉ܂ނ̂ƂẴ[X񋟂Ăꍇ)BAA̒m
肱̉ BIOS Œ񋟂Ă̂͐قǂ̃}U[{[hɌ
܂B

  Asus A7V133-C ł́ABIOS IvV PCI master read caching L
Ί֘A̖͂قƂǉ܂BBIOS ʂēY@\̗L
mFĂB

  ܂Aꕔ̃{[hł́ABIOS IvV Delayed Transaction 
ꕔ܂B̃IvVĂ݂Ɨǂł傤B

  : KT133A g{[hł́ÃIvVLɂƗL
VIA ̃TEXubW̃oOL܂B

Asus A7V Ɋւ Newsnet ̃|Xg

 E   delayed transaction Ȃ - TEh TV ̍ĐƂ
   
 E   delayed transaction  - TEhĐ͂ƂȂB TV ̍Đ
    킸ɂƂ
   
 E   delayed transaction  master read caching  - TV ̍Đ͂ق
    ǂƂꂸATEhĐ͑SƂȂB
   
ɂ͍̌l܂B

 E   dvZbT/}U[{[h̏d͂̕ϓɑςقǋ
    ł͂ȂB
   
 E   ꕔ̃}U[{[h̃I{[hM[^ɁA̓dƓ
    B
   
 E   Ă}U[{[h K7S5A (Elitegroup) ł (̒m
    Ã{[h̓p[Z[u@\LɂƖ{ɋsRɂȂ
    )
   
p[Z[u@\Lɂčׂ肪N邪Ap[Z[u͎g
ɂꍇAʏ̓p[Z[uLɂĂāAy̍Đ TV
ۂɃItɂ̂ǂł傤B

 

3.3. ToDo

  Ƀ`bvZbgƏXɒǉ邱

  }U[{[hɁA""  "Ȃ" ̒LtXg쐬K
v邩ȂB

 

3.4. |

̌ւ̖|󂪊ɑ݂Ă܂B_ł́ÂقƂǂ{
 XML O̔ł̖|łB

  Carlos Mayo ɂ   XyC <http://perso.wanadoo.es/cmayo/
docs/Athlon-Powersaving-HOWTO-es.html>

  Mathieu Pillard ɂ   tX <http://
www.daniel.nofftz.net/linux/Athlon-Powersaving-HOWTO-fr.html>

  Maurizio Fantino ɂ   C^A <http://
www.daniel.nofftz.net/linux/Athlon-Powersaving-HOWTO-it.html>

  Fabian Mohren ɂ   hCc (ꕔ̂) <http://
www.linuxwiki.de/PowersavingHowto>

  ˂ɂ{ <http://www.linux.or.jp/JF/JFdocs/
Athlon-Powersaving-HOWTO/index.html>

Notes

[1] : Model 4 (Athlon Thunderbird) ̖ #11,#14  Model 6       
    (Athlon XP) ł̓hLgCĂ悤ɌB܂ 
    ̂ȁB                                                       

