* [PATCH net-next v2 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading
@ 2026-01-07 8:29 Lorenzo Bianconi
2026-01-07 8:29 ` [PATCH net-next v2 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
2026-01-07 8:29 ` [PATCH net-next v2 2/2] net: airoha: npu: Init BA memory region if provided via DTS Lorenzo Bianconi
0 siblings, 2 replies; 5+ messages in thread
From: Lorenzo Bianconi @ 2026-01-07 8:29 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.
---
Changes in v2:
- Remork memory-region entry in airoha,en7581-npu.yaml
- Link to v1: https://lore.kernel.org/r/20260105-airoha-ba-memory-region-v1-0-5b07a737c7a7@kernel.org
---
Lorenzo Bianconi (2):
dt-bindings: net: airoha: npu: Add BA memory region
net: airoha: npu: Init BA memory region if provided via DTS
.../devicetree/bindings/net/airoha,en7581-npu.yaml | 20 ++++++++++----------
drivers/net/ethernet/airoha/airoha_npu.c | 8 ++++++++
2 files changed, 18 insertions(+), 10 deletions(-)
---
base-commit: 8e7148b5602321be48614bcde048cbe1c738ce3e
change-id: 20260102-airoha-ba-memory-region-58d924371382
Best regards,
--
Lorenzo Bianconi <lorenzo@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH net-next v2 1/2] dt-bindings: net: airoha: npu: Add BA memory region
2026-01-07 8:29 [PATCH net-next v2 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi
@ 2026-01-07 8:29 ` Lorenzo Bianconi
2026-01-08 8:53 ` Krzysztof Kozlowski
2026-01-07 8:29 ` [PATCH net-next v2 2/2] net: airoha: npu: Init BA memory region if provided via DTS Lorenzo Bianconi
1 sibling, 1 reply; 5+ messages in thread
From: Lorenzo Bianconi @ 2026-01-07 8:29 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>
---
.../devicetree/bindings/net/airoha,en7581-npu.yaml | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
index 59c57f58116b568092446e6cfb7b6bd3f4f47b82..42bc0f2a42a91236c858241ca76aa0b0ddac8d54 100644
--- a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
+++ b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
@@ -42,14 +42,13 @@ properties:
- description: wlan irq line5
memory-region:
- oneOf:
- - items:
- - description: NPU firmware binary 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
+ 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
+ minItems: 1
memory-region-names:
items:
@@ -57,6 +56,7 @@ properties:
- const: pkt
- const: tx-pkt
- const: tx-bufid
+ - const: ba
required:
- compatible
@@ -93,7 +93,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] 5+ messages in thread
* [PATCH net-next v2 2/2] net: airoha: npu: Init BA memory region if provided via DTS
2026-01-07 8:29 [PATCH net-next v2 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi
2026-01-07 8:29 ` [PATCH net-next v2 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
@ 2026-01-07 8:29 ` Lorenzo Bianconi
1 sibling, 0 replies; 5+ messages in thread
From: Lorenzo Bianconi @ 2026-01-07 8:29 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 22f72c146065998d5450477f664ed308b1569aa3..a56b3780bb627cc393b94210b6b5c72cc95baea3 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] 5+ messages in thread
* Re: [PATCH net-next v2 1/2] dt-bindings: net: airoha: npu: Add BA memory region
2026-01-07 8:29 ` [PATCH net-next v2 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
@ 2026-01-08 8:53 ` Krzysztof Kozlowski
2026-01-08 9:28 ` Lorenzo Bianconi
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-01-08 8:53 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
netdev, devicetree, linux-arm-kernel, linux-mediatek
On Wed, Jan 07, 2026 at 09:29:34AM +0100, Lorenzo Bianconi wrote:
> Introduce Block Ack memory region used by NPU MT7996 (Eagle) offloading.
>
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> .../devicetree/bindings/net/airoha,en7581-npu.yaml | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
> index 59c57f58116b568092446e6cfb7b6bd3f4f47b82..42bc0f2a42a91236c858241ca76aa0b0ddac8d54 100644
> --- a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
> +++ b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
> @@ -42,14 +42,13 @@ properties:
> - description: wlan irq line5
>
> memory-region:
> - oneOf:
> - - items:
> - - description: NPU firmware binary 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
> + 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
> + minItems: 1
>
> memory-region-names:
missing minItems here.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2 1/2] dt-bindings: net: airoha: npu: Add BA memory region
2026-01-08 8:53 ` Krzysztof Kozlowski
@ 2026-01-08 9:28 ` Lorenzo Bianconi
0 siblings, 0 replies; 5+ messages in thread
From: Lorenzo Bianconi @ 2026-01-08 9:28 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
netdev, devicetree, linux-arm-kernel, linux-mediatek
[-- Attachment #1: Type: text/plain, Size: 1748 bytes --]
> On Wed, Jan 07, 2026 at 09:29:34AM +0100, Lorenzo Bianconi wrote:
> > Introduce Block Ack memory region used by NPU MT7996 (Eagle) offloading.
> >
> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > ---
> > .../devicetree/bindings/net/airoha,en7581-npu.yaml | 20 ++++++++++----------
> > 1 file changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
> > index 59c57f58116b568092446e6cfb7b6bd3f4f47b82..42bc0f2a42a91236c858241ca76aa0b0ddac8d54 100644
> > --- a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
> > +++ b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
> > @@ -42,14 +42,13 @@ properties:
> > - description: wlan irq line5
> >
> > memory-region:
> > - oneOf:
> > - - items:
> > - - description: NPU firmware binary 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
> > + 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
> > + minItems: 1
> >
> > memory-region-names:
>
> missing minItems here.
ack, I will fix it.
Regards,
Lorenzo
>
> Best regards,
> Krzysztof
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-08 9:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-07 8:29 [PATCH net-next v2 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi
2026-01-07 8:29 ` [PATCH net-next v2 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
2026-01-08 8:53 ` Krzysztof Kozlowski
2026-01-08 9:28 ` Lorenzo Bianconi
2026-01-07 8:29 ` [PATCH net-next v2 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