* [PATCH net-next 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading
@ 2026-01-05 9:02 Lorenzo Bianconi
2026-01-05 9:02 ` [PATCH net-next 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
2026-01-05 9:02 ` [PATCH net-next 2/2] net: airoha: npu: Init BA memory region if provided via DTS Lorenzo Bianconi
0 siblings, 2 replies; 4+ messages in thread
From: Lorenzo Bianconi @ 2026-01-05 9:02 UTC (permalink / raw)
To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Lorenzo Bianconi
Cc: netdev, devicetree, linux-arm-kernel, linux-mediatek
This is a preliminary series in order to enable NPU offloading for
MT7996 (Eagle) chipset.
---
Lorenzo Bianconi (2):
dt-bindings: net: airoha: npu: Add BA memory region
net: airoha: npu: Init BA memory region if provided via DTS
Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml | 11 +++++++++--
drivers/net/ethernet/airoha/airoha_npu.c | 8 ++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
---
base-commit: dbf8fe85a16a33d6b6bd01f2bc606fc017771465
change-id: 20260102-airoha-ba-memory-region-58d924371382
Best regards,
--
Lorenzo Bianconi <lorenzo@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH net-next 1/2] dt-bindings: net: airoha: npu: Add BA memory region 2026-01-05 9:02 [PATCH net-next 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi @ 2026-01-05 9:02 ` Lorenzo Bianconi 2026-01-06 18:34 ` Rob Herring 2026-01-05 9:02 ` [PATCH net-next 2/2] net: airoha: npu: Init BA memory region if provided via DTS Lorenzo Bianconi 1 sibling, 1 reply; 4+ messages in thread From: Lorenzo Bianconi @ 2026-01-05 9:02 UTC (permalink / raw) To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lorenzo Bianconi Cc: netdev, devicetree, linux-arm-kernel, linux-mediatek Introduce Block Ack memory region used by NPU MT7996 (Eagle) offloading. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> --- Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml index 59c57f58116b568092446e6cfb7b6bd3f4f47b82..b3a2b36f6a121f90acf88a07b0f1733fa6da08a8 100644 --- a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml +++ b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml @@ -50,6 +50,12 @@ properties: - description: NPU wlan offload RX buffers region - description: NPU wlan offload TX buffers region - description: NPU wlan offload TX packet identifiers region + - items: + - description: NPU firmware binary region + - description: NPU wlan offload RX buffers region + - description: NPU wlan offload TX buffers region + - description: NPU wlan offload TX packet identifiers region + - description: NPU wlan Block Ack buffers region memory-region-names: items: @@ -57,6 +63,7 @@ properties: - const: pkt - const: tx-pkt - const: tx-bufid + - const: ba required: - compatible @@ -93,7 +100,7 @@ examples: <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; memory-region = <&npu_firmware>, <&npu_pkt>, <&npu_txpkt>, - <&npu_txbufid>; - memory-region-names = "firmware", "pkt", "tx-pkt", "tx-bufid"; + <&npu_txbufid>, <&npu_ba>; + memory-region-names = "firmware", "pkt", "tx-pkt", "tx-bufid", "ba"; }; }; -- 2.52.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next 1/2] dt-bindings: net: airoha: npu: Add BA memory region 2026-01-05 9:02 ` [PATCH net-next 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi @ 2026-01-06 18:34 ` Rob Herring 0 siblings, 0 replies; 4+ messages in thread From: Rob Herring @ 2026-01-06 18:34 UTC (permalink / raw) To: Lorenzo Bianconi Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Krzysztof Kozlowski, Conor Dooley, netdev, devicetree, linux-arm-kernel, linux-mediatek On Mon, Jan 05, 2026 at 10:02:56AM +0100, Lorenzo Bianconi wrote: > Introduce Block Ack memory region used by NPU MT7996 (Eagle) offloading. > > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> > --- > Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml > index 59c57f58116b568092446e6cfb7b6bd3f4f47b82..b3a2b36f6a121f90acf88a07b0f1733fa6da08a8 100644 > --- a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml > +++ b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml > @@ -50,6 +50,12 @@ properties: > - description: NPU wlan offload RX buffers region > - description: NPU wlan offload TX buffers region > - description: NPU wlan offload TX packet identifiers region > + - items: > + - description: NPU firmware binary region > + - description: NPU wlan offload RX buffers region > + - description: NPU wlan offload TX buffers region > + - description: NPU wlan offload TX packet identifiers region > + - description: NPU wlan Block Ack buffers region This oneOf can be simplified to just this last entry plus 'minItems: 1'. Sure that allows 2 or 3 entries, but nothing defines when 1, 4, or 5 entries is valid or not. > > memory-region-names: > items: > @@ -57,6 +63,7 @@ properties: > - const: pkt > - const: tx-pkt > - const: tx-bufid > + - const: ba > > required: > - compatible > @@ -93,7 +100,7 @@ examples: > <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, > <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; > memory-region = <&npu_firmware>, <&npu_pkt>, <&npu_txpkt>, > - <&npu_txbufid>; > - memory-region-names = "firmware", "pkt", "tx-pkt", "tx-bufid"; > + <&npu_txbufid>, <&npu_ba>; > + memory-region-names = "firmware", "pkt", "tx-pkt", "tx-bufid", "ba"; > }; > }; > > -- > 2.52.0 > ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH net-next 2/2] net: airoha: npu: Init BA memory region if provided via DTS 2026-01-05 9:02 [PATCH net-next 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi 2026-01-05 9:02 ` [PATCH net-next 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi @ 2026-01-05 9:02 ` Lorenzo Bianconi 1 sibling, 0 replies; 4+ messages in thread From: Lorenzo Bianconi @ 2026-01-05 9:02 UTC (permalink / raw) To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lorenzo Bianconi Cc: netdev, devicetree, linux-arm-kernel, linux-mediatek Initialize NPU Block Ack memory region if reserved via DTS. Block Ack memory region is used by NPU MT7996 (Eagle) offloading. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> --- drivers/net/ethernet/airoha/airoha_npu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/airoha/airoha_npu.c b/drivers/net/ethernet/airoha/airoha_npu.c index 68b7f9684dc7f3912493876ae937207f55b81330..00faca2a388aa4378b58560c14d8eec0cb6b0330 100644 --- a/drivers/net/ethernet/airoha/airoha_npu.c +++ b/drivers/net/ethernet/airoha/airoha_npu.c @@ -519,6 +519,14 @@ static int airoha_npu_wlan_init_memory(struct airoha_npu *npu) if (err) return err; + if (of_property_match_string(npu->dev->of_node, "memory-region-names", + "ba") >= 0) { + cmd = WLAN_FUNC_SET_WAIT_DRAM_BA_NODE_ADDR; + err = airoha_npu_wlan_set_reserved_memory(npu, 0, "ba", cmd); + if (err) + return err; + } + cmd = WLAN_FUNC_SET_WAIT_IS_FORCE_TO_CPU; return airoha_npu_wlan_msg_send(npu, 0, cmd, &val, sizeof(val), GFP_KERNEL); -- 2.52.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-06 18:34 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-01-05 9:02 [PATCH net-next 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi 2026-01-05 9:02 ` [PATCH net-next 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi 2026-01-06 18:34 ` Rob Herring 2026-01-05 9:02 ` [PATCH net-next 2/2] net: airoha: npu: Init BA memory region if provided via DTS Lorenzo Bianconi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox