Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2018 01:53:21 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340147 - head/sys/powerpc/powerpc
Message-ID:  <201811050153.wA51rLaV016230@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Mon Nov  5 01:53:20 2018
New Revision: 340147
URL: https://svnweb.freebsd.org/changeset/base/340147

Log:
  powerpc/SMP: Don't spam the console with AP bringup messages
  
  Especially on new POWER9 systems, the console can be filled with
  
    SMP: AP CPU #XX launched
  
  messages.  This can also slow down the console printing.  Instead, do what
  x86 now does, as of r333335, and print it all on one line, unless
  bootverbose is set.

Modified:
  head/sys/powerpc/powerpc/mp_machdep.c

Modified: head/sys/powerpc/powerpc/mp_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/mp_machdep.c	Mon Nov  5 00:20:58 2018	(r340146)
+++ head/sys/powerpc/powerpc/mp_machdep.c	Mon Nov  5 01:53:20 2018	(r340147)
@@ -100,7 +100,11 @@ machdep_ap_bootstrap(void)
 	/* Serialize console output and AP count increment */
 	mtx_lock_spin(&ap_boot_mtx);
 	ap_awake++;
-	printf("SMP: AP CPU #%d launched\n", PCPU_GET(cpuid));
+	if (bootverbose)
+		printf("SMP: AP CPU #%d launched\n", PCPU_GET(cpuid));
+	else
+		printf("%s%d%s", ap_awake == 2 ? "Launching APs: " : "",
+		    PCPU_GET(cpuid), ap_awake == mp_ncpus ? "\n" : " ");
 	mtx_unlock_spin(&ap_boot_mtx);
 
 	while(smp_started == 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811050153.wA51rLaV016230>