Some BIOS enable PCIe native hot-plug interrupt on _OSC evaluation. But it should not be enabled until hot-plug service driver is loaded, otherwise something wrong (ex. interrupt storm) can happen. So disable hot-plug interrupt at port service probe time. Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx> Signed-off-by: Kenji Kaneshige <kaneshige.kenji@xxxxxxxxxxxxxx> --- drivers/pci/pcie/portdrv_core.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) Index: linux-2.6.35-rc6/drivers/pci/pcie/portdrv_core.c =================================================================== --- linux-2.6.35-rc6.orig/drivers/pci/pcie/portdrv_core.c +++ linux-2.6.35-rc6/drivers/pci/pcie/portdrv_core.c @@ -253,8 +253,17 @@ static int get_port_device_capability(st /* Hot-Plug Capable */ if ((cap_mask & PCIE_PORT_SERVICE_HP) && (reg16 & PCI_EXP_FLAGS_SLOT)) { pci_read_config_dword(dev, pos + PCI_EXP_SLTCAP, ®32); - if (reg32 & PCI_EXP_SLTCAP_HPC) + if (reg32 & PCI_EXP_SLTCAP_HPC) { services |= PCIE_PORT_SERVICE_HP; + /* + * Disable hot-plug interrupts in case the hot-plug + * service driver is not loaded. + */ + pos += PCI_EXP_SLTCTL; + pci_read_config_word(dev, pos, ®16); + reg16 &= ~(PCI_EXP_SLTCTL_CCIE | PCI_EXP_SLTCTL_HPIE); + pci_write_config_word(dev, pos, reg16); + } } /* AER capable */ if ((cap_mask & PCIE_PORT_SERVICE_AER) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html