Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

force SGDMA receive side shutdown using TSE MAC

$
0
0
Hello All,

When using the SGDMA stream-to-memory configuration of the TSE MAC receive side, the network interface driver software typically sets the buffer length to zero in the SGDMA's DMA descriptor indicating that a complete frame should be copied into the SGDMA's target buffer. However, this can make a clean orchestrated shutdown of the SGDMA receive side very hard if no packets are currently being received; in this configuration the SGDMA will not listen to any request to stop unless it receives a frame after the run bit is cleared. We of course prefer to avoid the SGDMA being armed and ready to destroy the data structures of the new system when there is a soft reboot! We would also prefer for it to be possible to shutdown the TSE MAC network interface and then start it up again without requiring an OS reboot.

So, my question is as follows; are there any register bits in the TSE MAC that software can poke which will force an empty receive frame, and or a receive frame with error bits set, to be forwarded to the SGDMA receive side? I considered using the local-loopback in the TSE MAC for this purpose, but would like to avoid depending on its local-loopback mode because this functionality will not be present in the small MAC configuration of the TSE block. We could also provide some specialized hardware for this purpose, but we are trying to keep the driver software generic, and therefore not dependent on specific hardware configurations, so we also are hoping to avoid that approach.

Any guidance on this issue from the gurus at large is gratefully appreciated!

Thanks,

Jeff

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>