On 2019/3/15 10:19, Kefeng Wang wrote: > It maybe trigger some issue when the acpi device driver allocs memory > from an offline node, so use alternative acpi_map_pxm_to_online_node() > to find an online node, let's show infomation about proximity ID, mapped > offline node and the nearest online node returned. > > Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> > --- > drivers/acpi/numa.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c > index 7bbbf8256a41..064c771a7338 100644 > --- a/drivers/acpi/numa.c > +++ b/drivers/acpi/numa.c > @@ -121,6 +121,9 @@ int acpi_map_pxm_to_online_node(int pxm) > } > } > } > + if (min_node != node) > + pr_warn("IORT: PXM %d Mapped to offline node %d, choose nearest online node %d", > + pxm, node, min_node); Should remove IORT prefix, some other table like NFIT, DMAR have PXM filed, waiting for review. > > return min_node; > }