Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'net-airoha-init-block-ack-memory-region-for-mt7996-npu-offloading'

Lorenzo Bianconi says:

====================
net: airoha: Init Block Ack memory region for MT7996 NPU offloading

This is a preliminary series in order to enable NPU offloading for
MT7996 (Eagle) chipset.
====================

Link: https://patch.msgid.link/20260108-airoha-ba-memory-region-v3-0-bf1814e5dcc4@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+19 -10
+11 -10
Documentation/devicetree/bindings/net/airoha,en7581-npu.yaml
··· 42 42 - description: wlan irq line5 43 43 44 44 memory-region: 45 - oneOf: 46 - - items: 47 - - description: NPU firmware binary region 48 - - items: 49 - - description: NPU firmware binary region 50 - - description: NPU wlan offload RX buffers region 51 - - description: NPU wlan offload TX buffers region 52 - - description: NPU wlan offload TX packet identifiers region 45 + items: 46 + - description: NPU firmware binary region 47 + - description: NPU wlan offload RX buffers region 48 + - description: NPU wlan offload TX buffers region 49 + - description: NPU wlan offload TX packet identifiers region 50 + - description: NPU wlan Block Ack buffers region 51 + minItems: 1 53 52 54 53 memory-region-names: 55 54 items: ··· 56 57 - const: pkt 57 58 - const: tx-pkt 58 59 - const: tx-bufid 60 + - const: ba 61 + minItems: 1 59 62 60 63 required: 61 64 - compatible ··· 94 93 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, 95 94 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; 96 95 memory-region = <&npu_firmware>, <&npu_pkt>, <&npu_txpkt>, 97 - <&npu_txbufid>; 98 - memory-region-names = "firmware", "pkt", "tx-pkt", "tx-bufid"; 96 + <&npu_txbufid>, <&npu_ba>; 97 + memory-region-names = "firmware", "pkt", "tx-pkt", "tx-bufid", "ba"; 99 98 }; 100 99 };
+8
drivers/net/ethernet/airoha/airoha_npu.c
··· 519 519 if (err) 520 520 return err; 521 521 522 + if (of_property_match_string(npu->dev->of_node, "memory-region-names", 523 + "ba") >= 0) { 524 + cmd = WLAN_FUNC_SET_WAIT_DRAM_BA_NODE_ADDR; 525 + err = airoha_npu_wlan_set_reserved_memory(npu, 0, "ba", cmd); 526 + if (err) 527 + return err; 528 + } 529 + 522 530 cmd = WLAN_FUNC_SET_WAIT_IS_FORCE_TO_CPU; 523 531 return airoha_npu_wlan_msg_send(npu, 0, cmd, &val, sizeof(val), 524 532 GFP_KERNEL);