test_dram_dma.c error: "unable to open read dma queue"

0

Hi,

I am trying to run the test_dram_dma.c example on an f1.2xlarge instance. After downloading the FPGA image I encountered the following error on the last step:

sudo ./test_dram_dma
2021-10-03T21:44:34.660395Z, test_dram_dma, INFO, test_dram_dma.c +74: main(): Checking to see if the right AFI is loaded...
2021-10-03T21:44:34.670911Z, test_dram_dma, INFO, test_dram_dma_common.c +135: check_slot_config(): Operating on slot 0 with id: 0000:00:1d.0
2021-10-03T21:44:34.671770Z, test_dram_dma, ERROR, test_dram_dma.c +122: dma_example(): unable to open read dma queue
2021-10-03T21:44:34.671788Z, test_dram_dma, ERROR, test_dram_dma.c +82: main(): DMA example failed
2021-10-03T21:44:34.671794Z, test_dram_dma, INFO, test_dram_dma.c +95: main(): TEST FAILED

Has anyone else seen this error before, and if so, know what the issue is?

Thanks,
Kelvin

asked 3 years ago239 views
2 Answers
0
Accepted Answer

Hi Kelvin,

Have you installed the XDMA driver on the instance? If you are using the FPGA Developer AMI, they come with XRT pre-installed. To use the cl_dram_dma examples, you would need to remove XRT and install the XDMA driver.

Instructions are provided here: https://github.com/aws/aws-fpga/blob/master/sdk/linux_kernel_drivers/xdma/xdma_install.md

Let us know if you've done these steps and we can investigate further.

Thanks,

Deep

Deep_P
answered 3 years ago
0

Thank you Deep. test_dram_dma passed after installing the xdma driver.

Regards
Kelvin

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions