Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: cortina: Add CS7542 network engine support
@ 2026-11-23 18:44 Fil Dunsky via B4 Relay
  2026-11-23 18:44 ` [PATCH net-next 1/5] dt-bindings: reset: Add Cortina CS7542 network engine reset domain Fil Dunsky via B4 Relay
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Fil Dunsky via B4 Relay @ 2026-11-23 18:44 UTC (permalink / raw)
  To: Philipp Zabel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Hans Ulli Kroll, Linus Walleij, Russell King
  Cc: netdev, devicetree, linux-arm-kernel, linux-kernel

Add a CPU datapath for the Cortina Systems CS7542 network engine and
an exclusive reset provider for its NI/FE/TM/QM/scheduler/XRAM and
DMA-LSO/SSP domain. The three GMACs use phylink; Almond+ connects two
of them to the CPU ports of a QCA8337 switch handled by DSA.

The driver uses NAPI receive queues and a shared coherent TX ring,
with scatter-gather TX and multi-buffer RX. Hardware-returned RX
addresses are checked against tracked mappings and their ownership.
Indirect initialization waits are bounded and errors prevent activation.
Unregister/remove drains ports and software work, then confirms the
complete reset domain before releasing DMA allocations. If reset fails
after activation, those allocations remain pinned until reboot.

The whole DMA-LSO/SSP block is exclusively owned. Another SSP DMA user
cannot run concurrently; the separately prepared CS7542 NAND driver
uses PIO. Initial QM support requires a no-map reservation of the upper
64 MiB of the verified 512 MiB DDR layout. Hardware offload, unverified
coalescing clock assumptions and power management are not advertised.

This series depends on the CS7542 global clock/pinctrl v1 series:
https://lore.kernel.org/all/20261123-cs7542-syscon-v1-0-49858e631449@gmail.com/
Both series are based on Linux v7.4-rc4. Board DTS enablement is
kept in the integration branch and OpenWrt target, outside these five
patches. The reset provider and Ethernet driver do not depend on the
Cortina platform Kconfig symbol or COMPILE_TEST.

Validation on Securifi Almond+:
- Full independent ARM vmlinux and module builds, =y and =m, with
  COMPILE_TEST=n and no platform series; DT schemas and examples.
- Actual helper fault-path tests under ASan/UBSan, including RX ownership,
  TX mapping rollback, probe failures, table timeouts and reset failures.
- RAM module lifecycle: 132 checks / 0 failures, ten load/unload cycles,
  active-port teardown, reset readback and reset-failure DMA retention.
- External LAN1: 600/600 UDP echoes with byte comparison and 20/20 ICMPv6
  packets with 1400-byte payloads; no GMAC RX/TX errors.
- QCA CPU6-to-CPU0: 448/448 nonlinear packets, including RX buffer
  boundaries and 8192-byte payloads, with TX descriptor-ring wrap.
- Combined RAM test with PCIe and read-only NAND: all six PCIe devices,
  protected NAND hashes while the NE reset is held, and Ethernet reload.
- The original 14 protected flash/configuration hashes remained unchanged
  after returning to the installed OpenWrt.

Only LAN1 has been externally cable-tested in these runs. No throughput
or entropy claim follows from these functional checks.

---
Fil Dunsky (5):
      dt-bindings: reset: Add Cortina CS7542 network engine reset domain
      reset: Add Cortina CS7542 network engine domain control
      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      |  139 ++
 .../bindings/reset/cortina,cs7542-ne-reset.yaml    |   42 +
 .../soc/cortina/cortina,cs7542-syscon.yaml         |    4 +
 MAINTAINERS                                        |    9 +
 drivers/net/ethernet/cortina/Kconfig               |   14 +
 drivers/net/ethernet/cortina/Makefile              |    3 +
 drivers/net/ethernet/cortina/cs752x_fe.c           |  477 ++++++
 drivers/net/ethernet/cortina/cs752x_ne.c           | 1783 ++++++++++++++++++++
 drivers/net/ethernet/cortina/cs752x_ne.h           |   13 +
 drivers/net/ethernet/cortina/cs752x_sch_tm.c       |  679 ++++++++
 drivers/reset/Kconfig                              |   10 +
 drivers/reset/Makefile                             |    2 +
 drivers/reset/reset-cs7542-ne.c                    |  114 ++
 13 files changed, 3289 insertions(+)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261123-b4-cs7542-ethernet-59c15dbc7e7e
prerequisite-message-id: 20261123-cs7542-syscon-v1-0-49858e631449@gmail.com
prerequisite-patch-id: 4b568d742095f1a61312c911d2b6e81c8e754312
prerequisite-patch-id: a4bba26a3aac57e4e4229a727fdf94677373493a
prerequisite-patch-id: f8a2ba71717f71ca2bedda986f8b861995cdc586
prerequisite-patch-id: 7a2275c69dcde437fc8badf2bba06d451943a66f
prerequisite-patch-id: 25220835f5d2506a01ba652d86f9b9ac3ad5121a

Best regards,
--  
Fil Dunsky <filipp.dunsky@gmail.com>



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-23 22:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 18:44 [PATCH net-next 0/5] net: cortina: Add CS7542 network engine support Fil Dunsky via B4 Relay
2026-11-23 18:44 ` [PATCH net-next 1/5] dt-bindings: reset: Add Cortina CS7542 network engine reset domain Fil Dunsky via B4 Relay
2026-11-23 18:44 ` [PATCH net-next 2/5] reset: Add Cortina CS7542 network engine domain control Fil Dunsky via B4 Relay
2026-11-23 18:44 ` [PATCH net-next 3/5] dt-bindings: net: Add Cortina CS7542 network engine Fil Dunsky via B4 Relay
2026-11-23 22:05   ` Andrew Lunn
2026-11-23 22:31     ` Fil Dunsky
2026-11-23 18:44 ` [PATCH net-next 4/5] net: cortina: Add CS7542 CPU network datapath Fil Dunsky via B4 Relay
2026-11-23 22:24   ` Andrew Lunn
2026-11-23 18:44 ` [PATCH net-next 5/5] MAINTAINERS: Add CS7542 network engine support Fil Dunsky via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox