From: Jan Niehusmann <jan@gondor.com>
To: "Grover, Andrew" <andrew.grover@intel.com>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: VCool - cool your Athlon/Duron during idle
Date: Mon, 3 Sep 2001 00:28:55 +0200 [thread overview]
Message-ID: <20010903002855.A645@gondor.com> (raw)
In-Reply-To: <4148FEAAD879D311AC5700A0C969E89006CDE0B7@orsmsx35.jf.intel.com>
In-Reply-To: <4148FEAAD879D311AC5700A0C969E89006CDE0B7@orsmsx35.jf.intel.com>
On Mon, Aug 27, 2001 at 02:26:09AM -0700, Grover, Andrew wrote:
> Well I don't want to inhibit your hackerly fervor, but C2 and C3 handling
> are already supported by the ACPI driver, in a vendor-neutral manner.
I did look into this, and indeed the ACPI code is doing this much better
than my patch did.
The only thing it is missing is enabling disconnect in C2 mode. Of course,
enabling a feature that may have been disabled by the BIOS with a good reason
may be dangerous. Still, it seems to work for me ;-) and saves a lot of power.
With the ACPI code and a simple patch that enables bus disconnection, I get
the same power saving as with the lvcool userspace program, but a much better
performance for things like NFS access. (in fact, NFS access is the only
thing where I notice a significant slowdown when running lvcool)
Additionaly, this patch is much smaller than the last one. But of course,
it's only usefull if ACPI is working (which it is for me).
I added the code to quirks.c because it allowed some quick cut&paste ;-)
The code is enabled if the kernel is booted with via_disconnect=yes
To give some numbers (measured with a simple, probably not very accurate
'power monitor'):
Idle without disconnect: ~80W
Idle with disconnect: ~60W
Compiling a kernel: ~90W
(all numbers for a Duron 800, Asus A7V133, Voodoo 3, Maxtor 80GB hard disk,
256MB RAM and some PCI cards)
By the way, does anybody know why modprobe ospm_busmgr doesn't return, but
the module works if I interrupt the modprobe with CTRL-C?
Jan
diff -ur linux-2.4.9-ac5/drivers/pci/quirks.c linux-2.4.9-ac5-vcool/drivers/pci/quirks.c
--- linux-2.4.9-ac5/drivers/pci/quirks.c Sun Sep 2 15:37:56 2001
+++ linux-2.4.9-ac5-vcool/drivers/pci/quirks.c Sun Sep 2 23:58:12 2001
@@ -21,6 +21,8 @@
#undef DEBUG
+int enable_via_disconnect;
+
/* Deal with broken BIOS'es that neglect to enable passive release,
which can cause problems in combination with the 82441FX/PPro MTRRs */
static void __init quirk_passive_release(struct pci_dev *dev)
@@ -146,6 +148,21 @@
printk(KERN_INFO "Applying VIA southbridge workaround.\n");
}
+static void __init quirk_viadisconnect(struct pci_dev *dev)
+{
+ u32 res32;
+
+ if(!enable_via_disconnect) return;
+
+ pci_read_config_dword(dev,0x52&0xfc,&res32);
+ if ((res32&0x00800000)==0) {
+ printk(KERN_INFO "Enabling disconnect in VIA northbridge.\n");
+ res32|=0x00800000;
+ pci_write_config_dword(dev,0x52&0xfc,res32);
+ } else
+ printk(KERN_INFO "Disconnect already anabled in VIA northbridge.\n");
+}
+
/*
* VIA Apollo VP3 needs ETBF on BT848/878
*/
@@ -453,6 +470,8 @@
{ PCI_FIXUP_FINAL, PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5597, quirk_nopcipci },
{ PCI_FIXUP_FINAL, PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_496, quirk_nopcipci },
{ PCI_FIXUP_FINAL, PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8363_0, quirk_vialatency },
+ { PCI_FIXUP_FINAL, PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8363_0, quirk_viadisconnect },
+ { PCI_FIXUP_FINAL, PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8371_0, quirk_viadisconnect },
{ PCI_FIXUP_FINAL, PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8371_1, quirk_vialatency },
{ PCI_FIXUP_FINAL, PCI_VENDOR_ID_VIA, 0x3112 /* Not out yet ? */, quirk_vialatency },
{ PCI_FIXUP_FINAL, PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C597_0, quirk_viaetbf },
@@ -500,3 +519,12 @@
pci_do_fixups(dev, pass, pcibios_fixups);
pci_do_fixups(dev, pass, pci_fixups);
}
+
+static int __init via_disconnect_setup (char *str) {
+ if(!strncmp(str,"yes",3)) {
+ enable_via_disconnect=1;
+ }
+ return 1;
+}
+
+__setup("via_disconnect=", via_disconnect_setup);
next prev parent reply other threads:[~2001-09-02 22:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-27 9:26 VCool - cool your Athlon/Duron during idle Grover, Andrew
2001-08-27 9:53 ` Jan Niehusmann
2001-08-27 10:30 ` Slow system with K7 Carlos Costa Portela
2001-08-27 10:46 ` Alan Cox
2001-08-27 11:48 ` VCool - cool your Athlon/Duron during idle Liakakis Kostas
2001-08-27 15:03 ` Kurt Roeckx
2001-08-27 18:23 ` Liakakis Kostas
2001-08-27 20:56 ` Paul G. Allen
2001-08-27 10:42 ` Alan Cox
2001-08-27 12:16 ` Dieter Nützel
2001-08-27 20:17 ` Paul G. Allen
2001-09-02 22:28 ` Jan Niehusmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-08-27 20:57 Grover, Andrew
[not found] <87pu9i7frm.fsf@psyche.kn-bremen.de.suse.lists.linux.kernel>
[not found] ` <E15b6Rz-0002hM-00@the-village.bc.nu.suse.lists.linux.kernel>
2001-08-27 6:55 ` Andi Kleen
[not found] <87pu9i7frm.fsf@psyche.kn-bremen.de>
2001-08-26 20:24 ` Alan Cox
2001-08-26 18:09 Dieter Nützel
2001-08-26 19:24 ` Alan Cox
2001-08-26 20:00 ` Lehmann
2001-08-26 22:40 ` Andreas Bombe
2001-08-26 20:25 ` Dieter Nützel
2001-08-26 23:00 ` Jan Niehusmann
2001-08-27 22:46 ` Pavel Machek
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=20010903002855.A645@gondor.com \
--to=jan@gondor.com \
--cc=andrew.grover@intel.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox