Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5977513yba; Wed, 1 May 2019 03:48:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzP37y1BBQ12Gr2xsEVGb/xnxKdKQvOxmHp+D/Xpc027ztn1E0pvzkH/kbr9DBTfyghPUTy X-Received: by 2002:a63:8b4b:: with SMTP id j72mr28206340pge.318.1556707726523; Wed, 01 May 2019 03:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556707726; cv=none; d=google.com; s=arc-20160816; b=QdQhgcbfolr6iBtVRwqOMyGDHyxhl7c5A9DNpizR5qMNBzWY+YzIi7OYzMo7CrsI36 ILF54xcy0TlSL0ENQfTrEKrhN3DWeps0PB+hy+ltdy0w1CLM9+S3fZU9IIFzbNobrUYO qnNpUuauBKrNTEuzXRziSO2T6Ltt34WNQuTH9T5SCOTEln4Z/ATqCJ4NGstjYy+EuP4b jTLCKPHQ5kUQF2yQaHj0ZYukgejKTrCLpRmTqfPmeRSADWOq3Q1SmZgRMqwmu4U32CA4 ca+BYY+e3rzfdztpCfkMOz67ed5UTMJw3tonHjJDesnHq7vI5L693C6J9oPuAcafvcYE LLfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=m2ZIG0wfks01FftWGkLMDEy/duiEqzDSpWHh+LCWJZc=; b=QUisXz2K5jXQ6tGFBeYgmOo/qXOs5M9TWDz5Q6oh6EBXlhLwWns/l425QwfUa9+l6V VcA2C9SajzQeF8mjR6+0ZpgTTBNjjtIIQV51mhBPw1Y6nUZ/CDJpnwKmDCeDdeLM+F+a xxpFK7xHhZoOIpJ+Y4D9Y9PDI2dBhpwHPvzkSi2A5Che1bNoMH2MgA/mzuWa5qpOnTzH lBPZbOs89RoeRPAPaLCumQnZeYwVgmIVhoI03GDAjzOlMYu8r19O9P5csQK1LkTGYylI xAGiEVtSmzHfeRgwQMN1QNCgKIuz3Jije4RIJmOo6I3BLLrbziiMfSMkXhIemmlXuSjp Rwlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si39410559pll.132.2019.05.01.03.48.30; Wed, 01 May 2019 03:48:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726133AbfEAKrk (ORCPT + 99 others); Wed, 1 May 2019 06:47:40 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57854 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbfEAKrj (ORCPT ); Wed, 1 May 2019 06:47:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1BBBA80D; Wed, 1 May 2019 03:47:39 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 769603F719; Wed, 1 May 2019 03:47:36 -0700 (PDT) Date: Wed, 1 May 2019 11:47:33 +0100 From: Mark Rutland To: Florian Fainelli Cc: linux-arm-kernel@lists.infradead.org, rmk+kernel@armlinux.org.uk, Catalin Marinas , Will Deacon , Ard Biesheuvel , Marc Zyngier , Julien Thierry , Suzuki K Poulose , Sudeep Holla , Rob Herring , Steve Capper , Lorenzo Pieralisi , Daniel Thompson , open list Subject: Re: [PATCH] arm64: Demote boot and shutdown messages to pr_debug Message-ID: <20190501104733.GB11740@lakrids.cambridge.arm.com> References: <20190430223835.23513-1-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190430223835.23513-1-f.fainelli@gmail.com> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 03:38:31PM -0700, Florian Fainelli wrote: > Similar to commits c68b0274fb3cf ("ARM: reduce "Booted secondary > processor" message to debug level") and 035e787543de7 ("ARM: 8644/1: Reduce "CPU: > shutdown" message to debug level"), demote the secondary_start_kernel() > and __cpu_die() messages from info, respectively notice to debug. While > we are at it, also do this for cpu_psci_cpu_kill() which is redundant > with __cpu_die(). > > This helps improve the amount of possible hotplug cycles by around +50% > on ARCH_BRCMSTB. Could you elaborate on why that matters? e.g. is this just for testing, or does this matter in some shutdown or hibernate scenario? > Signed-off-by: Florian Fainelli > --- > arch/arm64/kernel/psci.c | 2 +- > arch/arm64/kernel/smp.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c > index 8cdaf25e99cd..a78581046c80 100644 > --- a/arch/arm64/kernel/psci.c > +++ b/arch/arm64/kernel/psci.c > @@ -96,7 +96,7 @@ static int cpu_psci_cpu_kill(unsigned int cpu) > for (i = 0; i < 10; i++) { > err = psci_ops.affinity_info(cpu_logical_map(cpu), 0); > if (err == PSCI_0_2_AFFINITY_LEVEL_OFF) { > - pr_info("CPU%d killed.\n", cpu); > + pr_debug("CPU%d killed.\n", cpu); > return 0; > } > > diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c > index 824de7038967..71fd2b5a3f0e 100644 > --- a/arch/arm64/kernel/smp.c > +++ b/arch/arm64/kernel/smp.c > @@ -259,7 +259,7 @@ asmlinkage notrace void secondary_start_kernel(void) > * the CPU migration code to notice that the CPU is online > * before we continue. > */ > - pr_info("CPU%u: Booted secondary processor 0x%010lx [0x%08x]\n", > + pr_debug("CPU%u: Booted secondary processor 0x%010lx [0x%08x]\n", > cpu, (unsigned long)mpidr, > read_cpuid_id()); I generally agree that we don't need to be verbose, and demoting these to debug is fine, but it's a shame that these won't be accessible in defconfig. I wonder if we should enable DYNAMIC_DEBUG so that we can turn these on from the kernel command line, or if we should have something like a verbose_hotplug option specifically for these messages. Thanks, Mark. > update_cpu_boot_status(CPU_BOOT_SUCCESS); > @@ -348,7 +348,7 @@ void __cpu_die(unsigned int cpu) > pr_crit("CPU%u: cpu didn't die\n", cpu); > return; > } > - pr_notice("CPU%u: shutdown\n", cpu); > + pr_debug("CPU%u: shutdown\n", cpu); > > /* > * Now that the dying CPU is beyond the point of no return w.r.t. > -- > 2.17.1 >