Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2321644lqt; Mon, 22 Apr 2024 07:45:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDfE00iIHW1qVVR/Yvu9H3bP5cNhL04yqSvDBqCvjO7tdIheVhh/5eRPJp+E1NMr97JtdzcKadxjdB4vi8pHWGq7t7M13/K85MTN6edg== X-Google-Smtp-Source: AGHT+IGUxyb7IatpcTd9o4mhwK7yyudgAd+zRfGoF5trLeZ6r1QygK0fdoYrjDUI9RO2RWvDy/fg X-Received: by 2002:a05:6a21:3a44:b0:1ac:3b81:2b5a with SMTP id zu4-20020a056a213a4400b001ac3b812b5amr15545044pzb.8.1713797127673; Mon, 22 Apr 2024 07:45:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713797127; cv=pass; d=google.com; s=arc-20160816; b=ZW+Q5py+IQpi5VOSMLyqU3s7SsXFdM25a7G3IFuvvzoF0cq7k+DT+VC/OKR2gTq97C J56P5J3vWIXwf+4bxBsWOs8FXksgjU6a/UG8+D6Sb7eZP54tZAUHOHN7kYYMFepheHVJ bf5o2JVzb7a6hm33aDmR3kilDypsjzcRLOyAR/zvm3xn1IjZdYWxV5nE0L+hX2d/GvJo qLCdtZAdSLsdl2JEJzopgLOVjTP72qDB4r+Fs4NG3IcED1+1gVjUwOQfyTsazqWt+h6F Ill8XPSjH2CbLe6rBPMwVeu3WKwsxcOEl8MUBTzcjBHD41NJELrBgp4xlM5Ehw/sx1j2 GFSQ== 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=LVRNChhXa7FZ9k90/6TDVi7/XDV6ST4jrfTPlduROb4=; fh=GwXxt4iH/GSuuRoxvlX3CqNWQkWvJhYxI+Cx+5r+UiM=; b=g1roaPbP0AlQfNd3m5iM5svdHtTZ9g21eZCYpln35RwlneyRrlSYudWUkGoz7t//ug t07n3sjHTq2WzGt32BMQ+T8El2VVOKvWD+6Skoy6ia7bNMt8WHL0ryLsjC/cCxWWFsDc QFD4dX1y2cQ8x5qa982KYzPfu+fkFZaAyv3AlhD3ghF804/INSmEPKuhKknlgOEAzNXX EvpHHZqZCmEyjEv2QmIp2njXDq5pSjofzfpKLSw5up0C0ECmvo9XHJYiD7rABKpWj3Ls 95ILuRXSdMZbPVYrjRbJfH+K3w1R4emOKj8OKBotxZwdNcsGc+xhEra0+h8HN/EpWKQj IdeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lhu3AVpL; 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-153575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153575-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 jw34-20020a056a0092a200b006f0a192b1d3si7261336pfb.98.2024.04.22.07.45.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 07:45:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153575-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=lhu3AVpL; 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-153575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153575-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 454FA281596 for ; Mon, 22 Apr 2024 14:45:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 470B0136988; Mon, 22 Apr 2024 14:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lhu3AVpL" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 DA918145FEC for ; Mon, 22 Apr 2024 14:44:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713797085; cv=none; b=YPXpxDSKBTlIVxVi9GVjhmNKQZKUiyY1zcEv5QIxWDR4A/YdePXzwnryiIgLggMiTivgNRienSyGfkJY5dni9knvqyHIvgzH6pVeLttP1ps4EQh72yYRENjlHfLYLPBPpbfFh1fWrONMdEkIfucOk8EeZ2zhJ0IYyUNpc1SdbpM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713797085; c=relaxed/simple; bh=uWsKl1wAe7kVcGq6U6naQwvSk15aE/AV9VCmlH9NuAE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YgYiXSdy9D3lwU5RrxqDxIMbeQxKgsdMXG/Uyyn3HElecp+6aTIIjH4sSdN9nZ30JzQd2DprW8Xukkl3GhZvtn2A5Xpzp06LFkg28P8W6eBJgeajAoA+QshfneATKkHjrzQcmwO5dqYyNdcrO/PEjgZOFchdwPR8c/Ho4XhZsv0= 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=lhu3AVpL; arc=none smtp.client-ip=209.85.214.180 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-f180.google.com with SMTP id d9443c01a7336-1e4c4fb6af3so29785075ad.0 for ; Mon, 22 Apr 2024 07:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713797082; x=1714401882; 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=LVRNChhXa7FZ9k90/6TDVi7/XDV6ST4jrfTPlduROb4=; b=lhu3AVpLMOqAeeqq2ozi6/Puu3pZhvDMoarqfG2GKHmJuzNQ30EBCebevlcCVbmFGF O3rz7Jq9sykVtDQ9C6ZfdJjEmZvm7LqROI+HDMhgce0EwXZd4prynwGlI99qK/ZniTG/ caRVrpqM6kLWBZbzWGDnsYf4rvFzazcjCUtMQ9iJu8giUISVtfRHAhNlhNQaU6IiNzVE dD3Qp64WAli3yVKgzAienVIfX+STTTo9hbxKJ1GpLBKteESvBoNz38NU5NSvgm1Nvpcj njle/hkn3TH0Ziyjl9eP25HGYXre6qkYTxL0BhDpPYu8YnbKmP5ekrr2YBaMEmRXwfPu zFCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713797082; x=1714401882; 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=LVRNChhXa7FZ9k90/6TDVi7/XDV6ST4jrfTPlduROb4=; b=PryGdqHZuH7zF2cTLuEL+V9iNS7GU0Y/NntNq2Hsot8asatjc4KhsHq9wapoZayYtb hcgz64B75fmh6vbEk8Vmy8uXnaVg0hOCFcBgxnac4yM+kfSG93D88b1fQig8IVZH6u3G nEBAvOPZjQTHU3rnykuN9QPtgM2nN/Ao+49JYQt3+Gs1bPTX71uE9v7W3N7Ln8d1lP7P +ZqcNXnoDRCGrEI3HHWBE/kLV2sMOCwcGPpq6Y7Zg1oOoZNlX9/aLvdnOVcTHru/e4tl VDlnGrCpp8iXn6VLrtaymezA3CuvHlpPKmv4YzDyal0Em+uOgkIoqP0TJD2yve1qKSQ/ vvNw== X-Forwarded-Encrypted: i=1; AJvYcCUcf5Idz/1f386riRZcdk73vuC8FM6PB2TdGrQmptt47lUsRW5/iir/Wm9JiYEo47URFi/3EQkzLbCJ6LKK5WJsxWWpW31jwH17ShsG X-Gm-Message-State: AOJu0Yyn7dlXORGnJj33D19p/Ax39pLVZqh3+QI8bq0P5FkfXe7CR2/W S4H2qdvGeMwtc00JLVg8APhkICQ7EyrjqoNaIn5O+Vv+5qb0TAfpUBBnaS/LLQ== X-Received: by 2002:a17:903:2308:b0:1ea:147:d4fd with SMTP id d8-20020a170903230800b001ea0147d4fdmr243785plh.32.1713797081973; Mon, 22 Apr 2024 07:44:41 -0700 (PDT) Received: from thinkpad ([120.60.70.118]) by smtp.gmail.com with ESMTPSA id w19-20020a170902c79300b001e0c956f0dcsm8215015pla.213.2024.04.22.07.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 07:44:41 -0700 (PDT) Date: Mon, 22 Apr 2024 20:14:31 +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 v10 4/6] arm64: dts: qcom: sm8450: Add OPP table support to PCIe Message-ID: <20240422144431.GE9775@thinkpad> References: <20240409-opp_support-v10-0-1956e6be343f@quicinc.com> <20240409-opp_support-v10-4-1956e6be343f@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: <20240409-opp_support-v10-4-1956e6be343f@quicinc.com> On Tue, Apr 09, 2024 at 03:43:22PM +0530, Krishna chaitanya chundru wrote: > PCIe needs to choose the appropriate performance state of RPMh power 'PCIe host controller driver' > domain and interconnect bandwidth based up on the PCIe data rate. 'based on the PCIe data rate' > > Add the OPP table support to specify RPMh performance states and 'Hence, add...' > interconnect peak bandwidth. > > Different link configurations may share the same aggregate bandwidth, 'It should be noted that the different...' > 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 > --- > 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..9dfe16012726 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>; I doubt this value. See below... > + 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 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>; GEN 3 x1 frequency is lower than GEN 2 x2? This looks strange. Both should be of same frequency. > + required-opps = <&rpmhpd_opp_nom>; > + opp-peak-kBps = <984500 1>; > + }; > + > + /* GEN 3 x2 GEN 4 x1 */ 'GEN 3 x2 and GEN 4 x1' - Mani -- மணிவண்ணன் சதாசிவம்