Forum Discussion
Hi,
By referring to the user guide, the cfg_prmscr only provides the information of the PCIe status, but not the command register info. One suggestion is to refer to the cfg_msicsr[15:0] so that we can determine whether the MSI is enabled.
Regards -SK
- SimonRichter5 years ago
Occasional Contributor
Yes, MSIs appear to work, and cfg_msicsr(0) tells me that they are enabled.
For the case where MSIs are not supported on the host, I'd have to fall back on legacy interrupts though. The documentation says that the host is allowed to switch between legacy and MSI interrupts by enabling one mechanism and disabling the other, so I would expect the host to disable legacy interrupts when it activates the MSI.
So now I'm wondering how that would appear to me inside the FPGA. I think I should be able to pick this up from cfg_prmcsr(10) going to '1', but I'd like some confirmation that this is a reliable method.