Re: [PATCH] net: ethernet: sun4i-emac: free dma descriptor

From
Jakub Kicinski <kuba@kernel.org>
Date
2025-09-04 14:24:47
Also in
linux-arm-kernel, lkml
Reply to
Conley Lee, 2025-09-03
On Wed,  3 Sep 2025 15:49:39 +0800 Conley Lee wrote:
In the current implementation of the sun4i-emac driver, when using DMA to
receive data packets, the descriptor for the current DMA request is not
released in the rx_done_callback.

Fix this by properly releasing the descriptor.
Reading the docs, it appears that the need to free the desc is tied to
setting descriptor reuse flag. Which this driver does not do. So I'm
unclear why this is needed, maybe the dma engine driver is doing
something strange?

Could you repost this, CC the dmaengine ML, Vinod and the appropriate
SoC maintainers?
Thread (9 messages) 9 messages, 2 authors, last reply 2025-09-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help