Forum Discussion

BPopa1's avatar
BPopa1
Icon for New Contributor rankNew Contributor
7 years ago

Problem with Linux & Windows Application for PCIe DMA transfer on Arria 10 Ref: PCI Express AVMM DMA Reference Design

I'm having a problem in running the DMA transfer example on my Linux (Ubuntu 16.04) system.

According to the README:

command - sudo ./install -- gives me en error " ./altera_dma.ko: No such file or directory". Initially when I untar the files, I see the altera_dma.ko file present in the directory but install command happens to delete it.

Please help me in this situation, I couldn't find any updated files on the same.

Thanks!

10 Replies

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    May I know which reference design are you referring to?

    and which SoC device is this?

    I cannot open the link above.

    Thanks

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

    Hello,

    Thank you for your response.

    I'm referring to "Reference Design: Gen3x8 AVMM DMA - Arria 10". I want to run the software application on Linux for DMA transfer.

    For your reference, I have attached the file here!

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

      Hello,

      I can't find Windows_for_AVMM_DMA_On_Chip_Mem. Can you share it with me?Thanks.

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

    Hello,

    I found a way around the problem I was facing but I'm stuck with another one now. Hoping to get some help!

    By giving the commands: ( After programming the fpga and restarting the system )

    $sudo make,

    $sudo ./ install

    and

    $sudo ./ run

    I am able to run the application on linux. But if I try to start the DMA transfer by giving '1', the system crashes and doesn't respond anymore.

    Also tried working with Windows on this problem, I am able to launch the GUI but once I 'start' the DMA transfer for read and write for 100 iterations (default), the system restarts and gives a "928 Fatal PCIe Error ".

    Would really appreciate if some help is provided regarding the problem I'm facing.

    Thanks!

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

      Hi,

      Thank you for your response.

      I have seen these videos and there's nothing I've missed from them. After programming the FPGA and rebooting the system, the FPGA is detected in both Linux and Windows, but the application abruptly stops. when trying to run a DMA transfer.

      Please provide your suggestions to solve the issue.

      Regards

  • Ahmed_H_Intel1's avatar
    Ahmed_H_Intel1
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,

    Great to hear that the design is working after following the provided resources. Can you please share what error you see if you have? more info will help us to understand the new issue.

    Regards,

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

    Hi,

    The design is working fine without any problems. I am having problems in running the DMA transfer (read and write) to the board and back.

    Could you please share some steps how we can debug this issue. I tried understanding the Linux code and making some changes but nothing works.

    As soon as I "Start DMA" by entering '1' and 'Enter' the application and the Linux OS stops responding.

    Similarly in Windows when I click on start I get a PCie error shown in the figures attached above.

    Thanks!

    Regards,

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    The only debug method that would help us in this case would be the signaltap. By adding the DMA signals to be traced in SignalTap, we might get a glimpse on the root cause of this issue.

    I suspect its either the DMA is hanging somewhere or the PCIe is not functioning properly. With Signaltap we can segregate the root cause.

    Thanks

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

      Hello,

      I can't find Windows_for_AVMM_DMA_On_Chip_Mem. Can you share it with me?Thanks