Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp372863pxj; Thu, 20 May 2021 11:16:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv88NxtTTjD+1MmCHfVzfGS9tn5ypMffxJpPXkEnjGTi6fnhu3Y2l51i3eZ0KzPq+X6EJL X-Received: by 2002:a92:d90c:: with SMTP id s12mr6131264iln.96.1621534581824; Thu, 20 May 2021 11:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621534581; cv=none; d=google.com; s=arc-20160816; b=f3nWYSQk2R0t2Ny0hAGUSnSTBGmivPU3htuaUU8gAmabo5qKY+yjrbP3PAUTsyH6ct zvz1KufxFIWBH3AU6ruUmC356eZFrkqy9sM8ky9IlULFNxxeH6m9cxKwDEti+zkBSo/N H1BrNMHmJ3WCUVySdM5UhDQnppWKFWCr9nORiQFcNQkP8k6sRZ/csw9w5QBC/QvbmnN7 7BuYRwOlgA4JlqfIdnySL/CpNxQRoBk3skNayPUJigoe6VczBpvF2TW3WwbVXcQGykQL 95Ynff958ieEV8u1O1CrTV3nOZT464YjATVd9bx7cWFLBIOoLXLyblt4MxjKBFU6rrlr me0Q== 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=51grSIEhioxttN43Haz9jTejXvd7SQsHXYo5JvQwSVk=; b=nU0Rv1EHJ5xD/M/2NZV2IwrG3sYo5w3mk7qrTJjw9tca96LU48TSdV6Ho+4C2cqye9 AJuVYqU+wrN0X+Uso7ANn37fbrvpTlGKrINTASShyX/uf9JBLiLkU0hv67Nh3ufHAS8M zn/zFipmArm0BMzbEVZ8ZHd4eni54y6SvECCzSIEDQ+6IlwO2be9F33ZUNA7pOF3ulUy 2es+GnaT8ZryhCTGhVMymxRscAuVBPMtcE3iMOlt6hBpoLjSjYIdbQuhRJO7bya0jXHZ YQzTb2Bjd/3rEF8f4pM7u1L4PFYDppS0cnP/U8Ro5UjM/jL4Jm5PN0aDVrmfHkfXlveC XbMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="nboS+/6U"; 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 a16si2963842ilr.160.2021.05.20.11.16.02; Thu, 20 May 2021 11:16:21 -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="nboS+/6U"; 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 S236207AbhETKOl (ORCPT + 99 others); Thu, 20 May 2021 06:14:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:41672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235432AbhETKGs (ORCPT ); Thu, 20 May 2021 06:06:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6C78D61941; Thu, 20 May 2021 09:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503687; bh=tOg4UwP3IbvH5btRT0Que4/jAqKLu2k4HFUshhu5+aI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nboS+/6UJ/DAgbzWYMM2VjqGvTpuMV/Epw+oMwFr97lMj1Dan0GhrD8lDHEaEavax DpvLiJhFp/3OIT97vg6WNhXMd4HyWabJbcHjn12LL/roFE/29Q5ebR5MjU0eXtRawh i48PiMFyMzDt8eDHFPC3eZxOy0XvFxQ4/LT5tC90= 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.19 327/425] powerpc/pseries: Stop calling printk in rtas_stop_self() Date: Thu, 20 May 2021 11:21:36 +0200 Message-Id: <20210520092142.165240128@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 1d3f9313c02f..8bfb97d07d10 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