Commit cb13715f authored by Gavin Shan's avatar Gavin Shan Committed by Brad Figg

UBUNTU: SAUCE: powerpc/eeh: Remove EEH_PE_PRI_BUS in full hotplug recovery

BugLink: http://bugs.launchpad.net/bugs/1645826

commit 59ae8c6d ("powerpc/eeh: Fix invalid cached PE primary
bus") was wrongly backporting upstream commit a3aa256b: It
should clear the PE's flag (EEH_PE_PRI_BUS) in full hotplug instead
of partial hotplug scenario.

This fixes the issue by clearing EEH_PE_PRI_BUS in full hotplug
scenario only.

Fixes: 59ae8c6d ("powerpc/eeh: Fix invalid cached PE primary bus")
Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 40ab4cce
...@@ -630,13 +630,13 @@ static int eeh_reset_device(struct eeh_pe *pe, struct pci_bus *bus) ...@@ -630,13 +630,13 @@ static int eeh_reset_device(struct eeh_pe *pe, struct pci_bus *bus)
* rebuilt when adding PCI devices. * rebuilt when adding PCI devices.
*/ */
eeh_pe_traverse(pe, eeh_pe_detach_dev, NULL); eeh_pe_traverse(pe, eeh_pe_detach_dev, NULL);
eeh_pe_state_clear(pe, EEH_PE_PRI_BUS);
pcibios_add_pci_devices(bus); pcibios_add_pci_devices(bus);
} else if (frozen_bus && removed) { } else if (frozen_bus && removed) {
pr_info("EEH: Sleep 5s ahead of partial hotplug\n"); pr_info("EEH: Sleep 5s ahead of partial hotplug\n");
ssleep(5); ssleep(5);
eeh_pe_traverse(pe, eeh_pe_detach_dev, NULL); eeh_pe_traverse(pe, eeh_pe_detach_dev, NULL);
eeh_pe_state_clear(pe, EEH_PE_PRI_BUS);
pcibios_add_pci_devices(frozen_bus); pcibios_add_pci_devices(frozen_bus);
} }
eeh_pe_state_clear(pe, EEH_PE_KEEP); eeh_pe_state_clear(pe, EEH_PE_KEEP);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment