public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading
@ 2026-01-08 15:05 Lorenzo Bianconi
  2026-01-08 15:05 ` [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lorenzo Bianconi @ 2026-01-08 15:05 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 v3:
- Add missing minItems for memory-region-names in airoha,en7581-npu.yaml
- Link to v2: https://lore.kernel.org/r/20260107-airoha-ba-memory-region-v2-0-d8195fc66731@kernel.org

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  | 21 +++++++++++----------
 drivers/net/ethernet/airoha/airoha_npu.c            |  8 ++++++++
 2 files changed, 19 insertions(+), 10 deletions(-)
---
base-commit: fd1de45ad24f24cf0aedee0f64e668674a9bd6c9
change-id: 20260102-airoha-ba-memory-region-58d924371382

Best regards,
-- 
Lorenzo Bianconi <lorenzo@kernel.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region
  2026-01-08 15:05 [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi
@ 2026-01-08 15:05 ` Lorenzo Bianconi
  2026-01-13  8:33   ` Lorenzo Bianconi
  2026-01-15 16:04   ` Rob Herring (Arm)
  2026-01-08 15:05 ` [PATCH net-next v3 2/2] net: airoha: npu: Init BA memory region if provided via DTS Lorenzo Bianconi
  2026-01-16  3:40 ` [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading patchwork-bot+netdevbpf
  2 siblings, 2 replies; 6+ messages in thread
From: Lorenzo Bianconi @ 2026-01-08 15:05 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  | 21 +++++++++++----------
 1 file changed, 11 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..19860b41286fd42f2a5ed15d5dc75ee0eb00a639 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,8 @@ properties:
       - const: pkt
       - const: tx-pkt
       - const: tx-bufid
+      - const: ba
+    minItems: 1
 
 required:
   - compatible
@@ -93,7 +94,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] 6+ messages in thread

* [PATCH net-next v3 2/2] net: airoha: npu: Init BA memory region if provided via DTS
  2026-01-08 15:05 [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi
  2026-01-08 15:05 ` [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
@ 2026-01-08 15:05 ` Lorenzo Bianconi
  2026-01-16  3:40 ` [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading patchwork-bot+netdevbpf
  2 siblings, 0 replies; 6+ messages in thread
From: Lorenzo Bianconi @ 2026-01-08 15:05 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] 6+ messages in thread

* Re: [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region
  2026-01-08 15:05 ` [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
@ 2026-01-13  8:33   ` Lorenzo Bianconi
  2026-01-15 16:04   ` Rob Herring (Arm)
  1 sibling, 0 replies; 6+ messages in thread
From: Lorenzo Bianconi @ 2026-01-13  8:33 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: netdev, devicetree, linux-arm-kernel, linux-mediatek

[-- Attachment #1: Type: text/plain, Size: 2404 bytes --]

> 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  | 21 +++++++++++----------
>  1 file changed, 11 insertions(+), 10 deletions(-)

Hi Rob, Krzysztof and Conor,

Since this patch has been marked as 'needs ack' on patchwork, do you have any
comments on it? Thanks in advance.

Regards,
Lorenzo

> 
> diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
> index 59c57f58116b568092446e6cfb7b6bd3f4f47b82..19860b41286fd42f2a5ed15d5dc75ee0eb00a639 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,8 @@ properties:
>        - const: pkt
>        - const: tx-pkt
>        - const: tx-bufid
> +      - const: ba
> +    minItems: 1
>  
>  required:
>    - compatible
> @@ -93,7 +94,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
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region
  2026-01-08 15:05 ` [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
  2026-01-13  8:33   ` Lorenzo Bianconi
@ 2026-01-15 16:04   ` Rob Herring (Arm)
  1 sibling, 0 replies; 6+ messages in thread
From: Rob Herring (Arm) @ 2026-01-15 16:04 UTC (permalink / raw)
  To: Lorenzo Bianconi
  Cc: devicetree, Eric Dumazet, Conor Dooley, linux-arm-kernel,
	David S. Miller, netdev, Paolo Abeni, linux-mediatek, Andrew Lunn,
	Jakub Kicinski, Krzysztof Kozlowski


On Thu, 08 Jan 2026 16:05:07 +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  | 21 +++++++++++----------
>  1 file changed, 11 insertions(+), 10 deletions(-)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading
  2026-01-08 15:05 [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi
  2026-01-08 15:05 ` [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
  2026-01-08 15:05 ` [PATCH net-next v3 2/2] net: airoha: npu: Init BA memory region if provided via DTS Lorenzo Bianconi
@ 2026-01-16  3:40 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-01-16  3:40 UTC (permalink / raw)
  To: Lorenzo Bianconi
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, netdev, devicetree, linux-arm-kernel, linux-mediatek

Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 08 Jan 2026 16:05:06 +0100 you wrote:
> This is a preliminary series in order to enable NPU offloading for
> MT7996 (Eagle) chipset.
> 
> ---
> Changes in v3:
> - Add missing minItems for memory-region-names in airoha,en7581-npu.yaml
> - Link to v2: https://lore.kernel.org/r/20260107-airoha-ba-memory-region-v2-0-d8195fc66731@kernel.org
> 
> [...]

Here is the summary with links:
  - [net-next,v3,1/2] dt-bindings: net: airoha: npu: Add BA memory region
    https://git.kernel.org/netdev/net-next/c/40f9e446033e
  - [net-next,v3,2/2] net: airoha: npu: Init BA memory region if provided via DTS
    https://git.kernel.org/netdev/net-next/c/875a59c9a9e5

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-01-16  3:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08 15:05 [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading Lorenzo Bianconi
2026-01-08 15:05 ` [PATCH net-next v3 1/2] dt-bindings: net: airoha: npu: Add BA memory region Lorenzo Bianconi
2026-01-13  8:33   ` Lorenzo Bianconi
2026-01-15 16:04   ` Rob Herring (Arm)
2026-01-08 15:05 ` [PATCH net-next v3 2/2] net: airoha: npu: Init BA memory region if provided via DTS Lorenzo Bianconi
2026-01-16  3:40 ` [PATCH net-next v3 0/2] net: airoha: Init Block Ack memory region for MT7996 NPU offloading patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox