Thread (13 messages) flat view 13 messages, 3 authors, 2017-11-27

Re: [PATCH V7 1/3] powerpc/nodes: Ensure enough nodes avail for operations

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-11-22 11:17:08

Nathan Fontenot [off-list ref] writes:
On 11/16/2017 11:24 AM, Michael Bringmann wrote:
...
quoted
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index eb604b3..334a1ff 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -892,6 +892,37 @@ static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn)
 	NODE_DATA(nid)->node_spanned_pages = spanned_pages;
 }

+static void __init find_possible_nodes(void)
+{
+	struct device_node *rtas;
+	u32 numnodes, i;
+
+	if (min_common_depth <= 0)
+		return;
+
+	rtas = of_find_node_by_path("/rtas");
+	if (!rtas)
+		return;
+
+	if (of_property_read_u32_index(rtas,
+				"ibm,max-associativity-domains",
+				min_common_depth, &numnodes))
+		goto out;
+
+	pr_info("numa: Nodes = %d (mcd = %d)\n", numnodes,
+		min_common_depth);
numa.c already has a pr_fmt define, no need to pre-pend "numa:" to the
information message.
And in fact no need to print that out here at all, it's covered
elsewhere. So just drop that pr_info() entirely.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help