Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea461ab

Browse files
shangwozbenh
authored andcommitted
powerpc/eeh: Fix fetching bus for single-dev-PE
While running Linux as guest on top of phyp, we possiblly have PE that includes single PCI device. However, we didn't return its PCI bus correctly and it leads to failure on recovery from EEH errors for single-dev-PE. The patch fixes the issue. Cc: <[email protected]> # v3.7+ Cc: Steve Best <[email protected]> Signed-off-by: Gavin Shan <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
1 parent 6c355be commit ea461ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/platforms/pseries/eeh_pe.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe)
639639

640640
if (pe->type & EEH_PE_PHB) {
641641
bus = pe->phb->bus;
642-
} else if (pe->type & EEH_PE_BUS) {
642+
} else if (pe->type & EEH_PE_BUS ||
643+
pe->type & EEH_PE_DEVICE) {
643644
edev = list_first_entry(&pe->edevs, struct eeh_dev, list);
644645
pdev = eeh_dev_to_pci_dev(edev);
645646
if (pdev)

0 commit comments

Comments
 (0)