Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21613 Discussions

SGDMA Reception in Polling mode

Altera_Forum
Honored Contributor II
1,238 Views

Hi, 

I want to poll SGDMA for incoming packets from the network in TSE, here what I am doing is constructing the descriptor and submitting it with do_sync_transfer and it polls BUSY bit and returns when completed, after that I am reading data and store to buffer. But my code stuck in polling busy bit in the do_sync_transfer. 

Any body know how to solve this?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
394 Views

Are you sure the SGDMA actually does the transfer? Try and monitor is with SignalTap. do_sync_transfer should return as soon as the DMA is finished. 

Do you have a descriptor chain where the first descriptor has OWNED_BY_HW set to 1 and the second has is to 0?
0 Kudos
Reply