]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: airoha: Fix NPU RX DMA descriptor bits
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 18 May 2026 13:44:57 +0000 (15:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 May 2026 02:05:20 +0000 (19:05 -0700)
commit0cb5a74faa3bdcfa3b18735d554e12c0f615e35d
treea20e5fd94353a16e8b3d85fb4b0f5d1f72d9fe6e
parentbe309f8eae8b474a4a617eaae01324da996fc719
net: airoha: Fix NPU RX DMA descriptor bits

In an internal review from Airoha, it was notice that the RX DMA descriptor
bits and mask are wrong. These values probably refer to an old NPU firmware
never published. The previous value works correctly but it was reported
that in some specific condition in mixed scenario with both Ethernet and
WiFi offload it's possible that RX DMA descriptor signal wrong value with
the problem to the RX ring or packets getting dropped.

To handle these specific scenario, apply the new suggested bits mask from
Airoha.

Correct functionality of both AN7581 NPU and MT7996 variant were verified
and confirmed working.

Fixes: a7fc8c641cab ("net: airoha: Fix npu rx DMA definitions")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260518134530.3683-1-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/soc/airoha/airoha_offload.h