net cpsw: fix rx stability under heavy network load
RX DMA Head Descriptor Pointer can get 0 when there is a lot of traffic, which results in a timeout error. A good way to provoke this error is by sending lots of ARP requests. This patch makes sure that the RX DMA Head Descriptor Pointer is set. The origin driver, from which this is derived, already contains this fix. Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
5dafef6aaf
commit
7af9c3a843
|
@ -741,8 +741,13 @@ static int cpdma_process(struct cpsw_priv *priv, struct cpdma_chan *chan,
|
|||
if (buffer)
|
||||
*buffer = (void *)readl(&desc->sw_buffer);
|
||||
|
||||
if (status & CPDMA_DESC_OWNER)
|
||||
if (status & CPDMA_DESC_OWNER) {
|
||||
if (readl(chan->hdp) == 0) {
|
||||
if (readl(&desc->hw_mode) & CPDMA_DESC_OWNER)
|
||||
writel((u32)desc, chan->hdp);
|
||||
}
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
chan->head = (void *)readl(&desc->hw_next);
|
||||
|
||||
|
|
Loading…
Reference in New Issue