Skip to content

Commit 551a60e

Browse files
yong-xuanLorenzo Pieralisi
authored andcommitted
PCI: fu740: Set the number of MSI vectors
The iMSI-RX module of the DW PCIe controller provides multiple sets of MSI_CTRL_INT_i_* registers, and each set is capable of handling 32 MSI interrupts. However, the fu740 PCIe controller driver only enabled one set of MSI_CTRL_INT_i_* registers, as the total number of supported interrupts was not specified. Set the supported number of MSI vectors to enable all the MSI_CTRL_INT_i_* registers on the fu740 PCIe core, allowing the system to fully utilize the available MSI interrupts. Link: https://lore.kernel.org/r/20230807055621.2431-1-yongxuan.wang@sifive.com Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
1 parent 06c2afb commit 551a60e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/controller/dwc/pcie-fu740.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ static int fu740_pcie_probe(struct platform_device *pdev)
299299
pci->dev = dev;
300300
pci->ops = &dw_pcie_ops;
301301
pci->pp.ops = &fu740_pcie_host_ops;
302+
pci->pp.num_vectors = MAX_MSI_IRQS;
302303

303304
/* SiFive specific region: mgmt */
304305
afp->mgmt_base = devm_platform_ioremap_resource_byname(pdev, "mgmt");

0 commit comments

Comments
 (0)