From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DCDCC388F7 for ; Thu, 5 Nov 2020 23:30:00 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CFB8720719 for ; Thu, 5 Nov 2020 23:29:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hLD55joY"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="rA6UeTi7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CFB8720719 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:Reply-To:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7LIUHAIij1zyUuP/i3Rq3D90MGhvrvOVbhrnvMyhgR0=; b=hLD55joYozYAVLDCxIqcYJMijb TwL8x/vMhMb/OaV7afU4P603DSoZuO+FEesZ+N8IcdcdtIVcA4VQeaJG5WwF/PKJn+M6DyiACvqFH wU3viW+YlTvLkTkRqJmbaZxZu2gVpdFKB2yr+tHAd9nh7Yql0J9E5eabtp2p4aoKBoGWMKOllgef6 1sDGCnOeoWjn270Qzfql6UXk2O68wNxHo83hpyVgV0wUco+lsNJUHqcFwNXpYW3QFQugRtiUQSECN kM1FKNArnuGpXm8MroZH8IcGHQ2W/BPYEjEkWuHK8wy6C4RXqQXcpuLu8kcyxK6X6aipzx3CT/kRm R6Q7u+Rw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaog0-0008Th-A3; Thu, 05 Nov 2020 23:28:20 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaofw-0008So-LB for linux-arm-kernel@lists.infradead.org; Thu, 05 Nov 2020 23:28:17 +0000 Received: from paulmck-ThinkPad-P72.home (50-39-104-11.bvtn.or.frontiernet.net [50.39.104.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B2FD20704; Thu, 5 Nov 2020 23:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604618893; bh=uW+s9tk8sFCHpIi1ccM7lmNw5WWhWb4a2EYXNp87zEM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=rA6UeTi7wirfhxjAkj1CmQNLIOBtEWWKe2kidYVtIWNkUdVfmQzDMsM14sljW8/cz JvyABj0PmLNKek5rqbJRUUuIrSOFFxzYlvyn+4fb1fDLGsJJxHx5I1SqOzz7v5Bn4g m6RLj6ykMVGcvKrtmWUMbK0nHRZRmnInrGHF7hoY= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 4D0AD3522A76; Thu, 5 Nov 2020 15:28:13 -0800 (PST) Date: Thu, 5 Nov 2020 15:28:13 -0800 From: "Paul E. McKenney" To: Qian Cai Subject: Re: [PATCH] arm64/smp: Move rcu_cpu_starting() earlier Message-ID: <20201105232813.GR3249@paulmck-ThinkPad-P72> References: <20201028182614.13655-1-cai@redhat.com> <160404559895.1777248.8248643695413627642.b4-ty@kernel.org> <20201105222242.GA8842@willie-the-truck> <3b4c324abdabd12d7bd5346c18411e667afe6a55.camel@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3b4c324abdabd12d7bd5346c18411e667afe6a55.camel@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201105_182816_821085_71E8E5CE X-CRM114-Status: GOOD ( 25.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: paulmck@kernel.org Cc: Will Deacon , Peter Zijlstra , catalin.marinas@arm.com, linux-kernel@vger.kernel.org, kernel-team@android.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Nov 05, 2020 at 06:02:49PM -0500, Qian Cai wrote: > On Thu, 2020-11-05 at 22:22 +0000, Will Deacon wrote: > > On Fri, Oct 30, 2020 at 04:33:25PM +0000, Will Deacon wrote: > > > On Wed, 28 Oct 2020 14:26:14 -0400, Qian Cai wrote: > > > > The call to rcu_cpu_starting() in secondary_start_kernel() is not early > > > > enough in the CPU-hotplug onlining process, which results in lockdep > > > > splats as follows: > > > > > > > > WARNING: suspicious RCU usage > > > > ----------------------------- > > > > kernel/locking/lockdep.c:3497 RCU-list traversed in non-reader section!! > > > > > > > > [...] > > > > > > Applied to arm64 (for-next/fixes), thanks! > > > > > > [1/1] arm64/smp: Move rcu_cpu_starting() earlier > > > https://git.kernel.org/arm64/c/ce3d31ad3cac > > > > Hmm, this patch has caused a regression in the case that we fail to > > online a CPU because it has incompatible CPU features and so we park it > > in cpu_die_early(). We now get an endless spew of RCU stalls because the > > core will never come online, but is being tracked by RCU. So I'm tempted > > to revert this and live with the lockdep warning while we figure out a > > proper fix. > > > > What's the correct say to undo rcu_cpu_starting(), given that we cannot > > invoke the full hotplug machinery here? Is it correct to call > > rcutree_dying_cpu() on the bad CPU and then rcutree_dead_cpu() from the > > CPU doing cpu_up(), or should we do something else? > It looks to me that rcu_report_dead() does the opposite of rcu_cpu_starting(), > so lift rcu_report_dead() out of CONFIG_HOTPLUG_CPU and use it there to rewind, > Paul? Yes, rcu_report_dead() should do the trick. Presumably the earlier online-time CPU-hotplug notifiers are also unwound? Thanx, Paul _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel