Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp335058pxj; Tue, 18 May 2021 04:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTNt+iNwWoYy4/CrISRIgKrL92CZ0QsDGvz8GMMKVQb4BLWhjgKPHoqtbsNnsROu4ZXsug X-Received: by 2002:a05:6402:12cf:: with SMTP id k15mr5357283edx.332.1621337812168; Tue, 18 May 2021 04:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621337812; cv=none; d=google.com; s=arc-20160816; b=MDxpORjbmpYeHzjX6vbmtRv6jjt+8qFVb6exFTcjGelwORgxn6+Nsf72NrgKC/pWH4 mPda89o4A0O5pXstRKIN2QFVZNhNTJRnmLQqX5F04oneamXAExrG5O69FboLW67V6416 osxj8gUMFdGdU4eoJrlAw642X7z9p1o1zrdMY+O7ihK6akftoRTUhDPtRRa7qwbs4RIH 45oVlMGdOZPgOwyphfFXbLYGoBc1FD0faamRBbAPsbbZcfuni9WVHC8h1L0kY/In3Rdd C1swHPcPXyaD7wmlmFc6SqjPO976JL7d3NKo78OcUyK+ePM472ljyljeWgFGXqNFOoFs ECMQ== 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=7b7cfzP859Icl1OJnWBjSo93j4XGw15BgP43EXCzGWA=; b=GNNX+OTca4wuiDB39IC0nSHLMAxvD0mHfyIIRw4SmNcJhhB60uk8m2lEMPYf2I5ZDX Idnm0PTYG40cirPusTBglM5ylIwiWK6f8PbCHGN5n9WUFBtXEr5k1h1lt1kljBBwVbph 09jMx9PiIAX7sheXiMauFJefRLKB+wbuQ86HzMprvpk6nOOmsU0HHVBpIaghumFdk1/D dTCW8dvglhYDEAX2HREXtsTcw29xD+OlWeyNd9qc9Lp8GdypM3rOrK7NW+ijewBciyOB sundgSWM+V2MEkDT8jqiKC/B1Mjnn+JU3hbXWwmJzsNCGbul7FNmOB56iDjL9BIMvVYk YoTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Abk5tI4W; 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 p5si19061304edt.42.2021.05.18.04.36.29; Tue, 18 May 2021 04:36:52 -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=Abk5tI4W; 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 S244968AbhEQPWs (ORCPT + 99 others); Mon, 17 May 2021 11:22:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:35416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243375AbhEQPJx (ORCPT ); Mon, 17 May 2021 11:09:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5957161359; Mon, 17 May 2021 14:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261824; bh=9RnHg4hAxhCZQ4ROytOcGpMWjTxBkjW+LC0fYCtyNnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Abk5tI4WN7oYzXQwvcNGePmbwr9zQox1SNMc3Yyfbpg4dt+6RAuOu8idat9nOWzU8 S4SC0eCTIRJ2KjYwvEURczS85SXcrE3EUBYc4SCq54xHGwQoz9tetIkvBxWiS9c/oi ws89Giq8w/NPA7IuSSZHC5ZLsDfKdU7rIActpdaQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 072/289] powerpc/pseries: Stop calling printk in rtas_stop_self() Date: Mon, 17 May 2021 15:59:57 +0200 Message-Id: <20210517140307.620509401@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@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 12cbffd3c2e3..325f3b220f36 100644 --- a/arch/powerpc/platforms/pseries/hotplug-cpu.c +++ b/arch/powerpc/platforms/pseries/hotplug-cpu.c @@ -47,9 +47,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