Forum Discussion

Ursa's avatar
Ursa
Icon for New Contributor rankNew Contributor
5 years ago

PCIe Avalon-MM DMA MSIs assignment of AN829

Dear All,

Before starting our own project, I am trying to program the Windows KMDF driver firstly on Arria 10 GX dev board based on the AN829 example.

In the doc of AN829, I found the "Number of MSI messages requested" is 4, however I don't know the purpose of each MSI, eg. which one is for reading, writing or something else? Can anyone tell me the detailed descriptions of MSIs of AN829 example? Thanks a lot. I need to distinguish the messages from each other in ISR.

By the way, how can I assign an MSI ID for different interrupt purpose? It seems that I can only set the number of MSI messages like this.

Best regards,

Ursa

3 Replies

    • Ursa's avatar
      Ursa
      Icon for New Contributor rankNew Contributor

      @Rahul_S_Intel1 Hi Rahul,

      Thanks for guiding. Looks like I need to access the register 0x3060(PCI Express to Avalon-MM Interrupt Status Register for Endpoints) to distinguish the signals, but I don't know how to access Avalon-MM Control and Status Register Address Spaces from Windows side. Should I expose these spaces through a BAR? Any suggestions? Thank you very much.

    • Ursa's avatar
      Ursa
      Icon for New Contributor rankNew Contributor

      @Rahul_S_Intel1 Hi Rahul,

      Thanks for guiding. Looks like I need to access the register 0x3060(PCI Express to Avalon-MM Interrupt Status Register for Endpoints) to distinguish the MSI signals. But I don't know how to access the Avalon-MM Control and Status Register Address Spaces from Windows side. Should I expose these address spaces through a BAR? Any suggestions? Thank you very much.

      Regards,

      Ursa