[right one][patch] amd athlon cooling on kt266/266a chipset

Daniel Nofftz (nofftz@castor.uni-trier.de)
Tue, 22 Jan 2002 18:21:18 +0100 (CET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---947385803-1046103454-1011720078=:11025
Content-Type: TEXT/PLAIN; charset=US-ASCII

in the first mail, i forget to append the patch ... this one is the right
mail to look at ... (sorry)

hi there!

a few month ago someone has posted a patch for enabling the disconneect
on STPGND detect function in the kt133/kt133a chipset. for those who don't
know what this does: it sets a bit in a register of the northbridge of the
chipset to enable the power saving modes of the athlon/duron/athlon xp
prozessors.
i did not found any patch which enables this function on an kt266/kt266a
board. so i modified this patch (
http://groups.google.com/groups?q=via_disconnect&hl=en&selm=linux.kernel.20010903002855.A645%40gondor.com&rnum=1
)
to support the kt266 and kt266a chipset to.

now i am looking for people to test the patch and repord, whether it works
allright on other computers than my computer (i tested this patch on an
epox 8kha+ whith an xp1600+).

if you want to test this patch:
1. first apply the patch
2. enable generel-setup -> acpi , acpi-bus-maager , prozessor
in the kernel config
3. add to the "append" line in /etc/lilo.conf the "amd_disconnect=yes"
statemand (or after reboot enter at the kernel-boot-prompt
"amd_disconnect=yes")
4. build a knew kernel
5. report to me, whether you have problems ...

if the patch gets a good feedback, maybe it is something for the official
kernel tree ?

daniel

# Daniel Nofftz
# Sysadmin CIP-Pool Informatik
# University of Trier(Germany), Room V 103
# Mail: daniel@nofftz.de

---947385803-1046103454-1011720078=:11025
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="amd_cool.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.40.0201221821180.11025@infcip10.uni-trier.de>
Content-Description:
Content-Disposition: attachment; filename="amd_cool.diff"

LS0tIGxpbnV4LTIuNC4xNy1vcmlnL2RyaXZlcnMvcGNpL3F1aXJrcy5jCVN1
biBOb3YgMTEgMTk6MDk6MzMgMjAwMQ0KKysrIGxpbnV4L2RyaX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5OF9pZCB9LA0K
---947385803-1046103454-1011720078=:11025--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/