Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1122002lqd; Thu, 25 Apr 2024 06:43:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuv9mIf93cPgY30x4zI7JnQWhtANckStP/Ny6W8iYzKr1JfSWsxzZQ+sOtTpzCK4/dB+nxpChkt2bpkvF94Nibd8YL5bGr4CD2RfuUhw== X-Google-Smtp-Source: AGHT+IF4f+PqrGq/4MppcO8zmdlQYQVnMp5Qt6sseD3ZPPMP5pVt2sGyaaCaw8+7OzXG7qlNGuTz X-Received: by 2002:a05:6871:72a:b0:23b:50be:6b21 with SMTP id f42-20020a056871072a00b0023b50be6b21mr2615578oap.18.1714052607157; Thu, 25 Apr 2024 06:43:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714052607; cv=pass; d=google.com; s=arc-20160816; b=p6mH8s/u76AbVlvKb3+zRglYVkVQURqrr/s+n4gnz8JniLoT8Ruj7rprT9rWyNS6ea 8hNHac7vrzzj8zsBdcGc4fFX69vG8XthHpOeHydht5/ggqgjStO2T6jjB6yPIT7J8cdL /EsFBVwBzUMl7uC024X/rlICcQKui+XsQ1vCIxST81z+SIIHku0hsx9X0W8hbwyNYnF9 8OexweTlXdRs5NLzoA+zIE1q3Hk1qhz8Hfc3UZx43T5Oe42HQOqMw8UlA0fU2VuIJJRH F8NtiKYMbSUeONhDFgzz48vaMrw+3o3OcWD5hUZqUEIoQMg7S93Rl4o0VxOMvYs0VeqC 394A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4rnjNjenfTwjulfe8NiDD/HuQ2B2O5By8Tzxa2258wk=; fh=V7Qmyq0Pkg0Fjq31CmQ/daRmCwYfpREJjQr8WpCZhrc=; b=G7ZYecnMVmlNnALgrsEvBsDcjT5NOkg5+yPhGjs81+lVeuxL0JPDKrIwPpa2eSxP8j Ok+Eamifuvn9rB/BA4dLHfA9PrwFuto2qKZdah1WnJZxs3dDgfMT5AQjSrgLUirvirBs EOjb4CJiIUGZiRXQ0HpWOK0AuiMzgJV+5xIg6rqqhOuvbAHnBGDDsH+g6Q9Mxy9wV0DG T5iil16e/6kAkxUV8tLawf5ynlwRD3+nzuSDaVtecxeMafYYDbwFmRJ8PR0qS2yB02q9 M2uVlQHKGKw291lt4InMCLKOa65+J6xhcEdWvQGCJICr6QX9AnvxYn+NLXAktNtsd8SU 6EBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vo9XqYqo; 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-158594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x6-20020a63f706000000b005d2c05c7039si13433937pgh.865.2024.04.25.06.43.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 06:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vo9XqYqo; 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-158594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158594-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2CBA7B24837 for ; Thu, 25 Apr 2024 13:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39FDB149C76; Thu, 25 Apr 2024 13:23:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Vo9XqYqo" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.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 F1A39149C58 for ; Thu, 25 Apr 2024 13:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714051422; cv=none; b=UGedk15WHb7l8wc3U3Zr5wdeLclQfTqEZTU5CKE5DYa7eXpsK7+UklFVXdllpVGb8yFldHHMpXs9O4K8mj04L+g0uqrug6MId7L/g8OACuiENEjwq9IdGLsnRXfwdHCzu0bEhg9nvxHf6EKty7wSm4KfAl8YhkjwFIp13Y7Tc8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714051422; c=relaxed/simple; bh=2BTXCw+6vC31dUTeKdIMEsyHikhtPpKJtrh+xSZfBw4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VOSp0NUk77EegX4OLNwVEjJBKas1U1EaZxW+bq+llelof7fG6nqXz+7o9AL4DnvqhxQNiBsdk8ZAfHGv8Ht+i7mjKg7QMO1YOdXn057OT0dT3TQHpIhTWN8bbc/RTt6Ng3ZOPd/pqIkzRLXDUAnprQFsNcAawkRdmaaWX/6vh4w= 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=Vo9XqYqo; arc=none smtp.client-ip=209.85.214.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-pl1-f173.google.com with SMTP id d9443c01a7336-1e83a2a4f2cso6092655ad.1 for ; Thu, 25 Apr 2024 06:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714051419; x=1714656219; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=4rnjNjenfTwjulfe8NiDD/HuQ2B2O5By8Tzxa2258wk=; b=Vo9XqYqoAROOZqvz61KFpl+urz4JiLx956pPWW4FPoxDEG4H3DvcHq0UAnfwhSNEtd AyXrI1brYqlRXtBFRWHwdAcxRL8IqfIX1s1iWk1WYzs1e9d5gkC0SWtRdlPXMuG0sIIT FiaY8+zsSmJeBg24kNUE7cj2nDFp8b9HIEiE7cDGrDzp6C/OgM1Ps0BHu85MMQOIWcv4 oHTQrP/goYXTHj8xNc6hWZtn1ZNL8nwOuzoO0UAbYVMxhXF9zZ1Vm+egZSMxSt9+POwp mQNFoOcYwsmJlNVaECahwu05OpzI9x1GJbsLtdX2hw3IPHtpzz738DPHKfjtdmrHVM2K ojyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714051419; x=1714656219; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4rnjNjenfTwjulfe8NiDD/HuQ2B2O5By8Tzxa2258wk=; b=XBKdq7j79H7JghgNYUOUkq3GwMQJ8IPCWXYb1vfqBhz/TedEmwpgUirXNfVThvLeCo f3ImjkBbTeEoK7S632R8yb+p5E+PiJcEeVvXOuh0mtBcWqSs2O8Z0WZnRK/KPrXbPWrD WNmV+wMuusiBPx7EurPpdvBXV6gd/9kJO6bFyFU5KDWDWmh04hUA+hhq5uIJTNkcVVX/ ZjFEQSe1Hm+0xfUuTmH19EUvO1ESMbM9OOY4PWdjTq2HNNdsXirus/fvafFFwqrs9mCa cTcgxKTEzex11LGdwIljcSauJPU/XtRJ3qMD3dzIRrRx86zH9jtDn7YqememeBbEXZRn lnPQ== X-Forwarded-Encrypted: i=1; AJvYcCWzSXLxUg+/AmZE6aSsBqfq0zrXMxgP7NmD6B57TBV2KsrUQY3tGJsZiJuhS/FsHNnDmKKA8DfapZsH5V3j58g0wFKg6jc5HSqqx1UL X-Gm-Message-State: AOJu0YxfbnURM5Pd3rgpjeR9pluYvb6IOL9dhTYXhJNrbNMBJactOm3D TB0YdG2QdHKEJjEWfJ6jtVSl1Wa7SdFAfmmEO6XC7XiyBmt5tD3fj79CJzQ7Vw== X-Received: by 2002:a17:902:edd0:b0:1ea:2753:2b9f with SMTP id q16-20020a170902edd000b001ea27532b9fmr5225787plk.20.1714051419049; Thu, 25 Apr 2024 06:23:39 -0700 (PDT) Received: from thinkpad ([120.60.75.221]) by smtp.gmail.com with ESMTPSA id d8-20020a170902b70800b001e4fdcf67desm13749895pls.299.2024.04.25.06.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 06:23:38 -0700 (PDT) Date: Thu, 25 Apr 2024 18:53:30 +0530 From: Manivannan Sadhasivam To: Krishna chaitanya chundru Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , johan+linaro@kernel.org, bmasney@redhat.com, djakov@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, vireshk@kernel.org, quic_vbadigan@quicinc.com, quic_skananth@quicinc.com, quic_nitegupt@quicinc.com, quic_parass@quicinc.com, krzysztof.kozlowski@linaro.org Subject: Re: [PATCH v11 4/6] arm64: dts: qcom: sm8450: Add OPP table support to PCIe Message-ID: <20240425132330.GD3449@thinkpad> References: <20240423-opp_support-v11-0-15fdd40b0f95@quicinc.com> <20240423-opp_support-v11-4-15fdd40b0f95@quicinc.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240423-opp_support-v11-4-15fdd40b0f95@quicinc.com> On Tue, Apr 23, 2024 at 02:36:58PM +0530, Krishna chaitanya chundru wrote: > PCIe host controller driver needs to choose the appropriate performance > state of RPMh power domain and interconnect bandwidth based on the PCIe > data rate. > > Hence, add the OPP table support to specify RPMh performance states and > interconnect peak bandwidth. > > It should be noted that the different link configurations may share the > same aggregate bandwidth, e.g., a 2.5 GT/s x2 link and a 5.0 GT/s x1 > link have the same bandwidth and share the same OPP entry. > > Signed-off-by: Krishna chaitanya chundru Reviewed-by: Manivannan Sadhasivam - Mani > --- > arch/arm64/boot/dts/qcom/sm8450.dtsi | 77 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 77 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi > index 615296e13c43..2e047aba220b 100644 > --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi > @@ -1855,7 +1855,35 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > 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"; > + > + /* GEN 1 x1 */ > + opp-2500000 { > + opp-hz = /bits/ 64 <2500000>; > + required-opps = <&rpmhpd_opp_low_svs>; > + opp-peak-kBps = <250000 1>; > + }; > + > + /* GEN 2 x1 */ > + opp-5000000 { > + opp-hz = /bits/ 64 <5000000>; > + required-opps = <&rpmhpd_opp_low_svs>; > + opp-peak-kBps = <500000 1>; > + }; > + > + /* GEN 3 x1 */ > + opp-8000000 { > + opp-hz = /bits/ 64 <8000000>; > + required-opps = <&rpmhpd_opp_nom>; > + opp-peak-kBps = <984500 1>; > + }; > + }; > + > }; > > pcie0_phy: phy@1c06000 { > @@ -1982,7 +2010,56 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > 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 1 x1 */ > + opp-2500000 { > + opp-hz = /bits/ 64 <2500000>; > + required-opps = <&rpmhpd_opp_low_svs>; > + opp-peak-kBps = <250000 1>; > + }; > + > + /* GEN 1 x2 and GEN 2 x1 */ > + opp-5000000 { > + opp-hz = /bits/ 64 <5000000>; > + required-opps = <&rpmhpd_opp_low_svs>; > + opp-peak-kBps = <500000 1>; > + }; > + > + /* GEN 2 x2 */ > + opp-10000000 { > + opp-hz = /bits/ 64 <10000000>; > + required-opps = <&rpmhpd_opp_low_svs>; > + opp-peak-kBps = <1000000 1>; > + }; > + > + /* GEN 3 x1 */ > + opp-8000000 { > + opp-hz = /bits/ 64 <8000000>; > + required-opps = <&rpmhpd_opp_nom>; > + opp-peak-kBps = <984500 1>; > + }; > + > + /* GEN 3 x2 and GEN 4 x1 */ > + opp-16000000 { > + opp-hz = /bits/ 64 <16000000>; > + required-opps = <&rpmhpd_opp_nom>; > + opp-peak-kBps = <1969000 1>; > + }; > + > + /* GEN 4 x2 */ > + opp-32000000 { > + opp-hz = /bits/ 64 <32000000>; > + required-opps = <&rpmhpd_opp_nom>; > + opp-peak-kBps = <3938000 1>; > + }; > + }; > + > }; > > pcie1_phy: phy@1c0e000 { > > -- > 2.42.0 > -- மணிவண்ணன் சதாசிவம்