RE: [PATCH] EDAC/{i10nm,skx,skx_common}: Support multiple clumps

From: Luck, Tony
Date: Tue Dec 10 2024 - 12:51:16 EST


> > What we need here is a function that maps from a PCIe device to a CPU socket.
> >
> > Has this problem been encountered before? Is there an existing solution?
>
> There's nothing in PCI itself that connects a device to a CPU. It
> sounds like something that might fit with an ACPI NUMA description,
> e.g., if a CPU and a PCI host bridge had the same ACPI _PXM value, you
> could conclude that the devices below the host bridge are close to the
> CPU.

Bjorn,

Thanks for looking. Kyle already has code that does an ACPI NUMA lookup.

But that doesn't work on system where Linux is compiled with CONFIG_NUMA=n,
booted with numa=off, or on a system where BIOS option for "Unified memory mode"
has been selected.

-Tony