Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp785976rdh; Sun, 24 Sep 2023 11:41:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF35afzbyN/aU6y4dwWjs1O4sla7hIqBFiSYJc7G1r0iT3xIY+nFEBFwjYlG/sGs2YGuEFY X-Received: by 2002:a05:6870:891b:b0:1d5:cdf7:bda9 with SMTP id i27-20020a056870891b00b001d5cdf7bda9mr7489660oao.41.1695580886829; Sun, 24 Sep 2023 11:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695580886; cv=none; d=google.com; s=arc-20160816; b=sxIRgTwT7mvMYbT+rrv+8dH2HBH749efQSxaksRgaDF/g+yqXJxnkntY47V7/vA4Mc kuBvcLyx+fiV6HE1naW4bZc2NWVXA6bxwbGqCsRklyzb4h/8MvY92Wbq1vSJyxWjFNj8 8Mr4g9cktZQhLVQZ2pbU3YmjKBmgUX1o3mxwIip2sFPLjEl6wfC6uKzqFLwL5nwnqpPY 4c4Ljh7c49AsE6PREypIzPRhZp4ervUjsyVWuNA6elY6j/ijbtpBKzdQ01wXph8Gab6R vGNP3gYG8oIjN5L6GauZSSJe5WGg686kWTfCuULb5ZJ3saDhWjKDMDhzfQlx39/M5DDt lYdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aeckoQ9VJ6OdE5PMGKcILi8nW1PsNTWbedGCSVfgmYk=; fh=AGN/tYtQjW7mdZ75nxqNDap8wtPE9BlC41CQHrUz6ag=; b=PGn4ckwTOUOEgZMCFul/XKa7bFPi4DS8w4yfH50npO0APww7IFqVq3DyemF3P8935l QLiZL7zSX0Tw8T9n1nsoV/hOFOgs1EitFVPxt5DN5OzaW9T8/XSPQi4vt5h60sjdNW+p nQIvliSblwYj89Mnin3xNU+9WOQTc4sZVWH60STlEivzxgH8L5lEpXvnkiu37COyVsfX X6mZP47LTeB1V3mH7sxFMzEgyEtG3NmrESJ1JsHO/wM6VoqT3vmesy/ywisw2jAfUuOW EDMTT3z9n+Cu2UkINpFrm/MGw+kT/t4uujnU3jzW0Q+OsjY7d1kvLdjDrNpLGvPNrFm5 irgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pM6RtUZ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bk13-20020a056a02028d00b00578f7063ae7si8228039pgb.682.2023.09.24.11.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 11:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pM6RtUZ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id CB7DF8197018; Sun, 24 Sep 2023 09:07:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjIXQHf (ORCPT + 99 others); Sun, 24 Sep 2023 12:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjIXQHd (ORCPT ); Sun, 24 Sep 2023 12:07:33 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA258F1 for ; Sun, 24 Sep 2023 09:07:25 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-99bf3f59905so601273466b.3 for ; Sun, 24 Sep 2023 09:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695571643; x=1696176443; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aeckoQ9VJ6OdE5PMGKcILi8nW1PsNTWbedGCSVfgmYk=; b=pM6RtUZ4Xtu65BKrhuaRLnqteAc8odjhJPgScTI6jG3b5rHRIMk1x/ldvs/TAL+q9K XtYxIyFwMhVLLwIMB7bVti5sEacz2JtKOSgIlMzgkU7OWcuJOtiQbpMyGNRpIoENv5rW ScE8zK/sgAmo1/ijQtC4qUvrOHdZExq+JwrX/xIVBE0bV22hALrP7zc+VvTwFgANDaBA S+MTaWHUBZ2Mo6bwEqdVytt6PRfnhOsPmOH0jnTH7/LooVuCKr/9FIYYVQpoh6sdAdLJ 5ZHN2jZCVwI6c0Ec2pD1ykA18jxxe7RfUXXK/8tr4+W5mwT6P7/q2Q1dujZhr1itfY8g vMFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695571643; x=1696176443; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aeckoQ9VJ6OdE5PMGKcILi8nW1PsNTWbedGCSVfgmYk=; b=oVVqt6R3K6lZGIFhqE6vQZQjvEGT1QTrABb1y/Y1lU03l7jta46a1xze0uCZIBSeKS TunRdtk/gsC4q3fnASCrlRygwmAzWUM9gKwPqw9W0gHxnGdk/1bRzizxYDdZ1yfQuJrA 9cJiirmMxvoSHSKJdmxAJXdnSK4Pm3relwUyECmwy4MlEyzGTHA8gXJihLLGIPT9o4KA LJAsjlFM9iGJkf6vBWv5uhSLQJIxac86a48cxALfK9/UcXtS/+DSJZjUg1x2Tk4tafLE ewuJstG0l+lH6Y7kVI5qR+imFDMTVa8xvQjd7iueEHVxlDelc2OpJi5biaQ+QJy+mSN8 ueHg== X-Gm-Message-State: AOJu0YwGP43UkTh+Wh3Q+8D6MOOc5CXjLZCcBX6FYT0NMUSWSdn6ehnP kvHR0geMBhHmSVRqZBRl/8M8 X-Received: by 2002:a17:907:6d29:b0:9a5:b1cd:bdf2 with SMTP id sa41-20020a1709076d2900b009a5b1cdbdf2mr4006180ejc.51.1695571643552; Sun, 24 Sep 2023 09:07:23 -0700 (PDT) Received: from localhost.localdomain ([2a02:8108:8240:1578:d967:4cf:6d0e:a066]) by smtp.gmail.com with ESMTPSA id r11-20020a170906704b00b00999bb1e01dfsm5155345ejj.52.2023.09.24.09.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 09:07:23 -0700 (PDT) From: Manivannan Sadhasivam To: lpieralisi@kernel.org, kw@linux.com Cc: 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, abel.vesa@linaro.org, Manivannan Sadhasivam Subject: [PATCH] PCI: qcom: Add interconnect bandwidth for PCIe Gen4 Date: Sun, 24 Sep 2023 18:07:13 +0200 Message-Id: <20230924160713.217086-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 agentk.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 (agentk.vger.email [0.0.0.0]); Sun, 24 Sep 2023 09:07:48 -0700 (PDT) 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; } -- 2.25.1