Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2119989lkv; Thu, 20 May 2021 03:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/Ml1B0eBZYqricqgVTkN+RUzD0AY1UjkVQCg6YmZD5x2cYMGw13pON+MaWMlymAAKF+5U X-Received: by 2002:a50:cc0c:: with SMTP id m12mr4249740edi.141.1621508009901; Thu, 20 May 2021 03:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621508009; cv=none; d=google.com; s=arc-20160816; b=eZjk13IqLrQayJ7KS5tMcNQtbvqme9AYhX7raJqLueWuSegIYWIbvbssxDcHbTx0Tz T/7C/mBPgkI/wR0HbuTFtZ8frw5RdulUL2+n6xFiUv5cmwte2lfzOMnaAg+HxqaFQOWN qM/dqIs/mjXZByScG7lBff9O7iVJUOpEwLOFVqSK1UHeWUMD3gLdYAvoa9wqCLR2IofX uS2kwSRIx8hSES1xX3tyDBXU2YXAGLAXA3F1hbEwQu/t1CKKLJ5d0JWbSS7Ia+0bT0oC E44Wy/D1ztCCIhGAQnxEpMdUoZHEmrVXv1SILtlqAQBeC3Qp+gEf+S3C+hEj0OvVrPys phZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ysAjEU1kxFBBEFo8hE2jaQKlxw3E9D50LpxgG2Tbqfs=; b=0yVJka0jemJhL2Aoj/pOzOFIEh8YUmvvm+Pa4YeJd6IadKclXX1BfK3c5RP/46phN7 +O12zV7E9Yk3X5RPSmIsYZc/eK3UeiCoZQdzH7a2Ywbj+MpG0tJuiJEfyaREKKiGtrPM DvmcopTyEmcVjaK+OEwf85RO8I0zd+PzaILEpYaJIHmGALWj3HYBb1/HSbbT3dQI9jYb vhD/G3gE7I1vqTrdTgOWRLe/SwUPlG3+fWcwlPhuCwCnBbxvpKi4aFcPxzH1qzfn0lFX RooEcHzjrW/MRhZ2y2ZTZrbU51FQSOqk6hhk0STFZwM2PvaZNwTkhS40LFxQB44GyYjo Nchw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z5vUdChP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si2014872edp.58.2021.05.20.03.53.06; Thu, 20 May 2021 03:53:29 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z5vUdChP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236210AbhETKw3 (ORCPT + 99 others); Thu, 20 May 2021 06:52:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:39654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236464AbhETKgb (ORCPT ); Thu, 20 May 2021 06:36:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DC99B60241; Thu, 20 May 2021 09:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504453; bh=QRjsWFr95pZ/Dn6GZ4PD62pPBDVKFseo49Jn6YL5rk0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z5vUdChPN1xfIh+N+LVU0Ccx6Tc7DNZcQpG9b/oRJet5YZFilPe+HOBA/dsAVPzTZ y0q0aFZvc64jzLveXjmzV706Xn5W/6WDI3tbmPTND/R41Iat4oxB19lnWxDMkgf2R8 d2thsBgwHGT7YkWGvK244zGBw5gB7yM8lpgQoHIQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Sasha Levin Subject: [PATCH 4.14 253/323] powerpc/pseries: Stop calling printk in rtas_stop_self() Date: Thu, 20 May 2021 11:22:25 +0200 Message-Id: <20210520092128.874581515@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Ellerman [ Upstream commit ed8029d7b472369a010a1901358567ca3b6dbb0d ] RCU complains about us calling printk() from an offline CPU: ============================= WARNING: suspicious RCU usage 5.12.0-rc7-02874-g7cf90e481cb8 #1 Not tainted ----------------------------- kernel/locking/lockdep.c:3568 RCU-list traversed in non-reader section!! other info that might help us debug this: RCU used illegally from offline CPU! rcu_scheduler_active = 2, debug_locks = 1 no locks held by swapper/0/0. stack backtrace: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.12.0-rc7-02874-g7cf90e481cb8 #1 Call Trace: dump_stack+0xec/0x144 (unreliable) lockdep_rcu_suspicious+0x124/0x144 __lock_acquire+0x1098/0x28b0 lock_acquire+0x128/0x600 _raw_spin_lock_irqsave+0x6c/0xc0 down_trylock+0x2c/0x70 __down_trylock_console_sem+0x60/0x140 vprintk_emit+0x1a8/0x4b0 vprintk_func+0xcc/0x200 printk+0x40/0x54 pseries_cpu_offline_self+0xc0/0x120 arch_cpu_idle_dead+0x54/0x70 do_idle+0x174/0x4a0 cpu_startup_entry+0x38/0x40 rest_init+0x268/0x388 start_kernel+0x748/0x790 start_here_common+0x1c/0x614 Which happens because by the time we get to rtas_stop_self() we are already offline. In addition the message can be spammy, and is not that helpful for users, so remove it. Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210418135413.1204031-1-mpe@ellerman.id.au Signed-off-by: Sasha Levin --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pseries/hotplug-cpu.c index 0baaaa6b0929..73071c4339c5 100644 --- a/arch/powerpc/platforms/pseries/hotplug-cpu.c +++ b/arch/powerpc/platforms/pseries/hotplug-cpu.c @@ -95,9 +95,6 @@ static void rtas_stop_self(void) BUG_ON(rtas_stop_self_token == RTAS_UNKNOWN_SERVICE); - printk("cpu %u (hwid %u) Ready to die...\n", - smp_processor_id(), hard_smp_processor_id()); - rtas_call_unlocked(&args, rtas_stop_self_token, 0, 1, NULL); panic("Alas, I survived.\n"); -- 2.30.2