[PATCH 2/2] ACPI: NUMA: show match info about PXM ID and offline/online node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);
 
 	return min_node;
 }
-- 
2.20.1




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux