From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.197 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796351379; b=QZzEnwV9qWca38mAdiel2tDH2NNxdOn9Vumflq1qlre6Dr78q3fHWAE0Oc7JA3eKNdvc eXVoaMIO+ktZEHeaVbH2qo2PjoEiSLgcshg0WtRZKzjSU/OlDKdtazmHpFCnIRKXIdeuf /8hU+v968nCECceo0oa9SUkSMOr9TyXgq9sjQrrEYnNbqSjfJmEoKavJ5DVZgAynCaNG4 KAAMXhdAF2ntNhexmjBixws1OrcqXnMzCPMm+gqpt8h/rQyMCGR7g1p+ofAWvK+7Xv+k9 k/Z7ei2aJd1CnXr0OG3PPcahZkG45Ub+Aew44aUSNzDRY+XrnQpsqS/15R9/rF5/H2g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796351379; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=HjBCW6PqYfxAHy8on28h3TCZY3v8aGr4Ieta78/DY/c=; b=J5RfD63UaYipYsnG+6zfAHufoQm6RIT0cNmHJOiOJ8J3Vq/7FqO4EdNR00yzsiH4XgqW iXtmLCH6w0Rwq72doHd2RdAecWeMC1agiXQI4qmbm1moPa0lKEjivMBwBLRlLC+9gmuyN GOJvz5E3v8DzNYrp0+DksQtNaPh6ViDd5zRtmqsQov/z7bvZ+tAgqfIuw8swsxXJG9lg7 3+rNvmXHPbaAyHCjvWteBfJQUE80f+h5294VXe2YRyLiDwMrH9CaBi6bX5B5RxlSH9K6o py5naQ/u6o+vvfkq5Odd82GBpbXfZV1bi3FRApFXBzlZql2Fbh0WmDF2kWf2e5jBNnQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=eI9+Ou+b; arc=none smtp.remote-ip=209.85.222.197 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2779B606A32C for ; Fri, 4 Dec 2026 02:29:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2779B606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=eI9+Ou+b Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f32050e72so118586385a.1 for ; Thu, 03 Dec 2026 18:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796351378; x=1796956178; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=HjBCW6PqYfxAHy8on28h3TCZY3v8aGr4Ieta78/DY/c=; b=eI9+Ou+bpn7YmbveObRl4s9mb7Elr886/TcfjUxkjnoP5MwpsPTmadgAwonJ+1Ls+I I2RECNS4RarTHSEX91Y7G59F4pkrwCIKHD5LrL5ppiartjwUe2SDIXtiOXhYQCtoW3sA jcMeA+zpgCux3/fBcC2qeZehkm3wws+RSAXvGHTXtE/1rjYbDuu/BG1LAhTdm3N6sDlX 7mUBOeYpM3hAHTZAcaVWJLQ8wQhhg3isMmiaHFc9TKTmW5NWb5PbbSA7ybLbD5o/Uy0V Qt8I8cjWGt9v1onWtGk14SIZGstcvvgp0YuWgmEE7p/yGTwdXaHjlAIYEihx5LEBJi5C uilA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796351378; x=1796956178; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=HjBCW6PqYfxAHy8on28h3TCZY3v8aGr4Ieta78/DY/c=; b=rQ9tZUJ7ya54tSCTgsTuran4PIJ9/f3Z1X27C3G97EinDaD5fN0QsAN4QFA5aAaPlZ 7KN1yhNuerftPa9NIYI4z1SFSKFXhmlEvJZH01E55IZvGkRfUOHtR3RkgqxL1UdWI4p0 0RGD8LeeSSUbn2ngh3iGKw6ud4cYiHKkGO1VZdUwbMFpaGMc32rEPKBGqcVlYj1HpM9g rHbg0jfc3e5F6PMPlIkW+rJDE9Obme0ircBAGEtSdDmXRQpnAWlb1BQuNLsDmuWgs2X1 6r4K5GFohbXtWGdfkTb0nXx0xhYpDJHJ0JPg/LcTD5dJD+APE44Xx08DDo2BCWsFhw8k 0UvQ== X-Forwarded-Encrypted: i=1; AL+hErH5+zQdgMDmAD6B8T0uJMvX/bSnIrlRtGAzYj0+IGb+NQ/MXJ1yGexrh+jRcXYHGUu59sLFnYI=@vger.kernel.org X-Gm-Message-State: APuU4Z+RRtTTMNNQFdK4E5o1fEq/8rpLByeutrKMMZ2UAn966bYIwmAs Vc1M5ka5WFIpDBn5+nShEvmmZ0IoQrXsTxOY7FbwZZchnQCj6M1gIThX24PDRUSq/6ANIZe42VT +Yzanw1MO4w== X-Received: from qknqa1.prod.google.com ([2002:a05:620a:6481:b0:93e:72cb:e68c]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:620a:198e:b0:946:2a0:a11b with SMTP id af79cd13be357-94a82804612mr95687385a.35.1796351377754; Thu, 03 Dec 2026 18:29:37 -0800 (PST) Date: Thu, 03 Dec 2026 21:29:37 -0500 In-Reply-To: <20261203-b4-cs7542-ethernet-v7-0-5d9a6ff7bc96@gmail.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261203-b4-cs7542-ethernet-v7-0-5d9a6ff7bc96@gmail.com> Message-ID: Subject: Re: [PATCH net-next v7 0/3] Add Cortina Systems CS7542 network engine support From: willemb@google.com To: Fil Dunsky via B4 Relay , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij Cc: Philipp Zabel , Hans Ulli Kroll , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Fil Dunsky via B4 Relay wrote: > 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. Allow independent MAC addresses on each > netdev. With PAUSE temporarily enabled for testing, QCA8337 PAUSE > frames stopped transmission on both GMACs with different addresses. > Cortina did not generate PAUSE frames under offered line-rate traffic > or when NAPI stopped draining the RX ring, so this series leaves hardware > flow control disabled. > The driver exposes no MAC-level Wake-on-LAN support. The NI > magic-packet comparator uses the > shared MAC prefix and cannot follow arbitrary independent netdev MAC > addresses. PHY-based wake support can be considered separately once > the PHY capability and board wake path are verified. > The driver compiles for ARM with warnings as errors. On Almond+ an > OpenWrt RAM build exercised LAN1 over each of the two QCA8337 CPU > ports with the standard two-byte QCA tag. Five two-packet ICMP > exchanges succeeded while assigning and changing different MAC > addresses for the two GMACs. RX/TX counters increased on the > selected GMAC in each case. All MTD partitions were read-only and > the watchdog returned to OpenWrt. > 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 v7: > - Address Andrew Lunn's review. Simplify the FE return path and order > local declarations. Separate RX packet handling from the NAPI loop. > - Allow independent MAC addresses, retain NVMEM probe deferral and > leave hardware pause disabled. > - Link to v6: > https://patch.msgid.link/20261202-b4-cs7542-ethernet-v6-0-a8c1905efa9f@gmail.com > Changes in v6: > - Keep zero-budget NAPI polling limited to TX completions. > - Link to v5: > https://lore.kernel.org/r/20261201-b4-cs7542-ethernet-v5-0-0c079f9c8b1b@gmail.com > 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/ > To: Fil Dunsky > To: Andrew Lunn > To: "David S. Miller" > To: Eric Dumazet > To: Jakub Kicinski > To: Paolo Abeni > To: Rob Herring > To: Krzysztof Kozlowski > To: Conor Dooley > To: Hans Ulli Kroll > To: Linus Walleij > To: Philipp Zabel > To: Russell King > Cc: netdev@vger.kernel.org > Cc: devicetree@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > --- > 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 | 475 +++++ > drivers/net/ethernet/cortina/cs752x_ne.c | 1893 > ++++++++++++++++++++ > drivers/net/ethernet/cortina/cs752x_ne.h | 13 + > drivers/net/ethernet/cortina/cs752x_sch_tm.c | 688 +++++++ > 8 files changed, 3254 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 Does not apply cleanly to net-next. Please respin.