[LinuxBIOS] s2881 fan control

Stefan Reinauer stepan at coresystems.de
Thu May 11 22:59:56 CEST 2006


* Ward Vandewege <ward at gnu.org> [060511 22:45]:
> On Tue, May 09, 2006 at 03:05:07PM -0400, Ward Vandewege wrote:
> ... lspci output ...
> > But there are actually quite a few other differences throughout the file,
> > which surprises me a litte. Lots of differences in the various northbridge
> > entries, and even the network cards and the sata controller. Is this normal?
> 
> A followup on this. First of all, I didn't realize that the PCI configuration
> space is dynamic - things change all the time.

Its probably some timer that counts there. This kind of thing almost
requires having the datasheet sitting in another window or printed out
next to you.

> Also, I missed one byte that IS consistently different after a boot with the
> proprietary BIOS:
> 
> 0000:01:04.3 Bridge: Advanced Micro Devices [AMD] AMD-8111 ACPI (rev 05)
> ...
> -40: 80 f1 00 04 00 00 00 00 20 14 50 00 00 00 00 00
> +40: 80 f1 00 07 00 00 00 00 20 14 50 00 00 00 00 00

Try the attached patch


-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
-------------- next part --------------
Index: src/southbridge/amd/amd8111/amd8111_acpi.c
===================================================================
--- src/southbridge/amd/amd8111/amd8111_acpi.c	(revision 2302)
+++ src/southbridge/amd/amd8111/amd8111_acpi.c	(working copy)
@@ -119,6 +119,10 @@
 	if (!on) {
 		byte |= 0x40;
 	}
+
+	/* Does this fix the fans? */
+	byte |= ( (1<<0) | (1<<1);
+	
 	pci_write_config8(dev, PREVIOUS_POWER_STATE, byte);
 	printk_info("set power %s after power fail\n", on?"on":"off");
 


More information about the coreboot mailing list