FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6352 Discussions

How to configure MSI interrupt

Altera_Forum
Honored Contributor II
1,396 Views

Hi, 

 

For PCIe Hard IP, how to setup/configure MSI interrupts? 

For example, I have DMA read and DMA write transactions, setting up through descriptors. At the last PTR, it sends MSI interrupts. How to configure the MSI so that the DMA read and write receive different message IDs or call different ISRs ? 

 

Thanks, 

 

Tiger
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
515 Views

The multiple MSI input signals will eventually OR to become a single MSI interrupt. 

It can't be configure to different message IDs.
0 Kudos
Altera_Forum
Honored Contributor II
515 Views

Thank you for your reply. 

There are up to 16 lines of interrupt signals OR-ed into a single MSI interrupt. How these IRQ lines are associated with particular PCIe link/function or operations? e.g. Is there a way to associated DMA read completion to line A, and DMA write completion to line B? 

The message ID in the ISR routine represents something or it is just a dummy parameter?
0 Kudos
Altera_Forum
Honored Contributor II
515 Views

For the Av-ST version at least, the message ID in the ISR routine (I'm assuming you are using KMDF/Windows) is directly related to which number the MSI is. When an MSI is send through the streaming core you also have to configure which number it is by a separate input. 

 

As for the Av-MM DMA version, I am not sure how this is done (or if it is possible).
0 Kudos
Altera_Forum
Honored Contributor II
515 Views

Thank you.

0 Kudos
Altera_Forum
Honored Contributor II
515 Views

You need to read *Avalon-MM to PCI Express Interrupt Status Register* to figure out who caused the interrupt. 

Normally the root port driver needs to read the Interrupt Status Register port AVL_IRQ_ASSERTED[15:0] at (CRA+0x40) to know which IRQ was active, 

each AVL_IRQ_ASSERTED[] bit reflects the value on the corresponding IRQ input port. 

Value 0 means Avalon-MM IRQ is not being signaled, value 1 means Avalon-MM IRQ is being signaled.
0 Kudos
Reply