mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
wifi: mt76: mt7996: Do not schedule RRO and TxFree queues during reset for NPU
This is a preliminary patch to properly manage reset procedure when NPU offloading is enabled. Tested-by: Kang Yang <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
9ccd49d455
commit
2bc891cc94
@@ -881,6 +881,10 @@ mt76_dma_rx_cleanup(struct mt76_dev *dev, struct mt76_queue *q)
|
||||
mt76_queue_is_wed_rro(q))
|
||||
continue;
|
||||
|
||||
if (mt76_npu_device_active(dev) &&
|
||||
mt76_queue_is_wed_rro(q))
|
||||
continue;
|
||||
|
||||
if (!mt76_queue_is_wed_rro_rxdmad_c(q) &&
|
||||
!mt76_queue_is_wed_rro_ind(q))
|
||||
mt76_put_page_pool_buf(buf, false);
|
||||
@@ -923,6 +927,13 @@ mt76_dma_rx_reset(struct mt76_dev *dev, enum mt76_rxq_id qid)
|
||||
mt76_queue_is_wed_rro(q))
|
||||
return;
|
||||
|
||||
if (mt76_npu_device_active(dev) &&
|
||||
mt76_queue_is_wed_rro(q))
|
||||
return;
|
||||
|
||||
if (mt76_queue_is_npu_txfree(q))
|
||||
return;
|
||||
|
||||
mt76_dma_sync_idx(dev, q);
|
||||
if (mt76_queue_is_npu(q))
|
||||
mt76_npu_fill_rx_queue(dev, q);
|
||||
|
||||
Reference in New Issue
Block a user