OSDN Git Service

mt76: mt7663s: fix the possible device hang in high traffic
authorSean Wang <sean.wang@mediatek.com>
Thu, 4 Mar 2021 13:25:23 +0000 (21:25 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sun, 11 Apr 2021 22:01:24 +0000 (00:01 +0200)
commit45247a85614b49b07b9dc59a4e6783b17e766ff2
treeeeddc6c7ee4e718e2ca3149debf36f55430eb44a
parent455ae5aabcc72fed7e5c803d59d122415500dc08
mt76: mt7663s: fix the possible device hang in high traffic

Use the additional memory barrier to ensure the skb list up-to-date
between the skb producer and consumer to avoid the invalid skb content
written into sdio controller and then cause device hang due to mcu assert
caught by WR_TIMEOUT_INT.

Fixes: 1522ff731f84 ("mt76: mt7663s: introduce sdio tx aggregation")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c
drivers/net/wireless/mediatek/mt76/sdio.c