Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp619224lql; Mon, 11 Mar 2024 12:07:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdtQqjRpAJrx1tvCgjJ78QIFWGAkJtpMs4+4sJs2PAU5rPLGgVksXVmfwNAaDWMXR3vB9tD/MgJ533ML8M0DaROndzXkp5k3VpzWaTEw== X-Google-Smtp-Source: AGHT+IExWgQG60/WmKBbmsI5Xb4xOKDOTJk0CepkUg+VRZ5hQwz+OuVYcs2MkanaLTuqouKTL0p3 X-Received: by 2002:a17:907:d411:b0:a43:75ad:6d56 with SMTP id vi17-20020a170907d41100b00a4375ad6d56mr8026855ejc.18.1710184023615; Mon, 11 Mar 2024 12:07:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710184023; cv=pass; d=google.com; s=arc-20160816; b=uUycq1FVWPmLluxBZM9Cq7ZiZj6dJxipgPFgZzjJgbrbF1PGWL3ArsDXcIT7P8brJz tW5y4aSBx5iBXdC9yjY/bhJ/S8KH3sqQUnIr7LU3fITElWnNGuAnnR0zIezQLLMVQIqL ElQOru4FTuxhKTpZlPIPQ1UwWKx0GFWk4DtjKviZcmL3oOaAkDxCa1Ec7uU9NEs3yA4F F8Tll/Q9ctsA8P6bJaw0Ik/e9ENjqVTr9f3D2mftBS0Xmd4h4xFATqhjeEx+7Zdc/4bY hA1v0ZqUKW2mT0Gegn21XC86h8pqmfVHRol98XQMhONvXvFOGcyVjlsaKzVt8xlxUuPd T+Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+Se8L8bGg2pfuk6DEU97PWKKV5lqgSfbUPBgzuB3TFA=; fh=sM0vp0eZAILKgRFq6VpAgYZcJrQO/8ytEZG5VQkStXk=; b=z7X7nghMXkPMEciXxxHZJYnP6Ak4vaHtD6R9HpIWTIlwTTQQVObGZtSRxFqB0SBTit 9s5K8/0gJ7kGXf0PKMzmtsNNlPjYNbyk3qYF18S7pzpXbHbl91M0zPRA4e46gKlw6bjQ lPe32vPqGSEDhWS3UiouldwMujThkRkOuSRqjQmCzdikxkHcjojoRVyk1E+7P35O90lr 6iwNXAs+8ZdrkFCcGlL9wcR/GcxkJhbgATVo9ZgTbQ//SwkrXXyYi1LrPHD3Unx9dypR M7W/PaKuCgsJAN+1eNhNA6yluF5w2paOQKURDBNpedxtFAssiHER6pr6c3ToUAeNkHe8 qfuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tZULmN2V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s23-20020a1709066c9700b00a4637dde4acsi374569ejr.223.2024.03.11.12.07.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 12:07:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tZULmN2V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 394BF1F224BF for ; Mon, 11 Mar 2024 19:01:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6084056448; Mon, 11 Mar 2024 19:01:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tZULmN2V" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73B7155792; Mon, 11 Mar 2024 19:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710183681; cv=none; b=tDQ3VxHr4+6/tTcNRN86mvUTldbdgSn3jqNbyP0y3T7Rl4t2/a7TQwfe+WSUSpMcNfxJZnfeED/54wkUG84xDFSFHeUDByWPYKZ1PzA/r4U+qWBEtmHaaz4ECIL6rJPCO+y7Tkv7XWzeu3h2Kbel4tqgi72hyr8BA7hi8YVkiuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710183681; c=relaxed/simple; bh=nJrp1Y9l6Y09y6DGb2hHKl38I+DRlu4uhl9A1sfZhp0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a1hzaj9cIgm8w/9J+A1OYvL5DkJuXD0n3ec2IfyNp6oI7m+td64MY/zsY1TUWoHAlPiyZ1TFmVf+/JVHXrpT1KZzTqGuUMxiKnzO11PF/cTS6ZxLTglu1NCLfCiAhqqNKWPMKVn3klSFCAZ+hF/FhVQkhvnGLaMO7AYuBtLKtv8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tZULmN2V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2DFDC433F1; Mon, 11 Mar 2024 19:01:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710183681; bh=nJrp1Y9l6Y09y6DGb2hHKl38I+DRlu4uhl9A1sfZhp0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=tZULmN2V0fMkFqidHaZ9A7yEiIKNZjQ1U74oLWYftcP+26hLhqdgrjShqkYLzAX7n +vgwyE8WkMxMDMOJlSoxKAfike/K0jpmsewvrP1upZXEUWuVShp3hOqnld+TZ5Gal6 X3+VAMK/8GmfIEwlVaE0yH0ndMHYg/movgK+YBp0CJkwKIht/VbkzWJjDMPjQKQnU8 Lk4WglaIi2crRczw6Zc6Yj4WaVTdzmkYcb9QmFmTr3joRqc45KK9HUOkpJM3CIiLS8 2WvWB2xMFK15qX0NYt5ZJ+Toc8d4/jhRzW3aqQ1Fp/h9yYitxD+PYm/QlwIzwJaVDr mlwYl14eqAdTQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 93F47CE0B68; Mon, 11 Mar 2024 12:01:20 -0700 (PDT) Date: Mon, 11 Mar 2024 12:01:20 -0700 From: "Paul E. McKenney" To: Stefan Wiehler Cc: "Russell King (Oracle)" , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , linux-arm-kernel@lists.infradead.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm: smp: Avoid false positive CPU hotplug Lockdep-RCU splat Message-ID: Reply-To: paulmck@kernel.org References: <20240307160951.3607374-1-stefan.wiehler@nokia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Mar 11, 2024 at 05:17:43PM +0100, Stefan Wiehler wrote: > > So what do I do about this? I see you submitted this to the patch system > > on the 8th March, but proposed a different approach on the 9th March. I > > don't see evidence that Paul is happy with the original approach either > > and there's no ack/r-b's on anything here. > > I think we need to wait for feedback from Will Deacon regarding the new > arch_spin_lock() based approach. So please abandon the original proposal in the > patch system, at least for now… I prefer the arch_spin_lock() version, but the other approach also works. I agree with Stefan that it would also be good to get Will's feedback. The downside of the arch_spin_lock() approach is that, in theory, it prevents lockdep from seeing deadlocks involving that lock acquisition. But in practice, that is a problem only if additional locks can be acquired while that lock is held, and there are no such additional locks, right? The downside of the original approach is that it further complicates RCU's interaction with offline CPUs, especially should people copy that approach in other pieces of offline code. So, again, I prefer the arch_spin_lock() approach. Thanx, Paul