Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI: fu740: Set the number of msix vectors
@ 2023-07-12  7:23 Yong-Xuan Wang
  2023-07-12 10:28 ` Serge Semin
  2023-07-13 15:29 ` Bjorn Helgaas
  0 siblings, 2 replies; 3+ messages in thread
From: Yong-Xuan Wang @ 2023-07-12  7:23 UTC (permalink / raw)
  To: linux-pci
  Cc: paul.walmsley, greentime.hu, lpieralisi, kw, robh, bhelgaas,
	p.zabel, palmer, Yong-Xuan Wang

The fu740 PCIe has 256 msix vectors. We need to specify it in driver code
to enable more msix vectors.

Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
---
 drivers/pci/controller/dwc/pcie-fu740.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/controller/dwc/pcie-fu740.c b/drivers/pci/controller/dwc/pcie-fu740.c
index 0c90583c078b..1e9b44b8bba4 100644
--- a/drivers/pci/controller/dwc/pcie-fu740.c
+++ b/drivers/pci/controller/dwc/pcie-fu740.c
@@ -299,6 +299,7 @@ static int fu740_pcie_probe(struct platform_device *pdev)
 	pci->dev = dev;
 	pci->ops = &dw_pcie_ops;
 	pci->pp.ops = &fu740_pcie_host_ops;
+	pci->pp.num_vectors = MAX_MSI_IRQS;
 
 	/* SiFive specific region: mgmt */
 	afp->mgmt_base = devm_platform_ioremap_resource_byname(pdev, "mgmt");
-- 
2.17.1


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

end of thread, other threads:[~2023-07-13 15:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12  7:23 [PATCH] PCI: fu740: Set the number of msix vectors Yong-Xuan Wang
2023-07-12 10:28 ` Serge Semin
2023-07-13 15:29 ` Bjorn Helgaas

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