my pcie device need use 15 msi interrupts,but can not enable its by pci_enable_msi_range interface.
pci_enable_msi_range always return 1,
so, how got 15 MSI interrupts?
ret = pci_enable_msi_range(pci_dev, 15,15);
if (IS_ERR_VALUE((ulong)ret) || ret < 15) {
MHI_ERR("Failed to enable MSI, ret:%d\n", ret);
goto error_req_msi;
}
thank you.
I passed pci_enable_msi_range step.
but now , I do not receiving MSI interrupts,
follow "iMX6 PCIe MSI issues",
I check that CONFIG_PCIEPORTBUS is opened in my code.
-the interrupt vectors are enabled in the MSI controller's Interrupt Enable register (0x1ffc828)
-the interrupt vectors are not masked in the MSI controller's Interrupt Mask register (0x1ffc82c)
Interrupt Mask register are not masked,need modify the Mask register?