Skip to contentSkip to conversation

PCI: i386 mmconfig: don't forget bus number when setting fallback_slots bits

PATCH New Daniel Ritz 1 participant 1 message Aug 17, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: i386 mmconfig: don't forget bus number when setting fallback_slots bits

[PATCH] PCI: i386 mmconfig: don't forget bus number when setting fallback_slots bits

on i386 PCI mmconfig forgets the bus number when setting the fallback_slots bits which means fallback to conf1 only works for bus 0.

arch/i386/pci/mmconfig.c +1 -1
index e545b09..972180f 100644
@@ -178,7 +178,7 @@ static __init void unreachable_devices(v
 				pci_exp_set_dev_base(addr, k, PCI_DEVFN(i, 0));
 			if (addr == 0 ||
 			    readl((u32 __iomem *)mmcfg_virt_addr) != val1) {
-				set_bit(i, fallback_slots);
+				set_bit(i + 32*k, fallback_slots);
 				printk(KERN_NOTICE
 			"PCI: No mmconfig possible on %x:%x\n", k, i);
 			}