On Tue, Oct 26, 2021 at 3:09 AM Dan Williams <dan.j.williams@xxxxxxxxx> wrote: > > On Wed, Oct 20, 2021 at 8:27 AM Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote: > > > > On Tue, Oct 19, 2021 at 7:01 AM <alison.schofield@xxxxxxxxx> wrote: > > > > > > From: Alison Schofield <alison.schofield@xxxxxxxxx> > > > > > > During NUMA init, CXL memory defined in the SRAT Memory Affinity > > > subtable may be assigned to a NUMA node. Since there is no > > > requirement that the SRAT be comprehensive for CXL memory another > > > mechanism is needed to assign NUMA nodes to CXL memory not identified > > > in the SRAT. > > > > > > Use the CXL Fixed Memory Window Structure (CFMWS) of the ACPI CXL > > > Early Discovery Table (CEDT) to find all CXL memory ranges. > > > Create a NUMA node for each CFMWS that is not already assigned to > > > a NUMA node. Add a memblk attaching its host physical address > > > range to the node. > > > > > > Note that these ranges may not actually map any memory at boot time. > > > They may describe persistent capacity or may be present to enable > > > hot-plug. > > > > > > Consumers can use phys_to_target_node() to discover the NUMA node. > > > > > > Signed-off-by: Alison Schofield <alison.schofield@xxxxxxxxx> > > > > Dan, this seems to fall into your territory. > > Rafael, > > Sure, I'm happy to take this through the CXL tree with your ack. So please feel free to add my ACK to this patch, thanks!