Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

SGDMA Reception in Polling mode

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?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?