Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp173063pxj; Tue, 18 May 2021 00:16:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMF/iX8KyIKTGDqoFVKT/BR6VUfGSFQq5H0uaVD/GVNrIFX1XQeUL4tEQT9Nb+urw4OkWq X-Received: by 2002:a92:b705:: with SMTP id k5mr3058712ili.140.1621322181437; Tue, 18 May 2021 00:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621322181; cv=none; d=google.com; s=arc-20160816; b=CT5nGu+RnA0S4bHAu25CBHSZoa2+bD8CXnr0KVrbNcMxyHtjxO9tV0dtdgP5Rrq3Sg wpNfa9z3iefSjvYR2IqhnJ0kPO006CnWrGrPrRTmkFP+SrmCfWO0Wya4DlepD6Dfw7IX OdZFnyGJ+g434JOant269eksGVnH7dcyGIQKE1Akv7peRYWuxlggzMq0OXHIz1rrvUrs B7Fja5LHwZuZYKmzpFVbw8nBtiIhUpb0ib5CSi951ToDGD+DDkFFJrexpayJ4sg4RInc ICdziDzkFXlJ8t8ZWWhsCgPrwQtyyVkIHHc+YXXebge/KjSZutxJCvO+K0UlyjQF+N7q Pvew== 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=Gnw/C3bFV3RuC390+jhOT3dL+HNFybZwBVnUB7FMxDSF39N56Fgw4uLSXNeQbAYPTU 5o015E9RP9RUGuLHrgLQ7oi5Obyi728GHzc4XEpTgsMZT49dmqIGYDFFbLmorJcllSNi 8/+rcHsntHoOqAcHsie6kKp51eEXLDpCxJ573kEVKvrWS504UOVaAcayFkFLstiqACBi cHmom6XFZsq7LpjxBzP6qJakyL0s22IpXKQ6lOPsV7y/jR6TCNNGSTZh4nJaEV2FuOZw kQhgH30Wcq03RRoHVp6MtcWXf5mxszuxzlKwDmolYAHQjlwSTFvQ26LmHKa9DM6F86b4 Z3aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sE5Yp+S3; 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 h10si21314335ioe.38.2021.05.18.00.16.07; Tue, 18 May 2021 00: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=sE5Yp+S3; 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 S241727AbhEQOxT (ORCPT + 99 others); Mon, 17 May 2021 10:53:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:54302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241526AbhEQOpJ (ORCPT ); Mon, 17 May 2021 10:45:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D84061960; Mon, 17 May 2021 14:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261256; bh=9RnHg4hAxhCZQ4ROytOcGpMWjTxBkjW+LC0fYCtyNnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sE5Yp+S3QleDdz0mExwDcp/p/0klhwmDx3mrw/GGSQQP9h8/dix+zEuEZpFLoT3z6 SA22lPCwsUQ0ae4ElzPNY36OIowDqSpuix0YNKi2mijQpK0bWJ33d4hzfM/Y5yLvfW 04JxWf4L4tsQ8nomC1/I8BMKsUxp9v1WER8y5QnM= 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.11 091/329] powerpc/pseries: Stop calling printk in rtas_stop_self() Date: Mon, 17 May 2021 16:00:02 +0200 Message-Id: <20210517140305.194723714@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.043055203@linuxfoundation.org> References: <20210517140302.043055203@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