Skip to content

Commit 5602cb3

Browse files
committed
fixup! net: macb: add XDP support for gem
macb_xdp_submit_frame() writes TSTART without first waking the MAC from LPI. When EEE is active, TXLPIEN blocks all TX and the GEM MAC has no auto-wake mechanism, so XDP frames will stall in the FIFO indefinitely. Add macb_tx_lpi_wake() before TSTART, matching the regular TX path in macb_start_xmit(). It's a no-op when EEE is not active. Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
1 parent c86ec79 commit 5602cb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,6 +1691,7 @@ static int macb_xdp_submit_frame(struct macb *bp, struct xdp_frame *xdpf,
16911691
wmb();
16921692

16931693
spin_lock(&bp->lock);
1694+
macb_tx_lpi_wake(bp);
16941695
macb_writel(bp, NCR, macb_readl(bp, NCR) | MACB_BIT(TSTART));
16951696
spin_unlock(&bp->lock);
16961697

0 commit comments

Comments
 (0)