Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp358883lqb; Tue, 28 May 2024 19:07:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJ9AqevD9h9TG95xWDtSRFDCjJiLExGamGlEd7rIdaWBLz09owM6eAmLx2NonpvzwoBWPJRm+EdmNiuHgjuEMAsfZ/opgD2Vl/48w1Rw== X-Google-Smtp-Source: AGHT+IFRUYoH9NU4VpMhKnjUPf55znak6YD1/Dt7n8a98Dq4BLoDIy8NVcrQVjPDhufn/1z7H1yK X-Received: by 2002:a05:620a:f14:b0:792:c0f4:6c03 with SMTP id af79cd13be357-794ab05a7bcmr1754645385a.16.1716948426492; Tue, 28 May 2024 19:07:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716948426; cv=pass; d=google.com; s=arc-20160816; b=X8CncssFqqVgN859Kst3dWz+YZLco9dFj46atfOSaqHAwEQYD7/wRE+YRCccAbXYgJ sVuCiS5+kwdWblv/nWU4AI2Ozely4hUNszGfchovpE6jlIzKx5EEu/DlROi3nmKZDNi9 JrEaljzfo8t6scNyEr2tREMPzD7kVZSqVUhUYJrqg7uwVHzjw0Gyxu+ka0z9ijnO6KdB 0Ln5s8ErdhucKBffJxxEmDwbTYEHxAmwRzdfdeODlO48nelM22hz+QT5X90+cr6J4qH+ aG2DMdLuBL1mRFHWRrwlc4UnW5qySrQXOrA9endGaZkbr7BcMf/xW9LbYydNeECDjwIi fUHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ME+M0sHoJgS0HhkuJ8tyS34FFikU1mNRk/MTdtwkUOM=; fh=hhBqTtuIqve4ZdDRjBHU1O72CWcIMyjr6vDafInQ9as=; b=kVKcLV1u9l186KCFaSiR8NcfBPyOI1L/1Igb3SZKJaEE5jPqaBirS3+7x4a9jqvd0o ZLcUDUu4RNEYkp/e/aajC75yR1kd4K15lPNAg2EbOn2wOh4bPIJA7QPFEZ5uqwzWg9mV aa5dYMNoZucaxNrvc7nJ/HcVTp2R/lFdoLE3feQtpq0+pJjtP4rbWgFPUHACZzLltv3Q EgEvsgVv7uU9YAS0wDtIxd7dEppPOqZhFu30qiR+hzfZSRRBA7/EKxqRYIOZc4pjM8pe gPlwAU5CvShwixMY97v76Qns5mPdoMeLOnW2MADSE0mVinn3L7cYUhbqUDaLygIuM7LM 7+Pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kYnuaK4x; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794ad7b70d2si1077387285a.4.2024.05.28.19.07.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 19:07:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kYnuaK4x; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193343-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 39A8F1C22E13 for ; Wed, 29 May 2024 02:07:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C79E15B554; Wed, 29 May 2024 02:04:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kYnuaK4x" 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 6BECD37169; Wed, 29 May 2024 02:04:22 +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=1716948262; cv=none; b=XDkp63KNb0Bg2kgdp4Eexw4AkztHBVekjUIlmSs47fbJ5P6vMoT0+FrC07LJnXfq1fKQJEeuvo2a2QcMYae8OemHbDwYc8HMDVzxkUyqBLGxEbRWABuNpMUgGAzwV+t3I1eH5IYXPVE8K62N3l3KDYlwSmRtS5nwj/ptpXeeKIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716948262; c=relaxed/simple; bh=zdDgB/q9i/jSfgu/HKejcvyfTnTHBfhQGTRnIUardNo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZqxAEera2zDBFyTWYNqf48Smmq+EzYKDsQy0r3knH/aRhYNwwJdrL2DtDjjXRpl92vmluwodbRgPw+pdlHGJrpeU4pAczt9k0l6jcTf9LxWhSmTLnlayaWfYEFXWa2dZCtAOGMhXlkoWBIwYHbrG04bdKTe12ygT9xTsxkDlKng= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kYnuaK4x; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8836C32789; Wed, 29 May 2024 02:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716948262; bh=zdDgB/q9i/jSfgu/HKejcvyfTnTHBfhQGTRnIUardNo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kYnuaK4xWxmNTR1yCYCeJ9ZgfXseYGfmivBnQdaTtIGVHUgbrnFd663+q/Zu2X+vq xCmlalwww8PSY+YsIBrnWPuXHKfdNC/4p1r7Kgi/1tFMtxHg9s4aMRYhRYP/AmfRLo NxyltYR/oiiDbDTGnuGsuzqnzeNsMQ4EIZnJjkEo1MJo7bIDyQuwbbXUp6jhSBnlx0 mCpGmseVNIZxqiZ1NDHYwR/MlBGaO/YRdYuODaR3yAnYpPzffZcIlAf49BB0qQS2uQ 2SmQZH7j5+d1MDziiWsWeYNVHjy/JTj9a29g9mc+1WU9284JJikwQ2OiujyCv9RHMV B8BnSfoNAHY8w== Date: Tue, 28 May 2024 19:09:04 -0700 From: Bjorn Andersson To: Chris Lew Cc: Baolin Wang , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Jonathan Corbet , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Konrad Dybcio , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Richard Maina Subject: Re: [PATCH v2 1/4] hwspinlock: Introduce hwspin_lock_bust() Message-ID: References: <20240524-hwspinlock-bust-v2-0-fb88fd17ca0b@quicinc.com> <20240524-hwspinlock-bust-v2-1-fb88fd17ca0b@quicinc.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=us-ascii Content-Disposition: inline In-Reply-To: <20240524-hwspinlock-bust-v2-1-fb88fd17ca0b@quicinc.com> On Fri, May 24, 2024 at 06:26:40PM -0700, Chris Lew wrote: > From: Richard Maina > > When a remoteproc crashes or goes down unexpectedly this can result in > a state where locks held by the remoteproc will remain locked possibly > resulting in deadlock. This new API hwspin_lock_bust() allows > hwspinlock implementers to define a bust operation for freeing previously > acquired hwspinlocks after verifying ownership of the acquired lock. > > Signed-off-by: Richard Maina > Signed-off-by: Chris Lew Reviewed-by: Bjorn Andersson Regards, Bjorn