Forum Discussion

khyam's avatar
khyam
Icon for New Contributor rankNew Contributor
4 years ago

Arria 10 DMA PAC card

Hi,

The dma_afu_unsigned.gbs configured on PR region Arria 10 1.2.1 PAC fpga. I am unable to run dma SW example on HW. It gives me the following error:

 Running test in HW mode
Error
fpgaDmaOpen: no memory
Error
fpgaDmaClose: invalid parameter
 
To solve the above error run the following command
sudo sh -c "echo 20 > /sys/kernel/mm/hugepages/hugepages-\2048kB/nr_hugepages"
sudo LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH ./fpga_dma_test 0
sudo LD_LIBRARY_PATH=.:/usr/local/lib perf stat -d -d -d -D 20 ./fpga_dma_test 0 -m -c -n -y -C -M
I am unable to run the above command due to the superuser permission required in devcloud. I don't have superuser permission.
Can you help me resolve the issue to run the command at the user mode?
Thank you.

2 Replies

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

    Can you try run:

    sh -c "echo 20 > /sys/kernel/mm/hugepages/hugepages-\2048kB/nr_hugepages"

    LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH ./fpga_dma_test 0

    LD_LIBRARY_PATH=.:/usr/local/lib perf stat -d -d -d -D 20 ./fpga_dma_test 0 -m -c -n -y -C -M


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

      To run above commands are required sudo permission, without sudo, It won't work, throw an error.