Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5169735pxb; Mon, 15 Feb 2021 11:24:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0v1vle5LHqBS5n1XrxujLHXaRtEWntWTCreTebU6U5xhiYmWdrAZ77phpaF+SmBkGqFFq X-Received: by 2002:a50:e183:: with SMTP id k3mr7434319edl.45.1613417057088; Mon, 15 Feb 2021 11:24:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613417057; cv=none; d=google.com; s=arc-20160816; b=tlyX7gZqI+11lpKEsMN5UpG62LzSCZBEnc1WnERW1uKvGUwblRYj3eHpRpmuufsflk tIlc6IbbcdOAwLJE31IzRlBI5OrNYbmIADvot4TwEgq61/J5zTE2M00CRe38MBMfp0+l 5QjJAboTzsaEoiijdd5CDhkp7otpXmqeHXuKXLJ36MmIv4w0pXz8b22fsdNv/3AaL/Hw NTIgz4Hn5XjTdjtGnJhjz0FjoYcxq73EfUtK181ACguZjM87iGIapSdIniJcujVPdB0W uHPmOB0T6J6EK/pLmtPyilK+IbrjoZzXCe/RybRvgqp4WDIZw5YJIHskrJ0Q49v/Zuyn Nxxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:cc:to:subject:from; bh=kaSLNHe8kVSN+FrIdDUU36u/0M3udjUCAFc0oSkNO/M=; b=jA/fT+Xu0XtAUYSs+LLU+qOLTrGA536vxg83tEmBOT3jMCXlNPE/P01w6K9mIRynZ8 mO+f9kjWsV5TNTzb9WV/ouPRjfaThCuGtX3gxKIkZyb23mVClv9hvQA/k6BlH9uVpvMG MPk8woE63pvG7mbXpfBt1aew5iCXYHYSa/aLOMeZHLxBJcNixL/xzgWrAw3U/CXEJNE3 jVukVMIpH5G40qVf8KMQAJ/6OQn88R76zXYbA/QiJ/26Y40oow/XdwtH1n3meWyNzDbP pEldbePAzKUH+VDKrdykDyUgsSrOgPCaTlYiwfPdGEb3FcTsUNzgwbCzmosY/pM9DcLR a09g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x64si2422923edc.588.2021.02.15.11.23.52; Mon, 15 Feb 2021 11:24:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230243AbhBOTXU (ORCPT + 99 others); Mon, 15 Feb 2021 14:23:20 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:58475 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230163AbhBOTXU (ORCPT ); Mon, 15 Feb 2021 14:23:20 -0500 Received: from [192.168.0.6] (ip5f5aea9d.dynamic.kabel-deutschland.de [95.90.234.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 569EB20647913; Mon, 15 Feb 2021 20:22:35 +0100 (CET) From: Paul Menzel Subject: smpboot: CPU numbers printed as warning To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org Cc: LKML , it+linux-x86@molgen.mpg.de, Petr Mladek , Sergey Senozhatsky Message-ID: Date: Mon, 15 Feb 2021 20:22:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Linux folks, Using Linux 5.10.13 (and before), looking at the Linux kernel warnings, the CPU numbers show up. For example with 12 cpus/threads: ``` $ sudo dmesg --level=warn [ 0.216103] #2 [ 0.220105] #3 [ 0.224103] #4 [ 0.228104] #5 [ 0.232110] #6 [ 0.236101] #7 [ 0.240102] #8 [ 0.244102] #9 [ 0.248100] #10 [ 0.252098] #11 ``` If I am not mistaken, this is from `announce_cpu()` in `arch/x86/kernel/smpboot.c`, and the `pr_cont()` in their “forgets” the log level it belongs to, maybe because of SMP and other messages are printed in between. ``` if (system_state < SYSTEM_RUNNING) { if (node != current_node) { if (current_node > (-1)) pr_cont("\n"); current_node = node; printk(KERN_INFO ".... node %*s#%d, CPUs: ", node_width - num_digits(node), " ", node); } /* Add padding for the BSP */ if (cpu == 1) pr_cont("%*s", width + 1, " "); pr_cont("%*s#%d", width - num_digits(cpu), " ", cpu); } else pr_info("Booting Node %d Processor %d APIC 0x%x\n", node, cpu, apicid); ``` Would using `pr_info()` instead be an acceptable fix? Kind regards, Paul