The PCIE interface of IMX6Q does not enable msi.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The PCIE interface of IMX6Q does not enable msi.

802 Views
amw
Contributor I

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;
}

0 Kudos
Reply
2 Replies

788 Views
amw
Contributor I

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?

0 Kudos
Reply