Skip to content

Commit 88b6d14

Browse files
shangwozbenh
authored andcommitted
powerpc/eeh: Fix address catch for PowerNV
On the PowerNV platform, the EEH address cache isn't built correctly because we skipped the EEH devices without binding PE. The patch fixes that. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 0b9e267 commit 88b6d14

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/powerpc/kernel/eeh_cache.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static void __eeh_addr_cache_insert_dev(struct pci_dev *dev)
194194
}
195195

196196
/* Skip any devices for which EEH is not enabled. */
197-
if (!edev->pe) {
197+
if (!eeh_probe_mode_dev() && !edev->pe) {
198198
#ifdef DEBUG
199199
pr_info("PCI: skip building address cache for=%s - %s\n",
200200
pci_name(dev), dn->full_name);

‎arch/powerpc/platforms/powernv/pci-ioda.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ static void pnv_pci_ioda_fixup(void)
999999
pnv_pci_ioda_create_dbgfs();
10001000

10011001
#ifdef CONFIG_EEH
1002+
eeh_probe_mode_set(EEH_PROBE_MODE_DEV);
10021003
eeh_addr_cache_build();
10031004
eeh_init();
10041005
#endif

0 commit comments

Comments
 (0)