]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
smbus thermal management fix
authorChris Wright <chrisw@sous-sol.org>
Tue, 16 May 2006 23:08:49 +0000 (16:08 -0700)
committerChris Wright <chrisw@sous-sol.org>
Tue, 16 May 2006 23:08:49 +0000 (16:08 -0700)
queue-2.6.16/series
queue-2.6.16/smbus-unhiding-kills-thermal-management.patch [new file with mode: 0644]

index 07a2b71886e52968a19e95ff3e4b6d170014098f..dabbccd25cd07b3a17d29142ef789e6378d9bb9d 100644 (file)
@@ -4,3 +4,4 @@ usb-ub-oops-in-block_uevent.patch
 fs-locks.c-Fix-sys_flock-race.patch
 smbfs-fix-slab-corruption-in-samba-error-path.patch
 fs-compat.c-fix-if-typo.patch
+smbus-unhiding-kills-thermal-management.patch
diff --git a/queue-2.6.16/smbus-unhiding-kills-thermal-management.patch b/queue-2.6.16/smbus-unhiding-kills-thermal-management.patch
new file mode 100644 (file)
index 0000000..919aa48
--- /dev/null
@@ -0,0 +1,58 @@
+From stable-bounces@linux.kernel.org  Mon May 15 09:56:14 2006
+Date: Mon, 15 May 2006 09:44:33 -0700
+From: akpm@osdl.org
+To: torvalds@osdl.org
+Cc: pavel@suse.cz, c-d.hailfinger.devel.2006@gmx.net, stable@kernel.org
+Subject: [PATCH] smbus unhiding kills thermal management
+
+
+From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
+
+Do not enable the SMBus device on Asus boards if suspend is used.  We do
+not reenable the device on resume, leading to all sorts of undesirable
+effects, the worst being a total fan failure after resume on Samsung P35
+laptop.
+
+Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
+Signed-off-by: Pavel Machek <pavel@suse.cz>
+Cc: <stable@kernel.org>
+Signed-off-by: Andrew Morton <akpm@osdl.org>
+Signed-off-by: Chris Wright <chrisw@sous-sol.org>
+---
+
+ drivers/pci/quirks.c |    9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+--- linux-2.6.16.16.orig/drivers/pci/quirks.c
++++ linux-2.6.16.16/drivers/pci/quirks.c
+@@ -861,6 +861,7 @@ static void __init quirk_eisa_bridge(str
+ }
+ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82375,      quirk_eisa_bridge );
++#ifndef CONFIG_ACPI_SLEEP
+ /*
+  * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge
+  * is not activated. The myth is that Asus said that they do not want the
+@@ -872,8 +873,12 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_I
+  * bridge. Unfortunately, this device has no subvendor/subdevice ID. So it 
+  * becomes necessary to do this tweak in two steps -- I've chosen the Host
+  * bridge as trigger.
++ *
++ * Actually, leaving it unhidden and not redoing the quirk over suspend2ram
++ * will cause thermal management to break down, and causing machine to
++ * overheat.
+  */
+-static int __initdata asus_hides_smbus = 0;
++static int __initdata asus_hides_smbus;
+ static void __init asus_hides_smbus_hostbridge(struct pci_dev *dev)
+ {
+@@ -1008,6 +1013,8 @@ static void __init asus_hides_smbus_lpc_
+ }
+ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1,     asus_hides_smbus_lpc_ich6 );
++#endif
++
+ /*
+  * SiS 96x south bridge: BIOS typically hides SMBus device...
+  */