[linuxppc-dev][PATCH] powerpc: mm: numa: Suppress "VPHN is not supported. Disabling polling" prints

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

2 messages, 2 authors, 2018-11-15 · open the first message on its own page

[linuxppc-dev][PATCH] powerpc: mm: numa: Suppress "VPHN is not supported. Disabling polling" prints

From: <hidden>
Date: 2018-11-08 05:19:54

From: Satheesh Rajendran <redacted>

When VPHN function is not supported and during cpu hotplug event, kernel
prints message 'VPHN function not supported. Disabling polling...'.
Currently it prints on every hotplug event, it floods dmesg
when a KVM guest tries to hotplug huge number of vcpus,
let's just print once and suppress further kernel prints.

Signed-off-by: Satheesh Rajendran <redacted>
---
 arch/powerpc/mm/numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 0c7e05d89244..844cc7347ebd 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -1180,7 +1180,7 @@ static long vphn_get_associativity(unsigned long cpu,
 
 	switch (rc) {
 	case H_FUNCTION:
-		printk(KERN_INFO
+		printk_once(KERN_INFO
 			"VPHN is not supported. Disabling polling...\n");
 		stop_topology_update();
 		break;
-- 
2.17.0

Re: powerpc: mm: numa: Suppress "VPHN is not supported. Disabling polling" prints

From: Michael Ellerman <hidden>
Date: 2018-11-15 13:27:13

On Thu, 2018-11-08 at 05:17:56 UTC, sathnaga@linux.vnet.ibm.com wrote:
From: Satheesh Rajendran <redacted>

When VPHN function is not supported and during cpu hotplug event, kernel
prints message 'VPHN function not supported. Disabling polling...'.
Currently it prints on every hotplug event, it floods dmesg
when a KVM guest tries to hotplug huge number of vcpus,
let's just print once and suppress further kernel prints.

Signed-off-by: Satheesh Rajendran <redacted>
Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/437ccdc8ce629470babdda1a7086e2

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