Re: [PATCH 2/2][RESEND] x86/pci/amd: Enableearly_fill_mp_bus_to_node on AMD family 15h models 0-0xf

From: Andreas Herrmann
Date: Fri May 04 2012 - 09:25:57 EST


On Wed, May 02, 2012 at 11:34:15AM -0600, Bjorn Helgaas wrote:
> On Fri, Apr 27, 2012 at 8:37 AM, Andreas Herrmann
> <andreas.herrmann3@xxxxxxx> wrote:
> >
> > While at it avoid calling this function on family 11h (aka Griffin)
> > which was a mobile part and doesn't support NUMA.
>
> This changelog doesn't seem like it goes with this patch. It looks
> more related to the first patch (though that affects family 11h and
> greater, not just family 11h).

So maybe I should repeat the contents of the subject line in the
changelog.

The first patch restores the function to set the NUMA node info for
busses. Linux behaviour shouldn't change after the first patch at all.

This (the second) patch will enable node detection for AMD CPU family
15h model 00-0fh (with 0x1600 as device id for NB function 0). (see
subject line) In addition it removes the NB id for CPU family 11h from
this code. That CPU was used only in Laptops (single socket). A
mapping of bus to node is not required there. And also figuring out
MMIO and I/O port apertures while ignoring _CRS shouldn't be a use
case for such systems.

I think Device ID 0x1300 was added with commit
35ddd068fb94b187e94a3fc497ccecf27bdda9ae (x86: use bus conf in NB conf
fun1 to get bus range on, on 64-bit)

But unfortunately the changelog of this patch doesn't mention why this
is strictly req'd.


HTH,

Andreas

> > Âarch/x86/pci/amd_bus.c | Â Â2 +-
> > Â1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/arch/x86/pci/amd_bus.c b/arch/x86/pci/amd_bus.c
> > index 0384e69..d552b29 100644
> > --- a/arch/x86/pci/amd_bus.c
> > +++ b/arch/x86/pci/amd_bus.c
> > @@ -27,7 +27,7 @@ static struct pci_hostbridge_probe pci_probes[] __initdata = {
> > Â Â Â Â{ 0, 0x18, PCI_VENDOR_ID_AMD, 0x1100 },
> > Â Â Â Â{ 0, 0x18, PCI_VENDOR_ID_AMD, 0x1200 },
> > Â Â Â Â{ 0xff, 0, PCI_VENDOR_ID_AMD, 0x1200 },
> > - Â Â Â { 0, 0x18, PCI_VENDOR_ID_AMD, 0x1300 },
> > + Â Â Â { 0, 0x18, PCI_VENDOR_ID_AMD, 0x1600 },
> > Â};
> >
> > Â/**
> > --
> > 1.7.8.5
> >
> >
> >
>


--
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/