2 * This file contains work-arounds for x86 and x86_64 platform bugs.
4 #include <linux/config.h>
8 #if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP) && defined(CONFIG_PCI)
10 static void __devinit
quirk_intel_irqbalance(struct pci_dev
*dev
)
15 /* BIOS may enable hardware IRQ balancing for
16 * E7520/E7320/E7525(revision ID 0x9 and below)
18 * Disable SW irqbalance/affinity on those platforms.
20 pci_read_config_byte(dev
, PCI_CLASS_REVISION
, &rev
);
24 printk(KERN_INFO
"Intel E7520/7320/7525 detected.");
26 /* enable access to config space*/
27 pci_read_config_byte(dev
, 0xf4, &config
);
29 pci_write_config_byte(dev
, 0xf4, config
);
31 /* read xTPR register */
32 raw_pci_ops
->read(0, 0, 0x40, 0x4c, 2, &word
);
34 if (!(word
& (1 << 13))) {
35 printk(KERN_INFO
"Disabling irq balancing and affinity\n");
36 #ifdef CONFIG_IRQBALANCE
37 irqbalance_disable("");
46 /* disable access to config space*/
47 pci_write_config_byte(dev
, 0xf4, config
);
49 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL
, PCI_DEVICE_ID_INTEL_E7320_MCH
, quirk_intel_irqbalance
);
50 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL
, PCI_DEVICE_ID_INTEL_E7525_MCH
, quirk_intel_irqbalance
);
51 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL
, PCI_DEVICE_ID_INTEL_E7520_MCH
, quirk_intel_irqbalance
);