Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1703514rdh; Tue, 26 Sep 2023 00:22:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcSyGTrG5B7NPPOiBP3jtYnlIDH+vVIInXQeVi5l0Y4SGNU2Nil0ROEYle+VRIEI6YQ3Go X-Received: by 2002:a05:6358:912:b0:134:e631:fd2b with SMTP id r18-20020a056358091200b00134e631fd2bmr9539710rwi.0.1695712941462; Tue, 26 Sep 2023 00:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695712941; cv=none; d=google.com; s=arc-20160816; b=WS53i56jnCkDStqK586jyRoFik50qu3Eg/+HC6wLgXN2O7Pu/cC6eTyphwa0pw0wHp xUbnX1P0nB6OueMBaGb0AgXxsGDhRilDsXuD7xzYCOyu0gk7+thPseA/jXl2eVtOs6qE XKpocBRu7iy9ISpb7CT/2562z+1otPzUhrfek8gCfjHSzPIv2H7r9uTmCbmtp7/lpV6T kAIAvxz3hdPoIrvtH0A3pJxkJJNS2w64ApV4TuI4YLdLB3+GvGOjeRBqX+Hc5Mmz+CFm hV3A3Wv18f99TUV6drDZUkwKQlphTDw4JbJyRJIfgR+CKNp5t2i/80mbb2AjKZw0Jhkp YL0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hZyhdDrJV352zjI8Tuutto6xY83e30C6wGWItGEl1bg=; fh=T07uSXkuCwcK0/VovzVoEbELxkq8RRxrPiKjhxWaRwQ=; b=ng/nZfMKpjKUyQf81NANXP/oPfMovPjff6VRvyZJaaLOqJ/kUWrJ45by+0zuBPaViR odbmOkHsUDfEkqSEGLE/GKV+yQl3V9pR5Eh2kzB+rg4CcteMwdMILUtosuuYgc3j4CPu uA7QoSkrwcVcqYXiCs3ES7fXhuCCgEjVCTcgTO+aiCaShEtX6GEamTCvZvet48cJOXyS YxBM8PXWGoHuvyn+NKiS1K+LAzyuUvFtpKfpelNGBto+/vGyPwoRk4KdSK/trgo36fwL hBKmO3XOdLKzotg3UtRRnKdEI36Xkr+vkNygUsTpVy1WIc/OjcSJucILPGzqmcStGVok gCYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cko3Tcz1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id w20-20020a63fb54000000b00578a7f53bacsi11583114pgj.777.2023.09.26.00.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 00:22:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cko3Tcz1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A56618317E9C; Mon, 25 Sep 2023 03:35:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbjIYKfe (ORCPT + 99 others); Mon, 25 Sep 2023 06:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231706AbjIYKfb (ORCPT ); Mon, 25 Sep 2023 06:35:31 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54094E8 for ; Mon, 25 Sep 2023 03:35:25 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-532bf1943ebso7323294a12.0 for ; Mon, 25 Sep 2023 03:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695638124; x=1696242924; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hZyhdDrJV352zjI8Tuutto6xY83e30C6wGWItGEl1bg=; b=Cko3Tcz1hPAvoCWT0LFyrSyw2JNb+XIk2AA5M4bqa2S3pRHfUi+RkWZOZIouvjKGjc /GBmiTfosyLk3ng4C6mfvHnsqGkEtXshqLDq/oUO5cyAVdAjg7Q0cjnD6iRh7o+yQGa6 cIYfkOgVWLa35TzFsW5Fuf1HElRsia1yqQbeVr+PCZ+oRg4s9ApFJu+KUE742rGK00fv 3rVHdWvfGZVu8UQGqdmUkaEwCuMUZsQjr91hG3uIT4RxcqViC8r9Rldyk+ndEnkPBoKM MG1U0eBgRgU7xyoxDzg4SLywfq7qWM08aNHBacTIGB8s4B86cWm76fBv7hjM2PH0F1PV zZ5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695638124; x=1696242924; h=in-reply-to: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=hZyhdDrJV352zjI8Tuutto6xY83e30C6wGWItGEl1bg=; b=ZXBpQykxbO+eYhoYbab+253L3iBApuGGi7+3FcxPcLwCT2iRRYTBbqSUFQMjJD2WOr w6LBNfIbgb/J+MBVGA/jB6XhZ38E4troT4hedJJtVJYtXK5CpdY+i0Rk5sRGg2lvD/Co 6D/4PeA0WTezmMAplU5TrMtccmKZaYxK45DzFyvklCYvuemMS7a8hVEGB/XGM23j/AYZ Qqr98rpz8ZuW0oSxyFM1XH7my+ST1vqdBN5Ez+RO1jQkzeo4eT8WCtyfU90Bsjzk365w YFjNwNTPgLU+UHEo+rnFdB/98++FGUahj5wJucUwv4F6gmuQmflkPM0gUlCQvA9AnoID yI/w== X-Gm-Message-State: AOJu0YwT3iwgfDjH5f1UyvfeHUm4XyYjCj9FwnVgaH+TjoxV1eDrjAHX nkO4S+NNSHxY6Lp7sEfqqGsznA== X-Received: by 2002:a05:6402:1150:b0:52c:8a13:2126 with SMTP id g16-20020a056402115000b0052c8a132126mr5599128edw.37.1695638123786; Mon, 25 Sep 2023 03:35:23 -0700 (PDT) Received: from linaro.org ([86.120.16.169]) by smtp.gmail.com with ESMTPSA id w10-20020aa7dcca000000b005309eb7544fsm5363243edu.45.2023.09.25.03.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 03:35:23 -0700 (PDT) Date: Mon, 25 Sep 2023 13:35:21 +0300 From: Abel Vesa To: Manivannan Sadhasivam Cc: lpieralisi@kernel.org, kw@linux.com, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: qcom: Add interconnect bandwidth for PCIe Gen4 Message-ID: References: <20230924160713.217086-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230924160713.217086-1-manivannan.sadhasivam@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 03:35:33 -0700 (PDT) On 23-09-24 18:07:13, Manivannan Sadhasivam wrote: > PCIe Gen4 supports the interconnect bandwidth of 1969 MBps. So let's add > the bandwidth support in the driver. Otherwise, the default bandwidth of > 985 MBps will be used. > > Signed-off-by: Manivannan Sadhasivam Tested-by: Abel Vesa > --- > drivers/pci/controller/dwc/pcie-qcom.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > index 297442c969b6..6853123f92c1 100644 > --- a/drivers/pci/controller/dwc/pcie-qcom.c > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > @@ -1384,11 +1384,14 @@ static void qcom_pcie_icc_update(struct qcom_pcie *pcie) > case 2: > bw = MBps_to_icc(500); > break; > + case 3: > + bw = MBps_to_icc(985); > + break; > default: > WARN_ON_ONCE(1); > fallthrough; > - case 3: > - bw = MBps_to_icc(985); > + case 4: > + bw = MBps_to_icc(1969); > break; > } > > -- > 2.25.1 >