aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/pci/mmconfig-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/pci/mmconfig-shared.c')
-rw-r--r--arch/i386/pci/mmconfig-shared.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/i386/pci/mmconfig-shared.c b/arch/i386/pci/mmconfig-shared.c
index 4ea0852487a4..473db6257013 100644
--- a/arch/i386/pci/mmconfig-shared.c
+++ b/arch/i386/pci/mmconfig-shared.c
@@ -43,12 +43,14 @@ static void __init unreachable_devices(void)
43 if (val1 == 0xffffffff) 43 if (val1 == 0xffffffff)
44 continue; 44 continue;
45 45
46 raw_pci_ops->read(0, bus, devfn, 0, 4, &val2); 46 if (pci_mmcfg_arch_reachable(0, bus, devfn)) {
47 if (val1 != val2) { 47 raw_pci_ops->read(0, bus, devfn, 0, 4, &val2);
48 set_bit(i + 32 * bus, pci_mmcfg_fallback_slots); 48 if (val1 == val2)
49 printk(KERN_NOTICE "PCI: No mmconfig possible" 49 continue;
50 " on device %02x:%02x\n", bus, i);
51 } 50 }
51 set_bit(i + 32 * bus, pci_mmcfg_fallback_slots);
52 printk(KERN_NOTICE "PCI: No mmconfig possible on device"
53 " %02x:%02x\n", bus, i);
52 } 54 }
53 } 55 }
54} 56}