Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp513652lqp; Wed, 22 May 2024 10:52:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfruAFlzSe9WHhXtK36JfColdnrpOaKjS6GWotSODuDJGvMOYkvb59UV034uGbVS7z6jIBDHJ7i4m4XY2AxSZDngVkdb5NeYkAJW8/7Q== X-Google-Smtp-Source: AGHT+IFPFiKhosK6YYcoKeYPgo3Uy/P9gaTKatpSQt7ZVaIhD4eKGEhqkMf1c/4bSQeJJbIzd06Y X-Received: by 2002:a17:903:950:b0:1eb:144f:63b7 with SMTP id d9443c01a7336-1f31c9e173bmr32836975ad.56.1716400365193; Wed, 22 May 2024 10:52:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716400365; cv=pass; d=google.com; s=arc-20160816; b=ofNYIDyO2oCsEDBBPkCJyd8NeZwo7p6ttjNw2bG4oY1fk7vPsynJRU/pC+XEVpjh9y l34W+AlK+5qLDvFMSLo+PJnvPGlcHCRWxsFMj++OFVZmLDwJvJb8ClcCShqsFf4oDcVs mZQ1UO/oOmqpYIbWD1SZPcCEO6SiknEMHLteRGH3oYyialyM0nyW5FltUBSBAPpWRCui plD80xDCGt0eWYnGPet8sws+e19yQNx9BmYC9eXSPS0es3YB35bG2QE9bX/UO96/y7Fe RwXYtxTC+56TGUnHBuPzHUZm4WNYKFsBQF2Dyt6j40ncgNwYn+aEL4Jg0U6WXBAfvAOV gZSQ== 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=by0d6FIgykBOIQ2rkYvOY1RYbDxocjPFrC4pjQMP+Sk=; fh=QYPyHhz3KbzXRccqweD5tujdD5I/pGJLxcEZxkcJbws=; b=oSc1PUPTWbNVlmc54tFjmMZE8b4LNp12nQI9cP0+mi+JUx61wHcgHwhE+yMDSdXuW2 7kOpYukS9DhSSOOxkHDXvqgebjJ+Er7mJp3UPJ+sF/XKue54bNyqpuIDwnyYfg3Eh6q6 pxfLXqV9Nd/9H2wHbq0QkuQOUtyIiiVWgfzGYbLgLPnP6uwiJx5nhbA5n677vnao1c0y 7Kk+ZPXFNYn9yGG2QOkhctJy29FYtWYVmH1fgV9SJO1APY+bVYPdtaU9EfjSiadTbdrB qtxvZpdYPvluRb/g5TkJCsAd10iJuNnZ+/XCdyKDxEnWgp0wcvJ0hH95PYEy1wcCu92r nC/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Q1jefk0y; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-186576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f3195452e3si19214105ad.338.2024.05.22.10.52.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 10:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Q1jefk0y; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-186576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5092FB21CB1 for ; Wed, 22 May 2024 17:52:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63114145B13; Wed, 22 May 2024 17:52:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Q1jefk0y" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 1759257C8E; Wed, 22 May 2024 17:52:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716400343; cv=none; b=RI0QJOG6OGIVzzHwH1StBvR2WzEKiV+TjIg/BYZ45elOjS8Aq/7BYHP17t4q9kU6jhDkz7xBBfSRAWD5OyMhgHxkP2h+e53ZTeUXPG0yzULJJxRinjqdh/8ilX9pbactm7CKgxmyg5fI++o2Lq8zTez1/wWkFD70DCj0CadwByE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716400343; c=relaxed/simple; bh=GqUR8YikJ6aus54l8QP7m+6LW+eBsJvJWssh9eElXjA=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NemlFeY12PFSDdfxYI1AFpH9myTCLnGhBkJZd2mNcfk7SeIiaQSlujE9lnrFl2UY31yxMAuwLrRl31yZ9W8PhIqdPUG+TksaisvcRcLbV6Ih1kXw5VZmG2b74fkQqb58SOCif2N6cNPUR01NkZl2aZjX1KqitzNZz0Nj+Ef2pZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Q1jefk0y; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44M8Go04025175; Wed, 22 May 2024 17:52:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=by0d6FIgykBOIQ2rkYvOY 1RYbDxocjPFrC4pjQMP+Sk=; b=Q1jefk0y1G31BaP6KSmzXhs+f6jbYI1BT3cM4 aWIUZoXSnyO1qRYfpHgFSgjckaKKm6/2SCJyD2ZimZB1EfZsRk7tNbS/P+u6tjiH oiM5P8dgdX6zTTZHl+YAk0XyCZbxKWvzyzEO9vfRQERap8U1iamPfrqtAHdefsfL pBgncK1pSaqbAyq62W8mmToT+MGKjlzhENh2VH1xr2IKoRPcG4PVaX5TNvJa0/TO isq/GszcDGgNxqoJNI56pW0NNjuguMj07QueIluhvoGUWV27UhH5sJDsWy4tD51h QdenswZapdu7SJzKm4J4TQ9tIN6hicCIf3nfX+MN7ySKshJAg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y6n4pa5u1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 17:52:00 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44MHpxHl003730 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 17:51:59 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 22 May 2024 10:51:58 -0700 Date: Wed, 22 May 2024 10:51:57 -0700 From: Bjorn Andersson To: Krzysztof Kozlowski CC: Chris Lew , Bjorn Andersson , 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 , , , , , Subject: Re: [PATCH 7/7] arm64: dts: qcom: sm8650: Add hwlock to remoteproc Message-ID: References: <20240516-hwspinlock-bust-v1-0-47a90a859238@quicinc.com> <20240516-hwspinlock-bust-v1-7-47a90a859238@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: X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: qHvMGm8dNuCWFSgpif71DXrFX8vzWdMh X-Proofpoint-GUID: qHvMGm8dNuCWFSgpif71DXrFX8vzWdMh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-22_10,2024-05-22_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 spamscore=0 impostorscore=0 clxscore=1015 phishscore=0 suspectscore=0 adultscore=0 mlxlogscore=794 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405220123 On Wed, May 22, 2024 at 09:27:29AM +0200, Krzysztof Kozlowski wrote: > On 17/05/2024 00:58, Chris Lew wrote: > > Add the hwlock property to remoteproc. This enables the remoteproc to > > try and bust the smem hwspinlock if the remoteproc has crashed while > > holding the hwspinlock. > > > > Signed-off-by: Chris Lew > > --- > > arch/arm64/boot/dts/qcom/sm8650.dtsi | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi > > index 62a6e77730bc..a65a1679f003 100644 > > --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi > > @@ -2878,6 +2878,7 @@ remoteproc_mpss: remoteproc@4080000 { > > > > qcom,smem-states = <&smp2p_modem_out 0>; > > qcom,smem-state-names = "stop"; > > + hwlocks = <&tcsr_mutex 3>; > > lock #3 is used by smem, so this proves you are taking someone else's > lock. The lock is a shared resource, it's not "some else's lock". Regards, Bjorn > I commented on this in the binding, but let's be specific: > > NAK, please carry: > > Nacked-by: Krzysztof Kozlowski > > Best regards, > Krzysztof >