Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1092685rdh; Mon, 25 Sep 2023 03:06:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyRaawnVL9pWuZQtI5qtg3b86V38ZYcnSRmd5BSftEaeBK315Vwz48WNLlB2R6mEQQJYqj X-Received: by 2002:a05:6a00:2d8e:b0:68f:c1e0:a2c4 with SMTP id fb14-20020a056a002d8e00b0068fc1e0a2c4mr18045063pfb.3.1695636388366; Mon, 25 Sep 2023 03:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695636388; cv=none; d=google.com; s=arc-20160816; b=NQH3TkEDuuNRfN3PsAjklLQVD8cd/2X4Uovon0Jd7dqHCKrciNrvjYrJdSBhTxnore a94fn2FRTfJMFZW5ZMQTgLl+gcPwOHOAV5c2zq8uq3jeGys3oq0o6tSB7BYzg0j4H/ej jm2ynmOxGUqEBQJoMTSB83GmSfeoVguYZHaN0dnEqTjyJggqyn238AcWQgSdasb/SlxU w654MCPVBwg2pap71yY+c5e8OuoQhSzUR8yndLJFisssRdwYNl81LyRZcQtWrKNPu7Zv S935hHIneFG1g1Cy9V5i9O8TxCRrIui8bjVLx0GxW57DyN7ulLw9XaP+2d7eGHpAcEnX H0WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=WQmd5YE9MyP7uhp/mbVtxmJE/LKRazeYO5qAyNu7Lqk=; fh=x5b8+TQr+ZfNT5tuauhsyXZwC5Xfg+omrmuywlYfLlY=; b=nAUUdr63keeYDLDPch7yHY/h7qxPwpDony75/kyqwPIF88VsQAQdPhk4txTLdBXV30 YvGv6E0sqPmngvQKVjByRmNuF9WDaCemXMXh3ZbfYxfFlSG0amFisyg5d/yuI/CxSxWG DOLJ28X9PEQ7k4o2v0t6Y0fWyX6NQU9YKRZZ/yNSgbsx9+lGQg4ASdae+eX+vP52LQb6 t8TglJUBOygm8U1Mc1higl7Qd5Hw120thTyi0EZlirKm6Z4B0bFeC3XT4BbB5j4Y00rH pjPa7CxegMF40DnyiIIso85+s7UAK0DCasnE0KBjcSQnCVs8/vETzsyXNcolehAkNvv2 RPpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yqNdFd6e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w8-20020a056a0014c800b0068fe2d990a1si10096804pfu.299.2023.09.25.03.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 03:06:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yqNdFd6e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 3FDD780740E3; Mon, 25 Sep 2023 01:58:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232959AbjIYI6B (ORCPT + 99 others); Mon, 25 Sep 2023 04:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233081AbjIYI56 (ORCPT ); Mon, 25 Sep 2023 04:57:58 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43829DA for ; Mon, 25 Sep 2023 01:57:51 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9adb9fa7200so1365931666b.0 for ; Mon, 25 Sep 2023 01:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695632270; x=1696237070; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WQmd5YE9MyP7uhp/mbVtxmJE/LKRazeYO5qAyNu7Lqk=; b=yqNdFd6elqHeZ/VzaU3DVx3mmkE7N/ozgSPhUR32vhuLerAWqt9THi7N8w2lKuyGwB AU4rEVgTzwigBFLSWSv6r3C83o6I+YZqLEOATjwPdnNothEdzFh7f/AM1f877CUxaNXP NoTVbtZniDFxc9xgtRCLjgIeo2Chi3PpOkRHhhsb9JLnEoos2XSymxGQEfycriczH0cb nWN6cLQ/d7jO20XBbl+SZySG5rQ/nm2R7ZhCK4yZvAiKTDFt33QSXjFVmJsGx5NFp6qX /9NoN0AIyhefNzc9yjl2TMUQ+Sw3jvdQnrcAL7Qb4hsg+wARO1rxvMVm+1JGjRgu2KHN dUXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695632270; x=1696237070; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WQmd5YE9MyP7uhp/mbVtxmJE/LKRazeYO5qAyNu7Lqk=; b=VYLtRHC9FgY+lP1tm3Xf6x7vcOnT7M8dwOE/QQ7FYYN9kRzKD+pWXbwJobO2lM3Yfy oYcWryeB/CkuebhCBH7TR+o12nULxdjXIIfZu82/chzVO+Gn2p2nhET9fF1766Uj47f8 MZtItPjIE3QPJt59ypFGs8npORIlw5tu/MM3VdmEM1wpbM0XCeetx2xBBb/UMc2DBGlh QyCFVx9Ay3sBKVUeMjyFIFO/ivQjHzo4/zNLWdAV6I/KsRGVPsReB0AhoUHZE8Wm/iBI 5+SSD96wecPs6Jj8vlMp/q/Ihrz6wNAZa+7NcX7x+nZFKhnFs+zwmgmzzx3nSi7mVYH/ eBhw== X-Gm-Message-State: AOJu0YwxETbaiLYCl7H3Gywr4oFEyGVB6DTHRxw2exf7iiACXnr/poTz eYUFYg/IZLbsWLkQbmkMf2W2dQ== X-Received: by 2002:a17:906:4fce:b0:9aa:206d:b052 with SMTP id i14-20020a1709064fce00b009aa206db052mr14447299ejw.27.1695632269683; Mon, 25 Sep 2023 01:57:49 -0700 (PDT) Received: from [192.168.101.165] (178235177023.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.23]) by smtp.gmail.com with ESMTPSA id s25-20020a170906061900b00997d76981e0sm5952185ejb.208.2023.09.25.01.57.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Sep 2023 01:57:49 -0700 (PDT) Message-ID: Date: Mon, 25 Sep 2023 10:57:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] PCI: qcom: Add interconnect bandwidth for PCIe Gen4 Content-Language: en-US To: Manivannan Sadhasivam , lpieralisi@kernel.org, kw@linux.com Cc: andersson@kernel.org, bhelgaas@google.com, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, abel.vesa@linaro.org References: <20230924160713.217086-1-manivannan.sadhasivam@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/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QL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20230924160713.217086-1-manivannan.sadhasivam@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 25 Sep 2023 01:58:06 -0700 (PDT) On 24.09.2023 18:07, 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 > --- > 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; Are you adding case 4 under `default`? That looks.. bizzare.. Konrad