From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 69B51CF6C00 for ; Wed, 7 Jan 2026 08:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tv/GGtQvePSfy8JImBO2Bqakc/7C0eBov0BukOlj/70=; b=SJQg1xZVWSR1PA+QF2hyW6nBgA e7/867GzmGLNny9yhZPjgqtNtsmF+p2AAYikot+kILevxWvyWNCY2P1JXSbL/LxER7A/bKYEjpKDW TQwv1MmrKpjT3Ldeq34ecFFV9vqlm1oxsqvEw3MWHrDP3Sr6GQD8idQVLCOqBNgRB64hGIi0Z+v34 h3UTUBZd42zr2ZEIX59PWmwm+jVIxrSWrLoeL9Qj47QytwNLKpLRUDFRe6SDBiVq9GezNsz9B6bqF n+jzcx8UgXoQp70IlPZaazjV7oX5/0Sw0ni4KX03R+wDya+EuU6bQQlv2r5AgEUeX7i+JXO+CmTVh mNC7AAzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdOvY-0000000EPhq-2kfU; Wed, 07 Jan 2026 08:30:00 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdOvW-0000000EPfb-1AsD; Wed, 07 Jan 2026 08:29:58 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id AA1456013B; Wed, 7 Jan 2026 08:29:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07FEDC4CEF7; Wed, 7 Jan 2026 08:29:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767774597; bh=JhbaVv1PdLdceMg/5l3s3xkAwxQ3DqsArTD5uFDz5Zw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hPH41ztZ6KrETrjSif7OcedDsaM0tXMLZA+B/HITPU9EZYBHX11DUnApCg7dapckJ 8Qqgz5YrUmh1KwiB0cX55QDGH8uPjIJkmio3oBYyFZ8m7Kgfyl3Zo01WDpwtiFVwqB g1cNOfFBDdKO9MvU4Hsp2F6duQlz8aKJOt2VgTgj3NCV/7Ax0MgmlrgNBZVidwbnOr SoTS6/Xu1Pkravnms2qxmOm1/L8uhmmkv8dv1Vmojj4KaJVgpvEohlXNOHR+zPU6e/ WPqCgmxl3Zcpx5EUTTfeIlrQIfSiATIqHl4GJ0gJtjntnB2yFQ2N50Kl10yAeUaLMf 7vOmO54pyqQBQ== From: Lorenzo Bianconi Date: Wed, 07 Jan 2026 09:29:35 +0100 Subject: [PATCH net-next v2 2/2] net: airoha: npu: Init BA memory region if provided via DTS MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260107-airoha-ba-memory-region-v2-2-d8195fc66731@kernel.org> References: <20260107-airoha-ba-memory-region-v2-0-d8195fc66731@kernel.org> In-Reply-To: <20260107-airoha-ba-memory-region-v2-0-d8195fc66731@kernel.org> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Bianconi Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org X-Mailer: b4 0.14.2 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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