Re: SNB PCI root information

From: Ulrich Drepper
Date: Wed Jun 20 2012 - 13:11:43 EST


On Tue, Jun 19, 2012 at 2:20 PM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
> If the BIOS provide wrong _PXM, that BIOS really should be fixed at first.

Let's go there when we see BIOSes with the information...

In the meantime I tested the patch. It needs the small modification
below (iinterdiff-generated). The problem is the pci= parameter
handling uses ',' to separate parameters and therefore the second PCI
root information, separated by a comma, is interpreted as a new pci=
parameter. The patch below changes the separator to ';'. With that I
get the correct information after boot up.


Signed-off-by: Ulrich Drepper <drepper@xxxxxxxxx>

diff -u b/Documentation/kernel-parameters.txt
b/Documentation/kernel-parameters.txt
--- b/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -2192,7 +2192,7 @@
realloc same as realloc=on
busnum_node=
Format:
- <bus>:<node>[, ...]
+ <bus>:<node>[;...]
Specifies node for bus
noari do not use PCIe ARI.
pcie_scan_all Scan all possible PCIe devices. Otherwise we
diff -u b/arch/x86/pci/common.c b/arch/x86/pci/common.c
--- b/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -509,7 +509,7 @@
}
set_mp_bus_to_node(bus, node);
p += count;
- if (*p != ',')
+ if (*p != ';')
break;
p++;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/