Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1469619rdb; Sat, 10 Feb 2024 03:38:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWjGDsEZs7KxioclP0FwRXzuIu9ZPvHZ8lTrA49lTvxlrcCPjihzx5uKYGK5TkqgrgV1aICaZD3OrbvcFemGSUwJVgiCkRBcglEXVkFJg== X-Google-Smtp-Source: AGHT+IEj8aMRUiAQiCnbe5hi2xuHiesenpEwLXSDokRrUEAt0QWXv8Bv0uzgL9+EdiBbybQIj4Kb X-Received: by 2002:a17:906:e53:b0:a3b:f798:cfe2 with SMTP id q19-20020a1709060e5300b00a3bf798cfe2mr1444356eji.55.1707565128113; Sat, 10 Feb 2024 03:38:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707565128; cv=pass; d=google.com; s=arc-20160816; b=VTmr1f+JlXlNsnsCQA2pLz3QPlwprkENYTH2RwN3pp8KcF6oXY7FlLIOt+TyyXnIEf vJigY56oY3No5iDZp0rfgBq5M9JPGGFHtz4K5pS8tqYIrgVe8SdBuPEqu+5t2Qp5DK+M 1jQgGtDZfn5vHFEzJEun3zJgw4E7ClGzEzWi8Wv+aPiZslbCqqTbRORsbunQP4ZKkWMn nNXuf1USPu8EnOF03qWOoBQYhIqmwPC0B48HDsTMYpHFQlK1S2qOyeRAdWLZ7c6iawob 2nYaJiXlbADVPGmcl6sSCk1Wy5Iibz+9+2p30ZIZqHIn3a14gJ1LcViJYFOmg/v+UdIq zfyQ== 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=82EgLZ3LY7jUKlDCCOKLr6UrPKDAXs3K70Oxct3OvMQ=; fh=bjho9ANOIM6Z5oRZOJPVjb2T1toBsF1K6yt8EBMmO6Y=; b=IsSrtgj6o8AsJID1iahHcset6uILfhrk3LjtIsCLHS5a2jNzfD+Gu6hYXfqlkk04V5 znAniwdTxOnpfIUQLWNDwEHYHtDtpfS46+tMgGfFZ5PrvCMuEU8EJV5mKDHJLfzi3Pas hgKNdmZGZXxx6xsf0zgC3czcT81M8ZISJGUq5np2MFG5aWowHxbqycR2jBd2Uq8IdzIH xGMmnJUyENrKKK104olZz5dNZvDHoFiBG9cOLMaBSmOAR4Cvm3MxG2kYF+mg5PZUYv84 u8lDkLYgyIvBeWCQ6bqb9+3MYy2UM3ZaQEJRNzJsHnuwZOnshU95BTVj/aGnZPrjf1me DG2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F5d8feLj; 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-60383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60383-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; AJvYcCWxhCuL+4yt/a1yWaRKWZh+XtOzaDlPs+UsBs8E3dB+rQz/A/SAcq7E2UC/M4lX4xF5m4PoAqnkfHQ3hfGnhHkS5vIp4wj4X8mtS7UOkw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id js11-20020a17090797cb00b00a3c0120c847si1354606ejc.420.2024.02.10.03.38.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 03:38:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60383-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=F5d8feLj; 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-60383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60383-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 74C171F24348 for ; Sat, 10 Feb 2024 11:38:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C29D13D0D8; Sat, 10 Feb 2024 11:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="F5d8feLj" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (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 41CC23AC01 for ; Sat, 10 Feb 2024 11:38:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707565115; cv=none; b=jMmrIpsBFEttoCd3dBIP5QC9UxlCeFCb+QSX4sDQ6JefZdSH/FarZE66LccCoXl23oT9K9cSbeG5CM9Ut2nnTX9URmUh3HsJVvqhIiBcmWQJu9RpMVh40f9fIbQ7WKarUrmC6NBfpm1JRnDKvNr+apghXCFibGAM4zPVnk/f9C0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707565115; c=relaxed/simple; bh=TZ3X8CFK/YZ2sn5QYrfR00C4nOO2x3559zrSWlBYhXk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=I/hRxlBEtrw+goMklsJ1lpelf7nD5bFsibbkIDMntM4plW3Rx1DPJ9/kwPkFIoYlJa3xalzqThpLpoghflR7pw+KgKiqSApvGySnBybBgnRxWoFMSZt3d2RCkil5ietVVqI079yGXOZ0NNEW/OEmeVexkQDa0T8pE/c2mcT32QQ= 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=F5d8feLj; arc=none smtp.client-ip=209.85.219.178 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-yb1-f178.google.com with SMTP id 3f1490d57ef6-dc75c5e3151so648149276.1 for ; Sat, 10 Feb 2024 03:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707565113; x=1708169913; 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=82EgLZ3LY7jUKlDCCOKLr6UrPKDAXs3K70Oxct3OvMQ=; b=F5d8feLjOa2rmoWM4AwlsjBRs3ZZV2KKK1sCbx9t7PZNqFHOHd8LEpPxThYdgA1Ny9 mmiV+0pmmt9vCjFeNh/Q9p3MaBNk/bQhWSM8vAPuYQiGhyDvtq5QGi5ZKpQybws/9cN7 zZFJf/iJC7ZsWqbolUjxDqP0gtaCniNtpbSWzWb6/GuvNRhCsPC8M9k8WYqc/y0Lrev1 fwFIHon5hfCepJD+zOwbabna9BwajyKqms6VB5gbhXdpipkjfDOa4R02RflyNkuH+t2n nIVFUjHG0bsluM7JRkL1EbWfSQwzwG4q1TijI97/7FLUaqnKTfiCE74AOCg3A8hNl7qB LLew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707565113; x=1708169913; 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=82EgLZ3LY7jUKlDCCOKLr6UrPKDAXs3K70Oxct3OvMQ=; b=LdAazOoSOZAw4RhvKpcRIxqVrvgTfF1wiz6BRwFa8aMfr2q4qGGEpbdSxwJ5YSI2u8 Pbkd1zHX4zEZ1ZC5ZNy6ubwuPdH6Am3YaF3CJMZqu6TJ250Ua1cCPtsb8wBeugCkkKt2 RXm3743hnV0wAiz4wp0BFt5dXBiqjQPCYqmf5atd546gEpWvOcEoDmQSUt/P/Joak+iG LOl7MnO7YRgnKGwkCndq8ZSN2RANJ4slu6eRBho+nZDwFonsU/XME4fiMagLtBK08bkQ Bu+mpjnhVmfh3+wH8W2sRJTDJZ0n3+9SivsCkWQp4gMOg7+OTX+SBzhqCUtKRzRy3QXX 2YQw== X-Forwarded-Encrypted: i=1; AJvYcCXYdTRnisKRNQYbrRHbuuu2A9cwdZ2Q0ETZES4tf+boZ2FqDu+kr67Lag6vtmR0t/JqnpfBreAr3VzYpKwR7Zi7NKw3VfSH+puSzCDH X-Gm-Message-State: AOJu0YwFjpPsGHvf/l1v1LmHm1fJDNTzt+UA0mbQoT2V6U+bOuUUCJk3 wyU1KPvzCuIAYKvzQSfXEl7ZYExnAdODZE2vBYh2nwsoYRVye7rKgEPunwrq67HlQWOS9FYe+Mc ZtmfZTym6zsyCafmAbT2QbvQD2jYxz4GAtapr2A== X-Received: by 2002:a25:fc21:0:b0:dc2:7018:806d with SMTP id v33-20020a25fc21000000b00dc27018806dmr1532685ybd.16.1707565113266; Sat, 10 Feb 2024 03:38:33 -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-v2-1-11cd5fc13bd0@quicinc.com> In-Reply-To: <20240209-qcm6490-gcc-protected-clocks-v2-1-11cd5fc13bd0@quicinc.com> From: Dmitry Baryshkov Date: Sat, 10 Feb 2024 13:38:22 +0200 Message-ID: Subject: Re: [PATCH v2] arm64: dts: qcom: qcs6490-rb3gen2: Declare GCC clocks protected To: Bjorn Andersson Cc: 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, Luca Weiss Content-Type: text/plain; charset="UTF-8" On Sat, 10 Feb 2024 at 01:21, Bjorn Andersson wrote: > > The SC7280 GCC binding describes clocks which, due to the difference in > 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. In contrast > to the present QCM6490 boards GCC_EDP_CLKREF_EN is left out, as this > does not need to be "protected" and is used on the RB3Gen2 board. > > Reviewed-by: Dmitry Baryshkov > Reviewed-by: Luca Weiss > Reviewed-by: Konrad Dybcio > 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/ > --- > Changes in v2: > - Dropped GCC_EDP_CLKREF_EN from the list and expanded the commit > message to cover this descrepancy from QCM6490 devices. > - Corrected SC7180 to SC7280 in commit message. > - Link to v1: https://lore.kernel.org/r/20240209-qcm6490-gcc-protected-clocks-v1-1-bd3487b2e7b1@quicinc.com > --- > arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > index 8bb7d13d85f6..ebbe2c1123f6 100644 > --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > @@ -413,6 +413,23 @@ vreg_bob_3p296: bob { > }; > }; > > +&gcc { > + protected-clocks = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > +}; Reviewed-by: Dmitry Baryshkov Nit: I really suppose that parts like this should go to the common qcm6490.dtsi file, if it gets duplicated between IDP and RB3g2 boards. > + > &qupv3_id_0 { > status = "okay"; > }; > > --- > base-commit: b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d > change-id: 20240209-qcm6490-gcc-protected-clocks-ee5fafdb76b3 > > Best regards, > -- > Bjorn Andersson > -- With best wishes Dmitry