Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1066793rdb; Fri, 9 Feb 2024 09:14:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCYTGs+nRn4pxe7tXA/ON0b73VO5BFARMkRoGMT2xusvjccCN9ATOpIN2uHqvJD2GRNZpUBh8sM6F/EjUjQL5ATA0fd9ktq4E7/N6d/g== X-Google-Smtp-Source: AGHT+IEeOyXLhwxddgkj1RjdQTWoEZ9+hCBESUD5yrl+HTUQ7XlNMWexlGUKnqq8Ywfn9ipQ7l/v X-Received: by 2002:aa7:c2cf:0:b0:560:ca7d:d4aa with SMTP id m15-20020aa7c2cf000000b00560ca7dd4aamr1939296edp.35.1707498892793; Fri, 09 Feb 2024 09:14:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707498892; cv=pass; d=google.com; s=arc-20160816; b=oOzmrb1cHofr8YnTkcNPnigB2bY9jWCMTUOFBREkZpOCiyg6gwe12xW0Uosmwxdahm 6sBOtlqf1ZJ2+TOtc86pj5R8KDsX1wsx8GsRi/9AC8K8DhH6xK0kV7ymiVmga1FgaPUd 4AA3OoZMpoWM7j9P+VE2OFIOeb++G3XEXgajAPKWfjICMatUl04FyyO/jqUVObkKlxok u9RjbMltAQ4Uz6JWDs6S8mDAnVArdpxsfAKUmoAwceJhWM+N/OUoGHyE6eexK/dVGI5n K79Ms76IXSi7ODKRuUIMQNUlx8QPOpheX7QfGKX/d5cHGf2ZKu3vznFOO3VdkaqSi4ga synw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=3WqcxEXG8TSNrlTn9gKFAz+5r+7V+KkZ4U4GAUZ3UpU=; fh=d6C1U6ZA1FfKC1oDUPGnRKlpHHSd0mwu1gervCswbIY=; b=mLcBCYERxX9bH+zVA/W/dvVhW9ybKIiMERLMFieKAixBDCj5Ec5s6aMaztUIrH1LOy z+11+DskqGXFAMBKz19SrWQJq5zLQpzxMz6QMhQeUc3hE1yM50gABmNtvKg5yaZGkbFt hN0MVECOb+Tt1r9MSxSd0FtsGka9Y64NldroZVJKtxESyBrkF9BhKxmkx8yWhXH302ex yf3o1PbQybGsVgYFGLk0OH41cfqqrjTsCXYkjjzLgxMwObino320EMh2uCk2+Fio1vZE WTb3nyw1yLPaTjTaEHY/lfLsDbWjf+EbHW9opcu6hSVrZqanGjNNRRD4t3QpwvmGL5C+ eclg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t4e2zs4d; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-59713-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59713-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCVynE5p+N0+GGDED262M+yysLVdLbW3Z/vE2Wq1ofh02Y4BGIby0ZFfDXw4FJhO3QMOtllyXgPoApKyddXevMo6Zl51QGYNom7eqdmJng== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a22-20020aa7d916000000b005610ed87a67si1009942edr.336.2024.02.09.09.14.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 09:14:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59713-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=@linaro.org header.s=google header.b=t4e2zs4d; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-59713-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59713-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 83B2C1F21780 for ; Fri, 9 Feb 2024 17:14:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 980497603E; Fri, 9 Feb 2024 17:14:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="t4e2zs4d" Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 315857BAF3 for ; Fri, 9 Feb 2024 17:14:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707498876; cv=none; b=UhRJ4ki+Nvx01u8PGOpywftd0gZxG/TrDLdY+Yet83JNYaJJYZdPjkyF+A+sMC4xyCJB4k29kfWWMoFJSuuQcMUL7XO0SvVvL1yU0zjb4etO6kSg/OD3Xaetth9ATTBepDCXHndSiGVK6xPzz1ZVX0IGIGxuptqBUPY9XipLQ6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707498876; c=relaxed/simple; bh=8zaCR8O41K02r3ojsjLx+ja3Hf6OnvwNbDj913/XFkQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=JH9Lz35aNYWzLZ3DOoATkmS6iht0YAks6Xqltf2zCGz2dMeQueQCIEbykBQWxyyXc5BBopWBzHhbvqjflubJ4MULp5GQNsHyq7eQYy6LDTeolGLB9lvNo2WgsPh1C2M11D8NmTGeAZHUyAO/U//Oh7LdNckUPY//WYl0F4VU4s0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=t4e2zs4d; arc=none smtp.client-ip=209.85.128.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-60499a12ca0so12658427b3.2 for ; Fri, 09 Feb 2024 09:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707498873; x=1708103673; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3WqcxEXG8TSNrlTn9gKFAz+5r+7V+KkZ4U4GAUZ3UpU=; b=t4e2zs4dqiCsyRyp8s89NVoCCPLNxY+EV3IX3sBj3R/cz6DdgHC7eLPnkq0PVyinYv wdMR9Eqm2siSUtmd03TY+k8MKoGI9yFs/jvNt4PfKxFehkLdggM96cc/1ERbX4fe7BeK ETgRtPta7g0wBR6mxjGT372cheeIoCW0YivjZSZKJiWkTiP5dISHqT657hPh6YNqOSpa tiqtdh7Zs6zEZBPoyu6IrPDGsTDO6DJmFCUaRPRcJSiXnAXJWguhXNoKDEXSXDclJMhO KrjfcUOGtwsr9Bn7hggsX/iztBVJhKYggg1t8hQRoRlwEfzYe3FPn5cEeHkdYI6IN2lG 3JtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707498873; x=1708103673; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3WqcxEXG8TSNrlTn9gKFAz+5r+7V+KkZ4U4GAUZ3UpU=; b=Ej2BR8tUVJLKCPjzbeN+hdNl9GLKCZAH5eZ8rsu2GU9t11ws+tx1C6Mk61n6YUBjNq wMdodG0f2Elb8L4B6HKY9FK9HnHcRglrStkdcFUwPOPdmBDjH4/TLRDL8A4tjyHEiXbA is9VWreVhyKfn6Q6ppp3MMY/9cbKU7HaE+hxchIRLM/v0qXtf12vcQHuYuKon+ut3FGU iXI9JMbFN/NhttKWjlU6qUBorbm9NYTOxe8s/FT+q5JkdDk0paZgMriQ8+MviFRScLpa PL2JGHBiZGzW2S7krvuZBtRKy6GyRGjEAblSfkYFSwKqukhmMtc3OfTIvJ37rFBLuzN0 z6xg== X-Forwarded-Encrypted: i=1; AJvYcCVjiToqqPsLNzbzOi1/dUZpPLfalQ02LgKFlhi4Zfgg1VlRz3rBByEpUI4tmw1u/5MD53Q5y65+tW9xgohXjWBIsL+zrybB5F2cO0nR X-Gm-Message-State: AOJu0Yxw8r8Rj89YlhGNo4Q71NqHwDMftDbrWB8rC0P0QG3u4kLJhYFi En5auvS7jvmdlkDWUAwWpcw7XmgAxFo2lEN0oBwqBN7ZcIwlnBR8QSPiK9NRZnhoy7k3hxHyS3X Xu5dyo5vui+AgTETARXEcLdsDL4jZPmYsjGMneA== X-Received: by 2002:a81:9204:0:b0:604:1693:80df with SMTP id j4-20020a819204000000b00604169380dfmr2372634ywg.10.1707498872897; Fri, 09 Feb 2024 09:14:32 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240209-qcm6490-gcc-protected-clocks-v1-1-bd3487b2e7b1@quicinc.com> In-Reply-To: From: Dmitry Baryshkov Date: Fri, 9 Feb 2024 19:14:21 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: qcs6490-rb3gen2: Declare GCC clocks protected To: Luca Weiss Cc: Bjorn Andersson , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Fri, 9 Feb 2024 at 18:47, 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? > > 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? Seems so, we had a similar patch in the meta-qcom repo for those boards: https://github.com/Linaro/meta-qcom/blob/master/recipes-kernel/linux/linux-yocto/qcm6490-dtsi/0001-PENDING-arm64-dts-qcm6490-Update-the-protected-clock.patch > > > > > 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, > -- With best wishes Dmitry