PCI: fix ICH6 quirks
PATCH 1/1 PCI: fix ICH6 quirks
[PATCH] PCI: fix ICH6 quirks
- add the ICH6(R) LPC to the ICH6 ACPI quirks. currently only the ICH6-M is handled. [ PCI_DEVICE_ID_INTEL_ICH6_1 is the ICH6-M LPC, ICH6_0 is the ICH6(R) ]
- remove the wrong quirk calling asus_hides_smbus_lpc() for ICH6. the register modified in asus_hides_smbus_lpc() has a different meaning in ICH6.
drivers/pci/quirks.c +1 -1
@@ -438,6 +438,7 @@ static void __devinit quirk_ich6_lpc_acppci_read_config_dword (dev,0x48 , ®ion);quirk_io_region (dev, region,64 ,PCI_BRIDGE_RESOURCES +1 ,"ICH6 GPIO" ); } +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ICH6_0 , quirk_ich6_lpc_acpi );DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ICH6_1 , quirk_ich6_lpc_acpi );/*
@@ -1091,7 +1092,6 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_IDECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82801CA_12 , asus_hides_smbus_lpc );DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82801DB_12 , asus_hides_smbus_lpc );DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82801EB_0 , asus_hides_smbus_lpc ); -DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ICH6_1 , asus_hides_smbus_lpc );static void __init asus_hides_smbus_lpc_ich6 (struct pci_dev *dev) {
Hi Daniel,
Quoted 4 lines
[PATCH] PCI: fix ICH6 quirks
- add the ICH6(R) LPC to the ICH6 ACPI quirks. currently only the ICH6-M is handled. [
PCI_DEVICE_ID_INTEL_ICH6_1is the ICH6-M LPC,ICH6_0is the ICH6(R) ]
No objection.
Quoted 2 lines
- remove the wrong quirk calling
asus_hides_smbus_lpc()for ICH6. the register modified inasus_hides_smbus_lpc()has a different meaning in ICH6.
My mistake :( Thanks for fixing it. Do you know if executing the old quirk on the ICH6 can cause trouble? In other words, should we backport this fix to 2.6.17.y?
Quoted 2 lines
Signed-off-by Daniel Ritz <[email protected]>Cc Jean Delvare <[email protected]>
Quoted 20 lines
drivers/pci/quirks.c +1
-1@@ -438,6 +438,7 @@ static void __devinit quirk_ich6_lpc_acppci_read_config_dword (dev,0x48 , ®ion);quirk_io_region (dev, region,64 ,PCI_BRIDGE_RESOURCES +1 ,"ICH6 GPIO" ); } +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ICH6_0 , quirk_ich6_lpc_acpi );DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ICH6_1 , quirk_ich6_lpc_acpi );/* @@ -1091,7 +1092,6 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_IDECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82801CA_12 , asus_hides_smbus_lpc );DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82801DB_12 , asus_hides_smbus_lpc );DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82801EB_0 , asus_hides_smbus_lpc ); -DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ICH6_1 , asus_hides_smbus_lpc );static void __init asus_hides_smbus_lpc_ich6 (struct pci_dev *dev) {
Signature · 1 line
Jean Delvare
Quoted 7 lines · Jean Delvare
Hi Daniel,
Quoted 4 lines
[PATCH] PCI: fix ICH6 quirks
- add the ICH6(R) LPC to the ICH6 ACPI quirks. currently only the ICH6-M is handled. [
PCI_DEVICE_ID_INTEL_ICH6_1is the ICH6-M LPC,ICH6_0is the ICH6(R) ]
Quoted 8 lines
No objection.
Quoted 2 lines
- remove the wrong quirk calling
asus_hides_smbus_lpc()for ICH6. the register modified inasus_hides_smbus_lpc()has a different meaning in ICH6.My mistake :( Thanks for fixing it. Do you know if executing the old quirk on the ICH6 can cause trouble? In other words, should we backport this fix to 2.6.17.y?
the register it touches is part of the "root complex base address" register. so changing it means the ICH6 decodes a different address range that could conflict with something else...so yes, i think this is a 2.6.17.x candidate.
rgds
-daniel
Quoted 13 lines · Jean Delvare
Quoted 12 lines
Hi Daniel,
Quoted 4 lines
[PATCH] PCI: fix ICH6 quirks
- add the ICH6(R) LPC to the ICH6 ACPI quirks. currently only the ICH6-M is handled. [
PCI_DEVICE_ID_INTEL_ICH6_1is the ICH6-M LPC,ICH6_0is the ICH6(R) ]No objection.
Quoted 2 lines
- remove the wrong quirk calling
asus_hides_smbus_lpc()for ICH6. the register modified inasus_hides_smbus_lpc()has a different meaning in ICH6.
Quoted 7 lines
Quoted 3 lines
My mistake :( Thanks for fixing it. Do you know if executing the old quirk on the ICH6 can cause trouble? In other words, should we backport this fix to 2.6.17.y?
the register it touches is part of the "root complex base address" register. so changing it means the ICH6 decodes a different address range that could conflict with something else...so yes, i think this is a 2.6.17.x candidate.
OK, this also means that we want your patch in 2.6.18. Greg, can you pick it quickly?
Thanks,
Signature · 1 line
Jean Delvare
Greg KH
AppliedQuoted 9 lines · Daniel Ritz
[PATCH] PCI: fix ICH6 quirks
- add the ICH6(R) LPC to the ICH6 ACPI quirks. currently only the ICH6-M is handled. [
PCI_DEVICE_ID_INTEL_ICH6_1is the ICH6-M LPC,ICH6_0is the ICH6(R) ]
- remove the wrong quirk callingasus_hides_smbus_lpc()for ICH6. the register modified inasus_hides_smbus_lpc()has a different meaning in ICH6.Signed-off-by Daniel Ritz <[email protected]>Cc Jean Delvare <[email protected]>
Queued to -stable, thanks.
greg k-h