Commit b3ce4ba4 authored by Fugang Duan's avatar Fugang Duan Committed by Jason Liu

ENGR00235090 FEC: Workaround for FEC RX hang with stress test

When do Ethernet UDP stress overnight test with abundance of
data transmission, RX path may hang-on.
Dump the RX BD, found all BD "Empty" bit is cleared, which means
CPU read BD status is not right and waiting here.

Change BD memroy attribute from Normal to strongly ordered:
changes the memory attribute of C=0, B=0 instead of C=0, B=1.
Apply the change, the issue cannot be reproduced.
Signed-off-by: default avatarFugang Duan  <>
parent 0d5a7023
......@@ -1503,7 +1503,7 @@ static int fec_enet_init(struct net_device *ndev)
int i;
/* Allocate memory for buffer descriptors. */
cbd_base = dma_alloc_coherent(NULL, BUFDES_SIZE, &fep->bd_dma,
cbd_base = dma_alloc_noncacheable(NULL, BUFDES_SIZE, &fep->bd_dma,
if (!cbd_base) {
printk("FEC: allocate descriptor memory failed?\n");
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment