Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp82669lqe; Wed, 3 Apr 2024 23:33:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3LA+yGrKQ1O9wqLPKgTcD8vcYFN5qaAxsvUDBeFKd4u9RdBT3LRHyOoaI+dbUmcT/fwYIW9Da/PhnFriS/5cm9qgRK3Cu8GJ3l2SM7A== X-Google-Smtp-Source: AGHT+IEa8HcCBvqH2pXK1+EdhgQgjT/1dEjKJ9oQqlzAW6dwAGYrqzCDmb9QISFJxrh0K9dG5eCU X-Received: by 2002:a17:90b:3cc:b0:2a2:3223:1930 with SMTP id go12-20020a17090b03cc00b002a232231930mr1635734pjb.8.1712212400138; Wed, 03 Apr 2024 23:33:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712212400; cv=pass; d=google.com; s=arc-20160816; b=azP0InLgLPnGJ9yv7Y93Lh1kw8DPiZhmqJm24hMbBxknTXv7Zcad84ss0ZDochetxx ByH3ofWhnpoe+7foNXu0oqhxb0kReOci9CZCqdU7vnve7Z+7WpRjCym4brD5HF4ruw8x rkJjvuiUuGb3gSVoUoksW+ujzm92zbNiYbMMCGjumPv+XIy51QetNzoEhT+gBlat1/C3 vr0INuxO7kAtbSOv6PBkFwE8mfFlEUkFRuv6CkfJ2Vr0SDwqkFoXiLvG2/4TM+ae9rLW bYbog70Y3xYlUz0gOEgWzZYXvOoTdYRYqDsvwgp2inLalETcVbCylDx0tNt0YkFlEOXG PzOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ASwo3eh/R38HNfjkLyInf8LNYmY2dpS0uKZyDDjM+zg=; fh=GKkuKoqfIkpturTClm8GwE/+4eskmvxhVR7o8YuknLY=; b=BZo9gtauMbMGoifm+hWGaTz2ISYG1QnpSwETtpGAjgEJh48uFG7wgUW3qZkJ9wUO2i q6ClLlWSuHvLTXUIywO20rOcd6aAjaRzdtuv8JbiAZ987Oudzm+IqMaus+3fpXbYyukf ALPeN0eY6DT4HRYwur7z8oXR+ME4aZrL7yaszzoY2ELeOmE3wGVUXsBiSE9xmLlmOsIz pYtUdKQ7Wb263zx3hfbvEN1UKQBpJw2+jJ6/6d7GroeeiJj5+Pb40DknhR+mMt9yijvh D1lVksi2PPVbXw1dKq1eo/PVzF50SD+wXM7gIB9vmOKUVJF6d/YUfBCudnMnTf0bSb93 WxnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WMGB39oo; 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-130981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e4-20020a17090a6f8400b002a1fe44cd6bsi1008946pjk.155.2024.04.03.23.33.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 23:33:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WMGB39oo; 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-130981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130981-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C4249288B8A for ; Thu, 4 Apr 2024 06:33:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D799E28DCB; Thu, 4 Apr 2024 06:33:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="WMGB39oo" 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 3C3964502E; Thu, 4 Apr 2024 06:33:03 +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=1712212386; cv=none; b=sVr83Agzvr+QR1TqWdnbKZLAyNPqwwvyj2RKELASXTHYdnFbWEZrUXQJPKlMyVGPo+nczFA6FK67XJtQlAGLCcNgXFWhJi9ZrcoJYAoA7lkL/GOvQ3qCS9J35FVjZOjW+owF70ti4oYDoPuCKG1J/DsrHdG8bZiT0teZXlP+bEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712212386; c=relaxed/simple; bh=zBp7l1pCCRQ/1DG9vSOLOoejkezKYho1bTLSm2YyHk4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=KcAS2gUcVO72CBkgK2+j1XzDLxQ6adhHDY70eaZdLeQD3/3qsJ6Do46ST4Ro9BIcOJ7m3yESMHGI8RKH9qP+N73tFMoXSrcsP1VLzfCsDp6RXpC3K+tAyLWiFSjcnNNFS05Qt7gq8SBcts56MwbVd9PrjkAqtZNlV9RyhFkd6tA= 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=WMGB39oo; 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 4343n1P7009860; Thu, 4 Apr 2024 06:32:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=ASwo3eh/R38HNfjkLyInf8LNYmY2dpS0uKZyDDjM+zg=; b=WM GB39oo4b94bFPdFYjzHjRjRan4lgCZck6DNgYyfmK2vLO6IkAaCqp8PSOD7ydU9k 2lfcwemX7vuIsv8FN2iFt9pHfvtBtqjBPA2yXDu6feG9qx0vjMB5WSS0R4hy2Gjh gcd/wBzsAKHJ+5eWLjFq2ON2HokHtfqv2vEERPxIImGvH3ADHChLsoOXJn7zIQuD XNrOhYiTlKXJvadXTR/okzX44n1MNrqnL3Gy47rMSr5Mm3xRxVnsVjSd9Ff69WYz 1LmUs+nUfoS+feg+5OmzqKID++aas0j4oiVLXtjAhjmOPDWcPxGmJ3Cxyc9rOR0M /dR1zzBL8u9SMxb61QGw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x9ep0rr99-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Apr 2024 06:32:47 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4346WkRX006233 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 4 Apr 2024 06:32:46 GMT Received: from [10.131.33.37] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 3 Apr 2024 23:32:41 -0700 Message-ID: Date: Thu, 4 Apr 2024 12:02:39 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 5/5] arm64: dts: qcom: x1e80100: Enable cpufreq Content-Language: en-US To: Ulf Hansson , Sudeep Holla CC: , , , , , , , , , , , , , , References: <20240328095044.2926125-1-quic_sibis@quicinc.com> <20240328095044.2926125-6-quic_sibis@quicinc.com> From: Sibi Sankar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: MvyK8rVB4OKEYMa7xOgX9ekBbMm1As71 X-Proofpoint-GUID: MvyK8rVB4OKEYMa7xOgX9ekBbMm1As71 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-04-04_02,2024-04-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=958 impostorscore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404040041 On 4/3/24 16:50, Ulf Hansson wrote: > 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 Sudeep/Ulfe, Thanks I'll move to the new recommendation. -Sibi > > [1] > https://lore.kernel.org/all/20240403111106.1110940-1-ulf.hansson@linaro.org/