From patchwork Thu Aug 1 14:35:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13750592 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 B3A8EC3DA4A for ; Thu, 1 Aug 2024 14:36:15 +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:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=8JLbjgOk1zjpEKhlpN4GIQaWVeID41B9/ca2KB98kuk=; b=EvktdBNYf5YmnSnL9zLN70GVHq gPMHM043wT8ls5XvsapPOdQHrBuAnp4N0bEBQR998fQqQjvhdx5NVIx3sUk+pOqtBuzT21ddgRcbw 1k+rlUDe+KvPD0KpYaqy50v0B4mlhFR6zq7rTRGsteVrgbMeH9m21xBj5ukEvkBb5NAvAkjmsIqPt MIRV3JwdGJ00wcX7jiy5HYeZABX3Jk0sfojwG6H0E6mzT/BEgyNVeoiXoxQK0Z5XwEZhySmJUsb3o N4hEeNB6ub1bubmsr3/SMSsE8fb+M1C4vwS2kGobzKPkXdWqg0JQiK2lrVu1j7klFk4rm4JIlZua4 S5lGYJiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZWuS-00000005gZF-0mEJ; Thu, 01 Aug 2024 14:36:04 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZWtx-00000005gR6-1sHh for linux-arm-kernel@lists.infradead.org; Thu, 01 Aug 2024 14:35:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id E7B0D6285D; Thu, 1 Aug 2024 14:35:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 484A3C32786; Thu, 1 Aug 2024 14:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722522932; bh=nMjbwBbCIYqdVOI7ggaz0aXbGvVaFJTrJRsrK3GOZHk=; h=From:To:Cc:Subject:Date:From; b=b6FXkcdYlCXIH1uZjnECSMoQWblslGICg/I+ov8bL3NhBjJCS2FVQUCk4hLPPt2ED uzYboScHl3vWqRmdspkFbgm2AAsx/7H8cyVZ5gVzF9FA5I+/JBSe1s0VOUg2xxOWLi 8lqy0rwsbCj4S2d+euC6rnrV6xfrc6IyB+FxOhVzXXLZCo9qzg1O4QMhiJ/TuNXzVS nWL8uwDrLPRmzfOYZlLvdlFYNWdTKY91ajobFC63Y0HAYmJsLfKWiaIeYOTGCkxYd2 gC710673dmLIANy8/4BeeTjg+qUj8o/O0aYMqZZaBspvzQdJaDyDF5JILYDM/sP/wh fth2fPMYUo0dw== From: Lorenzo Bianconi To: netdev@vger.kernel.org Cc: nbd@nbd.name, lorenzo.bianconi83@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-arm-kernel@lists.infradead.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, benjamin.larsson@genexis.eu, rkannoth@marvell.com, sgoutham@marvell.com, andrew@lunn.ch, arnd@arndb.de, horms@kernel.org Subject: [PATCH v2 net-next 0/8] Add second QDMA support for EN7581 eth controller Date: Thu, 1 Aug 2024 16:35:02 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_073533_546775_F146C48A X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. 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 EN7581 SoC supports two independent QDMA controllers to connect the Ethernet Frame Engine (FE) to the CPU. Introduce support for the second QDMA controller. This is a preliminary series to support multiple FE ports (e.g. connected to a second PHY controller). Changes since v1: - squash patch 6/9 and 7/9 - move some duplicated code from patch 2/9 in 1/9 - cosmetics Lorenzo Bianconi (8): net: airoha: Introduce airoha_qdma struct net: airoha: Move airoha_queues in airoha_qdma net: airoha: Move irq_mask in airoha_qdma structure net: airoha: Add airoha_qdma pointer in airoha_tx_irq_queue/airoha_queue structures net: airoha: Use qdma pointer as private structure in airoha_irq_handler routine net: airoha: Allow mapping IO region for multiple qdma controllers net: airoha: Start all qdma NAPIs in airoha_probe() net: airoha: Link the gdm port to the selected qdma controller drivers/net/ethernet/mediatek/airoha_eth.c | 488 +++++++++++---------- 1 file changed, 263 insertions(+), 225 deletions(-)