From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lelvem-ot02.ext.ti.com (lelvem-ot02.ext.ti.com [198.47.23.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78AF32ECD13; Mon, 8 Sep 2025 09:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.235 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757322525; cv=none; b=Wxn7Nx9BPtq0nK1KdhtlCDX8M7YiKA40LKrQnm60U39T/wkAMEj51yNjtcY1Bb0XSis1VVGwvYYzadfr9vwhSJUYD9kgLiiQQgm7LrythLGj2apfgtC/QbiMESqw6ycb4Omn5FA6GgkCWDbHn2cIVpKgXAQTkj+tKuzcusI6kHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757322525; c=relaxed/simple; bh=7JoeAhQFH8pNxURdTGSe/k8G1U9yl25jn2lVYW/PbXs=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KJBleoIRRNvmmpMIvTA7j3VyE74CTi1QcAqaU+mtS/Ww/DHd3D3glJUUMJRAiFDL7PN6ET8/VTPkj1PCmi87smwZLjkyyOLM1A20R2YQkYFk9LLq1mk1Pl8t+/DTH64Ug+YicKEu8Nqgx7XKH0HxOGy9LgI/vIFBKDGm+NYOSJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=QX6HnDSF; arc=none smtp.client-ip=198.47.23.235 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="QX6HnDSF" Received: from lelvem-sh02.itg.ti.com ([10.180.78.226]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTP id 58897qN5071816; Mon, 8 Sep 2025 04:07:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1757322472; bh=I+OEYV3P6RAdn9e+dnjp6V6LTEnzQUTTg6OwU4gAIao=; h=From:To:CC:Subject:Date; b=QX6HnDSFstWjhl3Na2VLK5e1msp0nT0IBOdbNL8iAp8VW5uZV6DmBaoiriOzjmoKo /PKypUrv28UApFjGZ7N5lP1yiKcwc4uqjbhq0GHCIORj5Fz+/T6tnWcuKiSr8KpPVf Sclh8z15/11XDoOhtS3JPoNZeM4H9qD4ZAd3GE6U= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by lelvem-sh02.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 58897q372856541 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Mon, 8 Sep 2025 04:07:52 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Mon, 8 Sep 2025 04:07:51 -0500 Received: from fllvem-mr07.itg.ti.com (10.64.41.89) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Mon, 8 Sep 2025 04:07:51 -0500 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by fllvem-mr07.itg.ti.com (8.18.1/8.18.1) with ESMTP id 58897p2J2355770; Mon, 8 Sep 2025 04:07:51 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [172.24.231.152]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 58897o8E023014; Mon, 8 Sep 2025 04:07:50 -0500 From: MD Danish Anwar To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , MD Danish Anwar , Mengyuan Lou , Luo Jie , Fan Gong , Lei Wei , Michael Ellerman , Lee Trager , Lorenzo Bianconi , Parthiban Veerasooran , Geert Uytterhoeven , Lukas Bulwahn CC: , , , , Subject: [PATCH net-next v3 0/7] Add RPMSG Ethernet Driver Date: Mon, 8 Sep 2025 14:37:39 +0530 Message-ID: <20250908090746.862407-1-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea This patch series introduces the RPMSG Ethernet driver, which provides a virtual Ethernet interface for communication between a host processor and a remote processor using the RPMSG framework. The driver enables Ethernet-like packet transmission and reception over shared memory, facilitating inter-core communication in systems with heterogeneous processors. Key features of this driver: 1. Virtual Ethernet interface using RPMSG framework 2. Shared memory-based packet transmission and reception 3. Support for multicast address filtering 4. Dynamic MAC address assignment 5. NAPI support for efficient packet processing 6. State machine for managing interface states This driver is designed to be generic and vendor-agnostic. Vendors can develop firmware for the remote processor to make it compatible with this driver by adhering to the shared memory layout and communication protocol described in the documentation. This patch series has been tested on a TI AM64xx platform with a compatible remote processor firmware. Feedback and suggestions for improvement are welcome. Changes from v2 to v3: - Removed the binding patches as suggested by Krzysztof Kozlowski - Dropped the rpmsg-eth node. The shared memory region is directly added to the "memory-region" in rproc device. - Added #include header for memory mapping operations - Added vendor-specific configuration through rpmsg_eth_data structure - Added shared memory region index support with shm_region_index parameter - Changed RPMSG channel name from generic "shm-eth" to vendor-specific "ti.shm-eth" - Fixed format string warning using %zu instead of %lu for size_t type - Updated Documentation to include shm_region_index - Added MAINTAINERS entry for the driver v2 https://lore.kernel.org/all/20250902090746.3221225-1-danishanwar@ti.com/ v1 https://lore.kernel.org/all/20250723080322.3047826-1-danishanwar@ti.com/ MD Danish Anwar (7): net: rpmsg-eth: Add Documentation for RPMSG-ETH Driver net: rpmsg-eth: Add basic rpmsg skeleton net: rpmsg-eth: Register device as netdev net: rpmsg-eth: Add netdev ops net: rpmsg-eth: Add support for multicast filtering MAINTAINERS: Add entry for RPMSG Ethernet driver arch: arm64: dts: k3-am64*: Add rpmsg-eth node .../device_drivers/ethernet/index.rst | 1 + .../device_drivers/ethernet/rpmsg_eth.rst | 424 ++++++++++++ MAINTAINERS | 6 + arch/arm64/boot/dts/ti/k3-am642-evm.dts | 11 +- drivers/net/ethernet/Kconfig | 10 + drivers/net/ethernet/Makefile | 1 + drivers/net/ethernet/rpmsg_eth.c | 639 ++++++++++++++++++ drivers/net/ethernet/rpmsg_eth.h | 293 ++++++++ 8 files changed, 1383 insertions(+), 2 deletions(-) create mode 100644 Documentation/networking/device_drivers/ethernet/rpmsg_eth.rst create mode 100644 drivers/net/ethernet/rpmsg_eth.c create mode 100644 drivers/net/ethernet/rpmsg_eth.h base-commit: 16c610162d1f1c332209de1c91ffb09b659bb65d -- 2.34.1