Article View: linux.kernel.netdev
Article #24819[PATCH net-next v5 0/3] Add Cortina Systems CS7542 network engine support
From: Fil Dunsky via B4 Relay
Date: Mon, 30 Nov 2026 22:07
Date: Mon, 30 Nov 2026 22:07
102 lines
16255 bytes
16255 bytes
Add the CS7542 CPU network datapath with phylink for three GMACs.
Almond+ connects two GMACs to QCA8337 CPU ports handled by DSA.
This series depends on the combined CS7542 global controls v6 series,
posted separately against Linux v7.4-rc4. The consumer acquires the NI,
FE, TM, SCH, QM, DMA and NI-XRAM reset controls exclusively. Board DTS
support is separate. The verified 64 MiB no-map queue-manager reservation
is required. NAND uses PIO; a separate SSP DMA consumer cannot run
concurrently with the shared DMA reset domain.
Use normal NAPI weight 64 and external-DDR QM/TM setup, with no module
parameters. Support scatter-gather TX and multi-buffer RX, bounded
initialization, tracked DMA ownership, shared NI register serialization
and protective reset before freeing active mappings. No checksum/NAT
offload or performance capability is added.
The port byte counters previously wrapped at 4 GiB on 32-bit ARM.
Use the network core's 64-bit per-CPU totals and preserve the existing
error and drop counters. Load the low four MAC bytes as an unaligned
little-endian word so the upper byte does not enter a signed shift.
The driver compiles for ARM with warnings as errors. The new changes
were checked on the host.
Earlier combined-kernel Almond+ checks covered reset/probe/removal, LAN1
protected-data transfers and automatic watchdog return to normal OpenWrt.
Separate earlier fixtures checked 600 UDP echoes, 20 ICMPv6 replies and
448 scatter-gather/jumbo frames. Protected-region hashes and flash layout
matched; unrelated concurrent settings activity was excluded from any
unchanged-settings claim. These observations predate the new retry/context
fixes and are integration/functional checks, not throughput or offload
results.
---
Changes in v5:
- Use the network core's 64-bit per-CPU packet and byte totals.
- Pack the MAC register value with get_unaligned_le32().
- Update the global-controls dependency to v6.
- Link to v4: https://lore.kernel.org/all/20261127-b4-cs7542-ethernet-v4-0-ea4d8cd6ef18@gmail.com/
Changes in v4:
- Bound DMA-owned RX head polling and defer retries with the IRQ masked.
- Schedule NAPI with bottom halves disabled from process context.
- Link to v3: https://lore.kernel.org/all/20261126-b4-cs7542-ethernet-v3-0-5db5d372e1bd@gmail.com/
Changes in v3:
- Include FCS in RX buffer recycling and retry transient descriptor ownership.
- Validate the shared MAC prefix and reject sibling-clobbering changes.
- Drop the RESET_CONTROLLER select from the Ethernet consumer.
- Rely on reset provider error propagation instead of redundant status reads.
- Use bulk deassert on bring-up; preserve all protective assertions on teardown.
- Link to v2: https://patch.msgid.link/20261125-b4-cs7542-ethernet-v2-0-d0ea3c6eb375@gmail.com
Changes in v2:
- Use the common parent provider and all seven exclusive reset lines;
remove the virtual reset child, duplicate provider and consumer hook.
- Assert and verify every line without protective-assert rollback;
retain active DMA allocations on any error and deassert in reverse order.
- Use rgmii-id in the binding example for switch-inserted RX/TX delays.
- Remove module parameters and unused internal-buffer mode; retain the
previous default external-DDR initialization policy.
- Use NAPI weight64, plain static MMIO helpers and goto-based open cleanup;
retain the lock-protected publication and stopping gates.
- Serialize shared NI RMW and stop on the first scheduler command error.
- Keep MAC preflight before hardware cleanup registration and preserve
a late NVMEM probe defer instead of replacing it with a random MAC.
- Recycle bounded RX fragments also when the frame is dropped.
- Poll already queued RX after open and retain safe closed-port TX reaping.
- Review Sashiko 231860: existing NI/SCH/NAPI fixes address the older v1;
temporary BM initialization bypass clearing follows the vendor sequence.
- Link to v1: https://lore.kernel.org/all/20261123-b4-cs7542-ethernet-v1-0-fdb5e8c2d508@gmail.com/
---
Fil Dunsky (3):
dt-bindings: net: Add Cortina CS7542 network engine
net: cortina: Add CS7542 CPU network datapath
MAINTAINERS: Add CS7542 network engine support
.../bindings/net/cortina,cs7542-ethernet.yaml | 162 ++
MAINTAINERS | 7 +
drivers/net/ethernet/cortina/Kconfig | 13 +
drivers/net/ethernet/cortina/Makefile | 3 +
drivers/net/ethernet/cortina/cs752x_fe.c | 477 +++++
drivers/net/ethernet/cortina/cs752x_ne.c | 1964 ++++++++++++++++++++
drivers/net/ethernet/cortina/cs752x_ne.h | 13 +
drivers/net/ethernet/cortina/cs752x_sch_tm.c | 688 +++++++
8 files changed, 3327 insertions(+)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261123-b4-cs7542-ethernet-59c15dbc7e7e
prerequisite-message-id: <20261129-cs7542-syscon-v6-0-553dc4c01460@gmail.com>
prerequisite-patch-id: 27fe25055bcadb3c3fbc8b6788f31c2fb791df38
prerequisite-patch-id: ae69b5cca6f4604972300a89411bdca0ea19ab57
prerequisite-patch-id: 55dc4f1e91fc85340c4422438225f50fdf636799
prerequisite-patch-id: 66fccae72a8f951ac0ee182490e98543af29bd89
prerequisite-patch-id: 7fbe9405265ef3d1ec62811415a46c0061afd7c8
prerequisite-patch-id: 01ece2c91e080d5cae6af81944159373776484ca
Best regards,
--
Fil Dunsky <filipp.dunsky@gmail.com>
Technical Details
Message-ID:
<20261201-b4-cs7542-ethernet-v5-0-0c079f9c8b1b@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374495-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374495-linux-kernel-netdev=dewy.ru From: devnull+filipp.dunsky.gmail.com@kernel.org (Fil Dunsky via B4 Relay) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v5 0/3] Add Cortina Systems CS7542 network engine support Date: Tue, 01 Dec 2026 01:07:07 +0300 Organization: Usenet Network Message-ID: <20261201-b4-cs7542-ethernet-v5-0-0c079f9c8b1b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1551445"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:T3AUKCO4pnoU5rOBHjPmFXieEfE= sha256:NunCOI3KpZcxMEXeQvlJml1deMXHbLpmNurvH1E8zWE= sha1:9iS0Fm9iiVHrc9kSkiETsJK9fZQ= sha256:5JCaF94y9DrrR+Tt75pMLi13vFvbzlnnUSVYkGpyry0= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 9F4B5126010; Tue, 1 Dec 2026 01:07:49 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wmsn3GRyLUSH; Tue, 1 Dec 2026 01:07:45 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374495-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id DB504126007; Tue, 1 Dec 2026 01:07:34 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 583AF2D54D; Mon, 30 Nov 2026 22:07:30 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796076448; b=b7d6iotpEncoNAinS9sXHaXR5ykvn0mEMDrIzLzuPnXSCuHec/0po05ASxY/bWIunxHT 9QQjXQygXijBqzoka1BzObYS/otkh75QN4ZoYES3Weff4WM6+deJivFl/qARtzFhsGw6R L/OFTjDQZbO8OrAZ5xxRb0ChBikoeNNO6GGAZu7CINDgXql2lQv+Pk545qwsCzbxC/kmC HOoiEsCVlIFf4b51DiTsTYitH9fSxrYDbQuuuzQ6FdhCFGRlTnNZ9Em+shNB5uS56xJVm XsY64cv3iRcFo5IBc5akcsu5XfPj4DJlAk1YVQA8NnOBfDHeWq3dXjh1rWjZapA4mlg== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796076448; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Subject: Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=S5YL92sleotCd03czChW6G9u2Vb3lqlJNMFAeu2Cg2s=; b=Gaq9+fJtkW8r7GNWvcbjmc1FwpNrxnuCC1DgNn8OKbB9duuGNDCMhBYigF4kyhv2MRB9 2e75i6J7Xk9h+o0DxnEzzsCjaZAxDZelw1ydpdIiPvbOlySwlpN0GegumY0Xto7/2Iiig PCCmMmFhjoQmZGzs6fsNr4DxP09DjYn2J5iP22x6KkSurZ7WuqYX9nAu6MLWlZy5RO9/4 B3aulzMvSzhxUtNl/pkSkx9zdKtfkaITX6Tv4MFea06r+oLXwNkSJRuq6LYBBMDTZwym9 21tWItl6IfKoBW1R3pwnNcSADZ5Yk/5QaXwfHyyW40P4FShMQlEZbD2ikci208uXr8A== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fvkbfkyA; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7DA8606A682; Mon, 30 Nov 2026 22:07:28 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fvkbfkyA X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796076443; b=JtfxCHXgh4TZ3A6IJymKey1ovKISfyc1c1uesdEamStFXJiJ43/rVx5qWEinaIFkgkft lR00EEtSXVDfJM99acLrx3cJCCQmapbReuL7Ib+emWooEYiPVsBeykQBm4MBtmI+xfH9+ geewDcsn+dA+QCz0IitJ4ZY0EOnWB9jbJxLGODH6hb7mawdIbQ8ZVE9oyuO4RTpoIdAU1 3ifIi5oiX9uxw+KYq+uLAnr4YVTDXxRvs1DQhskB6wqb5ARmYK//ZL5HNKlJYeOZJymRZ yFrIv1pSvCO1F5p5myihAPKLTvH06otox5E5+YbgxpdSvne4iWSKx5F3Uq86TLQSQ5w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796076443; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=S5YL92sleotCd03czChW6G9u2Vb3lqlJNMFAeu2Cg2s=; b=rf4MMNllq+/r5/SrWpD6yzBSduZgEzHRuHG0u7XdIEHaWeGfUesYA7nu0z6KuuABQTN+ CLtEVO3ZzYo9L/PAg5kIkTyOcds2X49YwZn3G5/+Bk7GuZ1K826q8mBSh/WZ//G3NobV6 3SDx4vIGtzzvsudv2Wo1BSovQtTQI9yzRf3qhOJauj8GI/8tCJDQ88FkKPl22h1qI8ICv qomBpn7sN37xVv4FY1ARxqFkH+CzJclByIUeyVQpiC3giqgcqUwLjQwjSN5WBQKAkhCrc GEPZkJJduBV013IY7aGZTdFNUseGOth4Ttx5N8IlDZgekLaeqtR6/MXs5AJGiJxvhOw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fvkbfkyA; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DECC7606A31A; Mon, 30 Nov 2026 22:07:22 +0000 (UTC) X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796076442; b=CZlx7RxmJpS5qnHgbZQSAIc5WjVa/7iXy8U1c2eNv7qqx5IoBYKb8+rJ4Aej59hLz/Jn kuJAo131rwknEe9A26dll4BihFRze/us5yFLRteW+YC+cqf8/c06F5zRdajRaDpDoyHjD GYS5xsKdrqBE89KaTjm2d4uRqQcx2SNC1sfI/BD7hinonPJNi1kbA0EcpttAOBp3gUmyV jjwntej/MO9FB4cyb0cyX3Nx2qClZRT2KEwN1XY16uzNsh/aSwGnDfT/jLqQTRIyFbxFa J3/B8lGRpH5fbt7aECmo+CxIxMogZsgXtoz+Kdlw1rCTM1WWJuCxebJ8pZzU6GDMo5g== X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796076442; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=S5YL92sleotCd03czChW6G9u2Vb3lqlJNMFAeu2Cg2s=; b=KNpejt+UXEJITpQm3Xsei3c6jQuTSrSqU9yF64jP+i8ON1YD85d+zJ6NDbfLeVswCkar nHYW4FCb0hTdfdooPh3vSnrSG81nWMH4QB/k+9AGGQQDLMOLC/2mlMztgB4ZgYl7R613m 6aCZH/5TNJRsG242yZgy8pMk5JQWwrrNumuvvwLm8DvWvjojbfQgS7vYwurNKOCM4cuBd dfHjLq6sOapwZWdW2MpJtvBUp4Ew1VtHZfI0OqRGhCOVsRfyhi5VlP9p/F3QyTRgnh7Re Bg0YXNzWnnOqMeUUkQ2FsoIUnLsNyWVFPGHZXAI8weq0eTZTqTnv4MRYBqZqS20hOZQ== X-ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 5772C1F00897; Mon, 30 Nov 2026 22:07:17 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796076442; bh=S5YL92sleotCd03czChW6G9u2Vb3lqlJNMFAeu2Cg2s=; h=From:Subject:Date:To:Cc:Reply-To; b=fvkbfkyASO5q+JxSG5TFtUjF9brNhM/1uP5rKyM2qcmsx3ZgtFHG2aqFjhM7SpQJU StzZcxNkWyHQjc//hdzOz/rZhS+Yn3agbUNJrFIU7HN7kBhCNlR3sk4BmMd0yyFHHK nsgyAq4qa3WY1rwxSB0CcGalB7FMGBizqvTFgOIJD6I7G1+IfPUg4XvvWzaHWQ+P3y C2RDH/979X/QiU/ZM+uAK3kwpqjmIF17F9MIbplSiiK/drQbKnP8ldXC0qXORitN2V SZ1k+wIb/cSlu00NNwv7MBrIXHlIGjiFFOR566zRu+OxddnIfNf0J6ki7S8fXpD3hz yUWA9PCLX0qLg== X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id AD3734EA58; Mon, 30 Nov 2026 22:07:16 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-B4-Tracking: v=1; b=H4sIAAAAAAAC/33Q207DMAwG4Fepck1Qc04nhHgPxEXiOFsQbaHJq k3T3p20DDHQxKUV+/PvnEjGKWEmm+ZEJpxTTuNQC3XXENi5YYs0hVoT3nLNGBfUSwrZKMkplh1 OAxaqOmAqeDBokNTB9wljOqzoM1kaBjwU8vL1kvf+FaEs5qV3wo993VsuA95lpDD2fSqbxmvXR SckoGTWgNddEKCsddL7GEEwwLrZxoXqMWe3Bt40D5e83XfYfMwwDnTWtKVKiQASWiZ1+7TtXXq 7r/se14S7lMs4Hdf/mNka6L/TZ1a9GLxCCzyo1v54Kzfza0LdJHglQotOgEYvjPpLiGtC3yTEc lVNEYThyHz4S8hrwtwkZCXQyWAhaIzs1yHn8/kTUEudcykCAAA= X-Change-ID: 20261123-b4-cs7542-ethernet-59c15dbc7e7e X-Cc: Philipp Zabel <p.zabel@pengutronix.de>, Hans Ulli Kroll <ulli.kroll@googlemail.com>, Russell King <linux@armlinux.org.uk>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796076435; l=5477; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=NCHPu1s8xiBDc3xsQCtrxnS1Ax6debZ8yPS1uz029qg=; b=s6dq3/t+2IByFLi+nmhh+kFBofYnLs6ETfEaXbWDwX2p3WgSD/4kD1C+NeZtU4I/gsxRWAcQg aiBab7xbCpHAFA1NhmyX0JWEnIzHB1bPxpProIep0jZCouKikY9jHft X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 X-Original-From: Fil Dunsky <filipp.dunsky@gmail.com> X-Reply-To: filipp.dunsky@gmail.com