Forum Discussion
PCIe MSI interrupt
Hi Nandhakumar,
What device and Avalon interface (Avmm or Avst) you are using? Could you explain how do you trigger the MSI in details?
Thanks
Best regards,
KhaiY
- Sudhirkv5 years ago
New Contributor
Hi,
We are using AVMM interface. Following steps are followed to read MSI interrupt.
- Set MSI Enable of MSI Control register, this bit is mapped to bit[16] of offset 0x50 in configuration space register.
- Set Interrupt Disable bit[10] of Command register at configuration space offset register 0x4 to disable legacy interrupt.
- Set bit[1] (Memory space) and bit[2] (Bus Master) of Command Register at configuration space offset register 0x4 to enable the ability to generate MSI message.
But in our case interrupt is not generate.
When link is down:-
root@localhost:~# cat /proc/interrupts | grep fpga
65: 0 0 0 0 0 0 0 0 PCI-MSI 3670016-edge fhgw_fpga_drv
When link is up:-
root@localhost:~# cat /proc/interrupts | grep fpga
65: 0 0 0 0 0 0 0 0 PCI-MSI 3670016-edge fhgw_fpga_drv
For your reference our PCIE IP configuration snapshot in below. Please check if there is any configuration missing from our PCIE IP.
Regards,
Nandhakumar