developer | 064da3c | 2023-06-13 15:57:26 +0800 | [diff] [blame^] | 1 | From f9ac23ac488c0dafceab97c8d39a22904cf78f77 Mon Sep 17 00:00:00 2001 |
| 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Thu, 23 Mar 2023 15:16:14 +0800 |
| 4 | Subject: [PATCH 09/11] wifi: mt76: mt7996: fix WA event ring size |
| 5 | |
| 6 | Fix rx ring size of WA event to get rid of event loss and queue overflow |
| 7 | problems. |
| 8 | |
| 9 | Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") |
| 10 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 11 | Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
| 12 | --- |
| 13 | mt7996/dma.c | 2 +- |
| 14 | mt7996/mt7996.h | 1 + |
| 15 | 2 files changed, 2 insertions(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/mt7996/dma.c b/mt7996/dma.c |
| 18 | index 53414346..fbedaacf 100644 |
| 19 | --- a/mt7996/dma.c |
| 20 | +++ b/mt7996/dma.c |
| 21 | @@ -293,7 +293,7 @@ int mt7996_dma_init(struct mt7996_dev *dev) |
| 22 | /* event from WA */ |
| 23 | ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU_WA], |
| 24 | MT_RXQ_ID(MT_RXQ_MCU_WA), |
| 25 | - MT7996_RX_MCU_RING_SIZE, |
| 26 | + MT7996_RX_MCU_RING_SIZE_WA, |
| 27 | MT_RX_BUF_SIZE, |
| 28 | MT_RXQ_RING_BASE(MT_RXQ_MCU_WA)); |
| 29 | if (ret) |
| 30 | diff --git a/mt7996/mt7996.h b/mt7996/mt7996.h |
| 31 | index 42892f06..a3bd85d3 100644 |
| 32 | --- a/mt7996/mt7996.h |
| 33 | +++ b/mt7996/mt7996.h |
| 34 | @@ -26,6 +26,7 @@ |
| 35 | |
| 36 | #define MT7996_RX_RING_SIZE 1536 |
| 37 | #define MT7996_RX_MCU_RING_SIZE 512 |
| 38 | +#define MT7996_RX_MCU_RING_SIZE_WA 1024 |
| 39 | |
| 40 | #define MT7996_FIRMWARE_WA "mediatek/mt7996/mt7996_wa.bin" |
| 41 | #define MT7996_FIRMWARE_WM "mediatek/mt7996/mt7996_wm.bin" |
| 42 | -- |
| 43 | 2.39.2 |
| 44 | |