public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI: qcom: Add interconnect bandwidth for PCIe Gen4
@ 2023-09-24 16:07 Manivannan Sadhasivam
  2023-09-25  8:57 ` Konrad Dybcio
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Manivannan Sadhasivam @ 2023-09-24 16:07 UTC (permalink / raw)
  To: lpieralisi, kw
  Cc: andersson, konrad.dybcio, bhelgaas, linux-arm-msm, linux-pci,
	linux-kernel, abel.vesa, Manivannan Sadhasivam

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 <manivannan.sadhasivam@linaro.org>
---
 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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-09-27 13:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-24 16:07 [PATCH] PCI: qcom: Add interconnect bandwidth for PCIe Gen4 Manivannan Sadhasivam
2023-09-25  8:57 ` Konrad Dybcio
2023-09-25 10:33   ` Abel Vesa
2023-09-25 10:34     ` Konrad Dybcio
2023-09-25 10:37       ` Abel Vesa
2023-09-25 10:40         ` Konrad Dybcio
2023-09-27 12:58           ` Manivannan Sadhasivam
2023-09-25 10:35 ` Abel Vesa
2023-09-26 21:08 ` Bjorn Helgaas
2023-09-27 13:04   ` Manivannan Sadhasivam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox