Commit 21fd4bb7 authored by Felix Fietkau's avatar Felix Fietkau

mt76: mt7603: tune tx ring size

Stop relying on global tx ring size, reduce size for PS/mgmt queue
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent f099c2e5
...@@ -192,13 +192,13 @@ int mt7603_dma_init(struct mt7603_dev *dev) ...@@ -192,13 +192,13 @@ int mt7603_dma_init(struct mt7603_dev *dev)
for (i = 0; i < ARRAY_SIZE(wmm_queue_map); i++) { for (i = 0; i < ARRAY_SIZE(wmm_queue_map); i++) {
ret = mt7603_init_tx_queue(dev, i, wmm_queue_map[i], ret = mt7603_init_tx_queue(dev, i, wmm_queue_map[i],
MT_TX_RING_SIZE); MT7603_TX_RING_SIZE);
if (ret) if (ret)
return ret; return ret;
} }
ret = mt7603_init_tx_queue(dev, MT_TXQ_PSD, ret = mt7603_init_tx_queue(dev, MT_TXQ_PSD,
MT_TX_HW_QUEUE_MGMT, MT_TX_RING_SIZE); MT_TX_HW_QUEUE_MGMT, MT7603_PSD_RING_SIZE);
if (ret) if (ret)
return ret; return ret;
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#define MT7603_MCU_RX_RING_SIZE 64 #define MT7603_MCU_RX_RING_SIZE 64
#define MT7603_RX_RING_SIZE 128 #define MT7603_RX_RING_SIZE 128
#define MT7603_TX_RING_SIZE 256
#define MT7603_PSD_RING_SIZE 128
#define MT7603_FIRMWARE_E1 "mt7603_e1.bin" #define MT7603_FIRMWARE_E1 "mt7603_e1.bin"
#define MT7603_FIRMWARE_E2 "mt7603_e2.bin" #define MT7603_FIRMWARE_E2 "mt7603_e2.bin"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment