Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2326575rdd; Fri, 12 Jan 2024 06:25:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBbVOd5fiJQX3Z9UGFfM8mGsnBhuc6ajEwcKbTwER1PU2jldsGzCNwHxYjxW5sxSuPKkQe X-Received: by 2002:a05:6122:4491:b0:4b6:c9fa:d8e0 with SMTP id cz17-20020a056122449100b004b6c9fad8e0mr1417249vkb.15.1705069509117; Fri, 12 Jan 2024 06:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705069509; cv=none; d=google.com; s=arc-20160816; b=saf9M0HA+YYJn6nyPH/OUGzkigHA7ShVMgbDXaU3majj/0cueDxNPRNm52p2clbf4B RCpTpNSlmOpb/+sMPRHJvUB2W82wC5rImeUMQmMvUYWRXPlvf6GmPPPG5a5iqgUqJxor sRUtf9IyuvHAp6/TKjnjzC2hQVai071yDUOEMsmtJlWD22NG81m4/qEOWe+oYF2tOOCs dT905qkZcvOHwG86vbp0Ck3og5iCLQXU7d4xEzCrxXDwoLMedHDr4xXQ8z5/T+u8liFb wnhqAGgVomjwISPVz/Uvw9MGd7JdGj3A1AAVZGJg1TmHFH8HBaU0Fy0X5xShO5TRLNWA lDeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=j4G+WA6H+z2u1MOFTfSX+TMcgfWW0vSaHHxynkn1f6A=; fh=qy+4K2Our8FgIwRPsvePEWc9yS5HV+GOlB0H/jQK3pI=; b=YnuyeeZaV5MKf00m8RFpBuCs+eSZR1ESJR1QNJs4tKS/wlq7M53SF1WsV8CblnOjxm Cb1pqVvrbcnNL5Z+KgMFzVVgyDVDiUOZc85MjCtTlSygZhScOJUjfvlLw4eTs+WSEfJu oFnCK7YK1doT7oEGQKSFwlT4nDU9aUAYomm3baNRKxmSqkzUrJXi7kHyQZJHyRcHNfs0 v7IzTkxF/T2/aLASFdXdjWF8rquq6BwhJCNtskGCBeWOeY64vzLl5Dx5UUdjz1mjvoQ4 tfkBsjISO2OOsFMWbquXyXgphBvaJKLLg8gvKB9lFYL6W/gyqC1gGuA9EJpOK0r15aDN Raiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z3omn30K; spf=pass (google.com: domain of linux-kernel+bounces-24739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24739-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fv10-20020a0561223c4a00b004b6b37dffcasi585986vkb.310.2024.01.12.06.25.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 06:25:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z3omn30K; spf=pass (google.com: domain of linux-kernel+bounces-24739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24739-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E84671C23E54 for ; Fri, 12 Jan 2024 14:25:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A431A745C9; Fri, 12 Jan 2024 14:23:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Z3omn30K" 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 6C6447319D; Fri, 12 Jan 2024 14:23:00 +0000 (UTC) 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40CDkHbi003103; Fri, 12 Jan 2024 14:22:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=j4G+WA6H+z2u1MOFTfSX+TMcgfWW0vSaHHxynkn1f6A =; b=Z3omn30KYPjovH9XV1s17qTQSU0TcMqKbWJBEC1l6V9TRWCSV1stzTy9jNE 4O7OE2vhMgpglrIdDeaE5WEym8dgP/7rjdcWHD8OVV8WeW2p01MJFTpFhvDeHF9J 7+QuJMjfpSu/gsEs5vQEesDk1e/9DfjDxndzZfKDigbwP/VkauCNxL36zA1YS3PR uTlGuCuNqEn2I89az+1eogK1VgWCKU4klz9oj2RLtOlSQrOUOkKJpLHVfnbA3t/Y avGf0grZc2RxkBrG0vC5KJUiVI2Lxttzks15rPweJ4oB7qSdAR2bV0jCAXshmWkJ +1YUXWKBdNkcYzJrBYb8NL7MWKw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vjxm61cee-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 14:22:52 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40CEMpkE011743 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 14:22:51 GMT Received: from hu-krichai-hyd.qualcomm.com (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.1118.40; Fri, 12 Jan 2024 06:22:45 -0800 From: Krishna chaitanya chundru Date: Fri, 12 Jan 2024 19:52:04 +0530 Subject: [PATCH v6 5/6] arm64: dts: qcom: sm8450: Add opp table support to PCIe 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="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20240112-opp_support-v6-5-77bbf7d0cc37@quicinc.com> References: <20240112-opp_support-v6-0-77bbf7d0cc37@quicinc.com> In-Reply-To: <20240112-opp_support-v6-0-77bbf7d0cc37@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , "Lorenzo Pieralisi" , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Rob Herring , Johan Hovold , Brian Masney , Georgi Djakov CC: , , , , , , , , "Krishna chaitanya chundru" X-Mailer: b4 0.13-dev-83828 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705069333; l=2841; i=quic_krichai@quicinc.com; s=20230907; h=from:subject:message-id; bh=RMnP1bdNK1DezTCxGRjwUdBefOUt/X+4pG+8HyONd6U=; b=W7T17uLS2amXxp+U9WGi+pYdlzzbQI5VJJOjKhDxGrG0842agN0+hcSgU2AdI3hNgspoZpRn1 dpE9EagvshJCS1UR2MNrYlwC1F6s01Wvfv2uAxZRJfGo5O8+GFu0XAt X-Developer-Key: i=quic_krichai@quicinc.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: AihO6zI7mrFbCN2RryjQXXgwi8UK0mIJ X-Proofpoint-GUID: AihO6zI7mrFbCN2RryjQXXgwi8UK0mIJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=747 clxscore=1015 spamscore=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401120113 PCIe needs to choose the appropriate performance state of RPMH power domain and interconnect bandwidth based up on the PCIe gen speed. Add the OPP table support to specify RPMH performance states and interconnect peak bandwidth. Signed-off-by: Krishna chaitanya chundru --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 6b1d2e0d9d14..eab85ecaeff0 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1827,7 +1827,32 @@ pcie0: pcie@1c00000 { pinctrl-names = "default"; pinctrl-0 = <&pcie0_default_state>; + operating-points-v2 = <&pcie0_opp_table>; + status = "disabled"; + + pcie0_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-2500000 { + opp-hz = /bits/ 64 <2500000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <250000 250000>; + }; + + opp-5000000 { + opp-hz = /bits/ 64 <5000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <500000 250000>; + }; + + opp-8000000 { + opp-hz = /bits/ 64 <8000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <984500 250000>; + }; + }; + }; pcie0_phy: phy@1c06000 { @@ -1938,7 +1963,56 @@ pcie1: pcie@1c08000 { pinctrl-names = "default"; pinctrl-0 = <&pcie1_default_state>; + operating-points-v2 = <&pcie1_opp_table>; + status = "disabled"; + + pcie1_opp_table: opp-table { + compatible = "operating-points-v2"; + + /* GEN 1x1 */ + opp-2500000 { + opp-hz = /bits/ 64 <2500000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <250000 250000>; + }; + + /* GEN 1x2 GEN 2x1 */ + opp-5000000 { + opp-hz = /bits/ 64 <5000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <500000 250000>; + }; + + /* GEN 2x2 */ + opp-10000000 { + opp-hz = /bits/ 64 <10000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <1000000 250000>; + }; + + /* GEN 3x1 */ + opp-8000000 { + opp-hz = /bits/ 64 <8000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <984500 250000>; + }; + + /* GEN 3x2 GEN 4x1 */ + opp-16000000 { + opp-hz = /bits/ 64 <16000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <1969000 250000>; + }; + + /* GEN 4x2 */ + opp-32000000 { + opp-hz = /bits/ 64 <32000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <3938000 250000>; + }; + }; + }; pcie1_phy: phy@1c0e000 { -- 2.42.0