From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com [35.83.148.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD02729B77C for ; Mon, 4 May 2026 16:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.83.148.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777911419; cv=none; b=P1Efq9QGzXuKCcmo24YWl1bwey0TTBL1yA3LqUP2p6AABb11sVz1tHiqeamDQyVkquZImqnPf7T2O2qSHDL5tKvs0xoRrbQULfCk1rrQ+586jQHfv9Qok8ciw8uNz0PkDy1uTUrT/9C1r9ek/C7ll0sxX3WY2CYOkkSAxrT1bnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777911419; c=relaxed/simple; bh=5Ala7PPLflkgjy/jT0OrQiG0Yq8vdKAJp9UdHdmvrEU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=OI28YwL+5HHzkwWn5EPqzqH7gPVQBqMQXHz6ZEtCpFZ36yETevxtQtZnP7lnkNM2a7r/7yfCm4DGCwQx1UuOSCOoFguY+VquurNnSmlZyTbTsFYezqfgCI0gZmzBtP5QDB8lUG4ZEz6rR1tT2WiwIn78SbPH08WXBhoRbzVAygY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.de; spf=pass smtp.mailfrom=amazon.de; dkim=pass (2048-bit key) header.d=amazon.de header.i=@amazon.de header.b=B7M+PJ0C; arc=none smtp.client-ip=35.83.148.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amazon.de header.i=@amazon.de header.b="B7M+PJ0C" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazoncorp2; t=1777911417; x=1809447417; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZZ4/9kNKpkmlVmmScHsZi9NrIWCOQuXO3OpnOALia6c=; b=B7M+PJ0COltuuyWheO5CHs9SLon8EL7QLy3MuVhc4HOM7S8opbZiKduv RECFXZEGtTMy5qWuVAUaiHuoIAm6TJRqPCLzZG4W2KaIOyUHu034A7M+P dgSn3gMJDLT3+2EcAQfcoRiWhVvGbm9wfMvs3wz50k6ZQQ8b0A84o1b4u /AFoHcaK7XM1vx2kfWTTC5xfxQtL2xkfxTtoB9pXZfFewtUQL/slKFW7V iH7gyghQmaTqACLTT125M2eHSaRfMj6QDm79ZUi3By4fmzrBUvN8WPtru ZKZbNxI9JAQwI/TwZeuO1u2i4QvoDUfG6keDglmKDuCWMgoMljJ+e8oSl Q==; X-CSE-ConnectionGUID: YJdlZNJQTwaDTkLk2dl81A== X-CSE-MsgGUID: Af3L/y0LRJ+akJywAU7zFA== X-IronPort-AV: E=Sophos;i="6.23,215,1770595200"; d="scan'208";a="18591470" Received: from ip-10-5-6-203.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.6.203]) by internal-pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2026 16:16:55 +0000 Received: from EX19MTAUWB002.ant.amazon.com [205.251.233.48:28521] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.20.153:2525] with esmtp (Farcaster) id df472752-b498-4979-aabc-7ba457e6bffa; Mon, 4 May 2026 16:16:54 +0000 (UTC) X-Farcaster-Flow-ID: df472752-b498-4979-aabc-7ba457e6bffa Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWB002.ant.amazon.com (10.250.64.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.37; Mon, 4 May 2026 16:16:53 +0000 Received: from dev-dsk-dssauerw-1b-2c5f429c.eu-west-1.amazon.com (10.13.238.31) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.37; Mon, 4 May 2026 16:16:52 +0000 From: David Sauerwein To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen CC: , , , David Sauerwein , "Paul Menzel" , John Ogness Subject: [PATCH] x86: smpboot: Always log CPU numbers at info level Date: Mon, 4 May 2026 16:16:39 +0000 Message-ID: <20260504161639.52475-1-dssauerw@amazon.de> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: EX19D041UWB002.ant.amazon.com (10.13.139.179) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit announce_cpu uses pr_cont to log CPU numbers of a NUMA node on the same log line across multiple calls of the function at info level. However, if any other message is printed in between these calls, pr_cont is unable to continue the previous message and logs a new line at KERN_DEFAULT level. On systems where MESSAGE_LOGLEVEL_DEFAULT is left at its default value, this causes these lines to show up at warn level. [INFO][ 0.051137] x86: Booting SMP configuration: [INFO][ 0.051139] .... node #0, CPUs: #1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19 #20 #21 #22 #23 [INFO][ 0.056620] .... node #1, CPUs: #24 [INFO][ 0.006767] smpboot: CPU 24 Converting physical 0 to logical die 1 [WARN][ 0.056761] #25 #26 #27 #28 #29 #30 #31 #32 #33 #34 #35 #36 #37 #38 #39 #40 #41 #42 #43 #44 #45 #46 #47 [INFO][ 0.060721] .... node #0, CPUs: #48 [WARN][ 0.060731] MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details. [WARN][ 0.060731] TAA CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/tsx_async_abort.html for more details. [WARN][ 0.060731] MMIO Stale Data CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/processor_mmio_stale_data.html for more details. [WARN][ 0.060731] #49 #50 #51 #52 #53 #54 #55 #56 #57 #58 #59 #60 #61 #62 #63 #64 #65 #66 #67 #68 #69 #70 #71 [INFO][ 0.068678] .... node #1, CPUs: #72 #73 #74 #75 #76 #77 #78 #79 #80 #81 #82 #83 #84 #85 #86 #87 #88 #89 #90 #91 #92 #93 #94 #95 (Example logs collected on a v5.10 based kernel) Fix this by explicitly setting the log level to KERN_INFO when calling pr_cont. Reported-by: Paul Menzel Closes: https://lore.kernel.org/all/e964b2ae-7a15-a510-e76a-56d704949d62@molgen.mpg.de/ Suggested-by: John Ogness Link: https://lore.kernel.org/all/871rdg8dyb.fsf@jogness.linutronix.de/ Signed-off-by: David Sauerwein --- arch/x86/kernel/smpboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 294a8ea602986..4a5e2c0d6286d 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -949,7 +949,7 @@ static void announce_cpu(int cpu, int apicid) if (node != current_node) { if (current_node > (-1)) - pr_cont("\n"); + pr_cont(KERN_INFO "\n"); current_node = node; printk(KERN_INFO ".... node %*s#%d, CPUs: ", @@ -958,10 +958,10 @@ static void announce_cpu(int cpu, int apicid) /* Add padding for the BSP */ if (first) - pr_cont("%*s", width + 1, " "); + pr_cont(KERN_INFO "%*s", width + 1, " "); first = 0; - pr_cont("%*s#%d", width - num_digits(cpu), " ", cpu); + pr_cont(KERN_INFO "%*s#%d", width - num_digits(cpu), " ", cpu); } else pr_info("Booting Node %d Processor %d APIC 0x%x\n", node, cpu, apicid); -- 2.47.3 Amazon Web Services Development Center Germany GmbH Tamara-Danz-Str. 13 10243 Berlin Geschaeftsfuehrung: Christof Hellmis, Andreas Stieger Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B Sitz: Berlin Ust-ID: DE 365 538 597