Skip to content

net: nixge: fix tasklet and DMA teardown

Myeonghun Pak lkml netdev stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 3 repliesIn review

Changes in v3 from the cover letter

- Split the IRQ/tasklet ordering fix and DMA shutdown fix into two patches.
- Give each fix its own subject and commit message.
- Order the nixge_stop() local declarations longest to shortest (RXT).

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: nixge: free IRQs before killing the DMA error taskletdrivers/net/ethernet/ni/nixge.c+3 -21 reply
2/2net: nixge: wait for DMA reset before releasing buffersdrivers/net/ethernet/ni/nixge.c+27 -11 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSimon Horman
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net v3 0/2] net: nixge: fix tasklet and DMA teardown

Separate the IRQ/tasklet ordering fix and the DMA shutdown fix from v2, as requested by Daniel Machon.

Patch 1 releases both IRQ handlers before draining dma_err_tasklet. Patch 2 masks channel interrupts after recovery has stopped and waits for DMA reset completion before releasing the buffers. On reset timeout, it retains those buffers and prevents a later open from replacing them.

Changes in v3:
- Split the IRQ/tasklet ordering fix and DMA shutdown fix into two patches.
- Give each fix its own subject and commit message.
- Order the nixge_stop() local declarations longest to shortest (RXT).

Changes in v2:
- Wait for DMA reset completion; retain buffers and reject reopen on timeout.

v2: https://lore.kernel.org/netdev/[email protected]/
Review: https://lore.kernel.org/netdev/[email protected]/

Based on net commit 6dc989ea46b96ce170840174b4a38c4a387fb005. Found by code inspection. No hardware testing.

Myeonghun Pak (2):
net: nixge: free IRQs before killing the DMA error tasklet
net: nixge: wait for DMA reset before releasing buffers

 drivers/net/ethernet/ni/nixge.c | 33 ++++++++++++++++++++++++++++++---
 1 file changed, 30 insertions(+), 3 deletions(-)

base-commit: 6dc989ea46b96ce170840174b4a38c4a387fb005

Signature · 1 line
2.53.0