diff mbox series

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

Message ID 20181108051756.19309-1-sathnaga@linux.vnet.ibm.com (mailing list archive)
State Accepted
Commit 437ccdc8ce629470babdda1a7086e2f477048cbd
Headers show
Series powerpc: mm: numa: Suppress "VPHN is not supported. Disabling polling" prints | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success next/apply_patch Successfully applied
snowpatch_ozlabs/checkpatch success Test checkpatch on branch next
snowpatch_ozlabs/build-ppc64le success Test build-ppc64le on branch next
snowpatch_ozlabs/build-ppc64be success Test build-ppc64be on branch next
snowpatch_ozlabs/build-ppc64e success Test build-ppc64e on branch next
snowpatch_ozlabs/build-ppc32 success Test build-ppc32 on branch next

Commit Message

Satheesh Rajendran Nov. 8, 2018, 5:17 a.m. UTC
From: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>

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 <sathnaga@linux.vnet.ibm.com>
---
 arch/powerpc/mm/numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Ellerman Nov. 15, 2018, 1:25 p.m. UTC | #1
On Thu, 2018-11-08 at 05:17:56 UTC, sathnaga@linux.vnet.ibm.com wrote:
> From: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
> 
> 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 <sathnaga@linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

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

cheers
diff mbox series

Patch

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;