]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: update rx tail pointer register to fix rx dma hang issue.
authorBiao Huang <biao.huang@mediatek.com>
Fri, 24 May 2019 06:26:07 +0000 (14:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:15:17 +0000 (08:15 +0200)
commit9a3208b66cc1af8b1b7f54a8cbc9f758a682eb88
tree377e3a6edad8e6a28e5a97539d690588e159dead
parent3fbcef3350ab6a3ad8503da2c7f5b1ac777dfe80
net: stmmac: update rx tail pointer register to fix rx dma hang issue.

[ Upstream commit 4523a5611526709ec9b4e2574f1bb7818212651e ]

Currently we will not update the receive descriptor tail pointer in
stmmac_rx_refill. Rx dma will think no available descriptors and stop
once received packets exceed DMA_RX_SIZE, so that the rx only test will fail.

Update the receive tail pointer in stmmac_rx_refill to add more descriptors
to the rx channel, so packets can be received continually

Fixes: 54139cf3bb33 ("net: stmmac: adding multiple buffers for rx")
Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c