Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1107723rdb; Fri, 9 Feb 2024 10:24:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWmwaRIWXFwSNK5a//+pLHdjpqqkvawPHu3XqYva6w00m3Wshm1aXwR+DfWZGWYj5zo0tAC0DyO+9+cPZibpqOo2jpqgFXsMPts2RGh+g== X-Google-Smtp-Source: AGHT+IEqmfvFgBNYT7hN4uiBx6mgmOv3cJZEmAJL0nUzL2zfWkWziktafAs8WhONJq4pbFN6Ha4V X-Received: by 2002:a17:906:5912:b0:a38:938f:7ff7 with SMTP id h18-20020a170906591200b00a38938f7ff7mr1939113ejq.33.1707503066806; Fri, 09 Feb 2024 10:24:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707503066; cv=pass; d=google.com; s=arc-20160816; b=ifWJZOdmUMd3arU+ZdUNvZtQOEC5Ht+eV26WagvvakLBXcA0hJzFHTyThvV1OG3vO+ B1p9IXQ0jxXlAq2EvwETY4wVlIH2Iz0BS628GHyRrHWx0SWnc/S2y00JffftFmmClhS2 rUWjlc2294m753EaeAzBT5CjMZe6We916fiIt8iJ1ZCfLzjkDvjTo3K9DzaBwJmBB6Cu 87loi2qa3jKPJ4yPV3fOon0DrRCGnzYZZB0DShD3uhjj4jjrw84CauTiuKajcGnQe9Di On6VHXI/CcKMt5IGRPJXbLAx7nMty+z9LJDTTF2FvWovYaBwDadYUnu8AbEQJ1lx3jMz VVwg== 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=QBdBsX0kPn8MiHnpBrXAS253OIjig4HJEiEMOsctvCM=; fh=psjLlsnFUVDBDf6JOu1iQ7hyCYAUrt8vw9wOy7J0QFM=; b=i0QwwWQu+g7UeojUAnpme+5EyT87q/naOczHHozdoj+JIsC1dF2kf5s3poRTbv2RXe u9AzDChCxFzzFzC7Y2gmwHQe0BSdEo1cqOv5sHDccGI1s0kiTjRzHlvFFpjBWMnrD7nv I99+nEPkvIkmwKOrugtyxltYbWjVe4mG7lljFoyrSI+H6u3c6AkUMh6vFij44GoTkEKM KfNlLjp0qFF42QXhjWlXELRTsTki7tDtFZExjDkYdT6wBvEe5Tixt1JYu03o4JzP6XA4 m5qLn3sBCrqiUikhf1OR1JOJbwuXHxrf0dKKYbhD3KPFdAIcPexlUXN0vm39M9+5+6As FLZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=M3+c8kOa; 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-59797-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCUThHT/hmEvdu09GZODaqACPr3YN7/GyUn4kPH5VVNj+kEGayksXbYP48UmNsRO7aUqYVMITK6NDJinwsrhYD9/AQUllLj+CFRNKzlfhA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g10-20020a170906198a00b00a3bad8bdbd8si1024029ejd.306.2024.02.09.10.24.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 10:24:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59797-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=@quicinc.com header.s=qcppdkim1 header.b=M3+c8kOa; 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-59797-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59797-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 850F21F2255E for ; Fri, 9 Feb 2024 18:24:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32F6580BF5; Fri, 9 Feb 2024 18:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="M3+c8kOa" 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 B5C88364D6; Fri, 9 Feb 2024 18:24:15 +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=1707503057; cv=none; b=huwKjQHJCNkKpATmLOHMklhS47O0FNM+IdvASYkTgBG2z5WWQfr+QmrCwVOlbVvapj9kax+xDMgOh1pJmdTQ+7/BssC9kdsEUH7t7Wqz1yG7AF1knrk/8+8O6sCSPPXOKp9/dzoo0MCuDeNE7EaVa6DtIBnkfK3t3aDw7PCyEQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707503057; c=relaxed/simple; bh=PgZPAVkl0LXmi0Xe3yog5F2rMh5y1yDtq+xvo9DtUTA=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZqMgrKVMdyxO4s9tD2X2HZp/OauzjT45C4PjwVni0JYrB/iNkhMQ9IbiLK4VyZi1JTDPWtiLxD91/jmiu1SLJvVlChYQv85XqJEWYqicrE3PsMcnW1k/82YP/I8qmtXokj15gGfoQ2O/eiewUzMp8RTVPbEx8Plp0OfTMdzYdtg= 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=M3+c8kOa; 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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 419Cunxb015379; Fri, 9 Feb 2024 18:24:10 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=QBdBsX0kPn8MiHnpBrXAS 253OIjig4HJEiEMOsctvCM=; b=M3+c8kOa0mDK9+kixxfmdzW03Nh9rFNuG2xbg eLpISSIwkZ9OReotSKbGMKFPayMINoJzdDGRrYJMH5ewzmO2Ea4g49Jw+2uqxve0 IW1bplbruL4LWJwJBMmgmLhWcmr5N+jQsZ8yyksyFczU07zfQUrPQbkDZ4NqN1Dd chk92RTY3wR30f6khe3ZLhUvgu11uCCQz9nZnUDFySApJPUqdzjPLtr0rVxknFwE 9oUEY+b1tlSlqTgrSdhPT41uNz/QQ4gL4WfHDGoeU4a76PXfvgl6Q2jc7tg+orQa aIt2bOhoIVFvkj3RBrVhW9vQkQ2CDd99CcYKgLog/+17ZsWhw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w4m3an7jt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Feb 2024 18:24:10 +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 419IO9DY011544 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 9 Feb 2024 18:24:09 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.1118.40; Fri, 9 Feb 2024 10:24:08 -0800 Date: Fri, 9 Feb 2024 10:24:07 -0800 From: Bjorn Andersson To: Luca Weiss CC: Bjorn Andersson , Konrad Dybcio , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Dmitry Baryshkov , , , Subject: Re: [PATCH] arm64: dts: qcom: qcs6490-rb3gen2: Declare GCC clocks protected Message-ID: <20240209182407.GA2936378@hu-bjorande-lv.qualcomm.com> References: <20240209-qcm6490-gcc-protected-clocks-v1-1-bd3487b2e7b1@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: nalasex01b.na.qualcomm.com (10.47.209.197) 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: 1-KVbzFurcW5HxvV0RSx9Uz0Vk4Q8jxT X-Proofpoint-GUID: 1-KVbzFurcW5HxvV0RSx9Uz0Vk4Q8jxT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-09_16,2024-02-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 mlxlogscore=605 adultscore=0 priorityscore=1501 malwarescore=0 spamscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402090134 On Fri, Feb 09, 2024 at 05:47:35PM +0100, Luca Weiss wrote: > On Fri Feb 9, 2024 at 5:21 PM CET, Bjorn Andersson wrote: > > The SC7180 GCC binding describes clocks which, due to the difference in > > SC7180 -> SC7280? > Indeed, got lost in the number soup. > With that fixed: > > Reviewed-by: Luca Weiss > > > security model, are not accessible on the RB3gen2 - in the same way seen > > on QCM6490. > > > > Mark these clocks as protected, to allow the board to boot. > > So the board never was able to boot before this patch? > Correct. With this and the correction of the voltage ranges for vph_pwr, the board is now booting with only some minor errors in the log... Regards, Bjorn > > > > Signed-off-by: Bjorn Andersson > > --- > > I did notice Taniya's patch [1] after writing this patch. I'd prefer to > > merge this minimal set asap, to make the board boot, unless there's a > > strong argument for including those other clocks in the protected list. > > > > [1] https://lore.kernel.org/linux-arm-msm/20240208062836.19767-6-quic_tdas@quicinc.com/ > > --- > > arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > > index 8bb7d13d85f6..97b1586f9f19 100644 > > --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > > +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > > @@ -413,6 +413,24 @@ vreg_bob_3p296: bob { > > }; > > }; > > > > +&gcc { > > + protected-clocks = , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + , > > + ; > > +}; > > + > > &qupv3_id_0 { > > status = "okay"; > > }; > > > > --- > > base-commit: b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d > > change-id: 20240209-qcm6490-gcc-protected-clocks-ee5fafdb76b3 > > > > Best regards, >