Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2639533lqz; Wed, 3 Apr 2024 04:30:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVH6kJPIhG8kZuXhzEK8t7gFrP4wgGNdoNZGX1aZMSYQl1n33QZmlPvSpx6Nt3ZTDt3lCLe3jF45lnblRyMKSMFPMMxi7L8ikXxAcdH9A== X-Google-Smtp-Source: AGHT+IFtkKJ1gz72WaLV9us7P4xKHWvQqHgxDIdufWaIx4DwhDIwPsIXL5lrc/XI2Ee5C59xXOgo X-Received: by 2002:a05:6358:2297:b0:17f:1d66:e0e1 with SMTP id t23-20020a056358229700b0017f1d66e0e1mr12569705rwb.4.1712143824197; Wed, 03 Apr 2024 04:30:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712143824; cv=pass; d=google.com; s=arc-20160816; b=mqSfFQdQeffsq9izOUDvHWvLTj3DR9OK22yaOfWDZsiJgQ26AH96wKl5U2zqCQM8dm t64pNnoeJYjLZaqZOf+nt7n+DDJ93OmsXq9rcnFhHh3mbB40IMqr+KwkDTVlyy7Us1st Qmp0WbfRMAjPIQpnIQmB7ANA/jDeQURh91llm9do/8ifqZFxeDkuwAAOXA+Sfgjm6tHX 2UMdsuGa2Aee4KtQME3ZXHA/AjqJabjfrQW+37TR1tGxWZj56NesryARRw4OhZE4SHjE Iltw4nscoya6hjEEegI9e5xY5ugNzFBHu2fEMyZORTU7tCjS3rcYwdYigwJXGWBj1y5i HQxw== 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=lF+T4bxnDZj7vHWxhdfHcPO4VDzU3zVkWYi0IqT5ix0=; fh=t7Cv2bvlJKTShb3HZMsGfmEHc2AfvWguIj3BjgSAo20=; b=tquSZy3wtn7nUcvfJ758r2Um02yLGjklcatFVmHcnjbrQcwiNI2XTC7Rhyrdo+8Yin ZrB5+34aJ5gtVzDoda0St5ayArAfEwgzQ1W5e/8PojjUu+IvouNRixeTsTSN5QXM7pQJ SDzNVSHk3dzfEVOG8EoFV01BWxnqXr+A7nIbOjbieIY3NGceQRhYHFwU8jrsu+aqFTV/ LIJOO/+EYdUBfzq13SKZinyA035GzqDo0x1HizsCZWIBaIPQE+RgjuC9DudohPYc4eQa ld5nllIicr0as5XPfnWBwXmX8FaFv2DiIFCwZFTQWMekW6gbzytn/Ympw+gp/ybLPb1D ZMEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IyGuMKYC; 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-129656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p123-20020a634281000000b005ce05e5d57bsi13215065pga.574.2024.04.03.04.30.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 04:30:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IyGuMKYC; 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-129656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129656-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 25284290F6A for ; Wed, 3 Apr 2024 11:21:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2B4D14386B; Wed, 3 Apr 2024 11:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IyGuMKYC" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 73EB073506 for ; Wed, 3 Apr 2024 11:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712143297; cv=none; b=L9f8ykgJIPmUwtrhDeKlCp3ILvoLQ1p0uNq/kFgqgB/wAdRAF73vI7ImW16VJyaKdaFIE7ePZ0/BfbvgVJKX828+ahpXu8FX9UGld1swlrZrBViOlksjW9+o7H33vsfPFQ6L9zm/1eCDyObveKS+xi4o/Yj7jAue2s2+dtGtaNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712143297; c=relaxed/simple; bh=14A2zGvt71HCwM6O6gK42NmYjcKdFxMOyjGXH9M8uaU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OK7/1dIEEX+jIXjCw2Qqnv0S3JqBs9UdRbm4tSNc40ILPWnbBdgDW5yQDnVzfNPxamMIHKkkNYs6hYc0nlCEtQI9DEP1G8NKOWQa8yQyXBo+d08jx+dm9OQVbBWjKYzKzEImX509+uYDRMTel0TibqiGpRzvHYwZX4nF4lGBCFY= 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=IyGuMKYC; arc=none smtp.client-ip=209.85.219.171 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-f171.google.com with SMTP id 3f1490d57ef6-dcc80d6004bso5737886276.0 for ; Wed, 03 Apr 2024 04:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712143294; x=1712748094; 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=lF+T4bxnDZj7vHWxhdfHcPO4VDzU3zVkWYi0IqT5ix0=; b=IyGuMKYCNcOdj5zfUJMfwLXjQxs/QumlNmkmfT3cw1Til7Omi0PtrwB/QZHbGgMzKX SjRMQWV+hxVdIFkbklSq+gOhEywIm0JKTe8lKi4D9AHXowyOd4fuR8/kH3CfFgfJpayj LLiUy2+frpgvRV4C8icpjezhPAT5ekYkBpETxXo+4qtTBBTNRkoGBaYQROZYcWRgY1Ay ttB+RYBzWxe6OqOVDXQugdOkbNVbp7Tb9R7UKTUXRAKVWdKDn0l3CiDaeTIRoWusCO+L hvb8jNJ+ML76ZA4v9mRde7zB7y0WpQ7Y1m05K30IqUjnTXFibl3XWOVpjcW23ipUjuxp nZ4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712143294; x=1712748094; 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=lF+T4bxnDZj7vHWxhdfHcPO4VDzU3zVkWYi0IqT5ix0=; b=ulMdw766v6wcKRNwxYtHdLeHUkeakKDnD7qgtOz0LkSU35Gn3viMVhNmEkPqrBRoWl qTS1bIBwozcoE3ETJHP0gdvNhs8uGZIFXGyl1UP+5KJGqCk/rIEAVp1ouX7q8DA3L96k WQWYM41/P2NZpjI7JaUfiZ6GOJ0mFoftdjmU4iQSpwitFv/W97HckGSlBeu4tLw4g1Na CIBKxcJBG0GrLyfboVSAC+E+FkqTiEmyscxxL2zVNmDd8NfHLA9zScd0U9NVs3AYkg6X viY5/CKUPauqRvPOFtd+FtSejvniVgMNmpeZWOTIMF742/hVvYh1sbg68ggxBG6IC9yi Og0A== X-Forwarded-Encrypted: i=1; AJvYcCX1BPe/ew+tJa64QUn5S1q+xp3wR1V8XieKvp6HwDPIKcUwblDY3os74kXu5S4VYF/W1mbnnEieKgyzeXCXnLXZzKlDlM4+i6FSiU60 X-Gm-Message-State: AOJu0Yw4DSHv4gApHllszchx0mpUOjQEUI7HEfRTl9cNsEtQoKzE2M0Q fXfcclJCMjencQa6TwzIg2yta/IAfd3skd9HB61QEc9ATEpPi48izDymBKmBrTvRkiO1L3Uq7Hr N7Mx/8J/uOtC/u5leooa/GjckSPvZ71YnGAsEiA== X-Received: by 2002:a25:b198:0:b0:dcf:56c3:336e with SMTP id h24-20020a25b198000000b00dcf56c3336emr13726871ybj.35.1712143294469; Wed, 03 Apr 2024 04:21:34 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240328095044.2926125-1-quic_sibis@quicinc.com> <20240328095044.2926125-6-quic_sibis@quicinc.com> In-Reply-To: From: Ulf Hansson Date: Wed, 3 Apr 2024 13:20:58 +0200 Message-ID: Subject: Re: [PATCH 5/5] arm64: dts: qcom: x1e80100: Enable cpufreq To: Sudeep Holla Cc: Sibi Sankar , cristian.marussi@arm.com, andersson@kernel.org, konrad.dybcio@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_rgottimu@quicinc.com, quic_kshivnan@quicinc.com, conor+dt@kernel.org, quic_gkohli@quicinc.com, quic_nkela@quicinc.com, quic_psodagud@quicinc.com Content-Type: text/plain; charset="UTF-8" On Tue, 2 Apr 2024 at 13:10, Sudeep Holla wrote: > > On Thu, Mar 28, 2024 at 03:20:44PM +0530, Sibi Sankar wrote: > > Enable cpufreq on X1E80100 SoCs through the SCMI perf protocol node. > > > > Signed-off-by: Sibi Sankar > > --- > > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 27 ++++++++++++++++++++++++++ > > 1 file changed, 27 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > index 4e0ec859ed61..d1d232cd1f25 100644 > > --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > @@ -68,6 +68,7 @@ CPU0: cpu@0 { > > compatible = "qcom,oryon"; > > reg = <0x0 0x0>; > > enable-method = "psci"; > > + clocks = <&scmi_dvfs 0>; > > next-level-cache = <&L2_0>; > > power-domains = <&CPU_PD0>; > > power-domain-names = "psci"; > > > Any reason why you wouldn't want to use the new genpd based perf controls. > IIRC it was added based on mainly Qcom platform requirements. > > - clocks = <&scmi_dvfs 0>; > next-level-cache = <&L2_0>; > - power-domains = <&CPU_PD0>; > - power-domain-names = "psci"; > + power-domains = <&CPU_PD0>, <&scmi_dvfs 0>; > + power-domain-names = "psci", "perf"; > > > And the associated changes in the scmi dvfs node for cells property. > > This change is OK but just wanted to check the reasoning for the choice. To me, it seems reasonable to move to the new binding with #power-domain-cells for protocol@13. This becomes more future proof, as it can then easily be extended to be used beyond CPUs. That said, I just submitted a patch [1] to update the examples in the scmi DT doc to use #power-domain-cells in favor of #clock-cells. I don't know if there is a better way to promote the new bindings? Perhaps moving Juno to use this too? Kind regards Uffe [1] https://lore.kernel.org/all/20240403111106.1110940-1-ulf.hansson@linaro.org/