🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13479

BCM4908 Ethernet and 2.5G WAN: upstreaming plan and two questions

#13479
From: "Kordian Chmielewski (mlody1212)...
Date: Mon, 09 Nov 2026 23:17
73 lines
14258 bytes
Hi all,

I am porting OpenWrt to the TP-Link Archer AX6000 v1 and AX11000 v1:
a BCM4908 with two BCM43684 radios, a BCM54991E 2.5G PHY on the WAN
socket and a BCM53134 switch for LAN 5-8. The port runs on 6.18 with
OpenWrt main. The AX6000 v1 will be public around 16 November; the
AX11000 v1 runs the same code and follows later. The first patch went
to linux-wireless on 9 November (brcmfmac).

What works today: LAN 1-4 on the SF2 with the CPU port at 2.5G, the
WAN at 100M, 1G and 2.5G, LAN 5-8, both radios with brcmfmac, USB,
Bluetooth, the LEDs and the buttons.

I would like to send the Ethernet side upstream and would like to
check the plan with you first.

As fixes for net, with Fixes: tags:

- bcm4908_enet: the TX ring could stall silently under load (an
  off-by-one in the ring indices); a DMA mapping error left the ring
  inconsistent; RX buffers and pending TX frames were not freed on
  stop; RX frames longer than the buffer were passed up; the RX
  buffer address has to be written before the OWN bit.
- bcm_sf2: with the default egress flow control thresholds of the
  BCM4908 (32 pages) the switch drops frames under load; raised,
  WAN to LAN runs at line rate. Is this net or net-next material?

For net-next, with the device trees through the BCMBCA tree:

- pinctrl-bcm4908: the "mdio" function on GPIO 48/49, the external
  MDC/MDIO pins;
- mdio-bcm-unimac: native Clause 45. The MDIO_CFG bit that enables
  it I found by testing; I would be glad to have it confirmed;
- bcm_sf2: the crossbar routing of the SerDes (the CFE leaves the
  Runner's port on the SerDes as well), 2500BASE-X and SPEED_2500 on
  port 7, and the IMP port at 2.5G;
- the BCM54991E in bcm84881.c: it has no flash, so the host uploads
  its firmware; autonegotiation and the link state are the BCM84881
  driver's;
- the device trees of both boards.

Two questions about the WAN, where I would rather ask than guess:

1. The SoC SerDes (a control register at 0x800c03c4 and its own MDIO
   address) feeds the BCM54991E its 50 MHz reference clock and has to
   follow the copper speed: SGMII at 100M and 1G, 2500BASE-X at 2.5G.
   Today the PHY driver drives it, which I know is wrong. Where should
   it live: a phylink_pcs in bcm_sf2, or a driver of its own? The
   crossbar can also give the SerDes to the SoC's packet engine (the
   Runner), which this port drives out of tree, so something both
   could use would help.

2. The PHY does not answer MDIO until its enable GPIO is high and the
   SerDes clock runs. The binding allows "ethernet-phy-id3590.5090",
   "ethernet-phy-ieee802.3-c45" for a PHY that needs such a sequence
   before its IDs can be read, but fwnode_mdiobus_register_phy() calls
   get_phy_device() whenever -c45 is there, so it reads the IDs anyway
   and finds nothing. With the ID alone the device is created as
   Clause 22, and today the driver switches it to Clause 45 in probe.
   Would a change that creates the Clause 45 device from the ID in
   that case be acceptable, or should the GPIO and the clock come up
   before the bus is scanned, for example as reset-gpios and clocks
   of the MDIO bus?

Whether the BCM54991E firmware can go to linux-firmware, and the
Wi-Fi side, wait on answers from Broadcom, which I have asked
separately. The Ethernet code does not depend on them: the PHY driver
loads its firmware with request_firmware(), and the code taken from
Broadcom's GPL files keeps their GPL-2.0 notices.

Thank you,
Kordian Chmielewski (mlody1212)
Technical Details
Message-ID: <20261109231739.2561930-1-kudzo51@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.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-359663-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.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-359663-linux-kernel-netdev=dewy.ru
From: kudzo51@gmail.com ("Kordian Chmielewski (mlody1212)")
Newsgroups: linux.kernel.netdev
Subject: BCM4908 Ethernet and 2.5G WAN: upstreaming plan and two questions
Date: Tue, 10 Nov 2026 00:17:39 +0100
Organization: Usenet Network
Message-ID: <20261109231739.2561930-1-kudzo51@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="472272"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:GyxyTPABdekK32DbMVJKOCTa/mM= sha256:c3GC+X+t08+eLLtJTG59M4gh3RoqAPWSaZPPYlv/Ljs=
	sha1:+9+cmBhDjM9Io4r053S/xBkj0NI= sha256:+PWCxPfxQoy0klM76jzAlainL7+0oWrc4a+MNohkafk=
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 23808113972; Tue, 10 Nov 2026 02:18:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=gmail.com
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 44PY479AkqCy;
	Tue, 10 Nov 2026 02:18:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359663-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 8916E11395D; Tue, 10 Nov 2026 02:17:55 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id C06776171E4; Mon,  9 Nov 2026 23:17:53 +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=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794266271;
	b=tY+w3qAB6PMeUVEz0WFxrs8Bso6Pg4f0jTwAE+PwmLxH/7rOlH93dQ3zaSvfiyoTfX71
	 85BDZkAXF9/tRJQQTYGP3rKRFuAKxyDgiJ3kiJ99MQ4HHyfA3eG5fhldw/qNq1S3Ghfwu
	 YoAUWNi0HY53UndTe0V9uK9LBO+DeC/3AWfoPoN1lYdqIf0tv+jYNjWi7V2S9JIb9O8Lf
	 jeOr+EMo1tyOEJHKaotc0wEF2iBoC25du5JxyNTjgf3dkWayQ06CyQZNxa6sw2slUZwUZ
	 rSpc/6q9h6BSRV8j4yb9exx2HFERlcel+9ekIILWzWfrUej59Pz7+NIpiYJpSd43+ug==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794266271;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=zfZnkNtscXNAJ3rRdG+HDotXVDvKorvk3Ow5BvApXdQ=;
	b=UKhSfAo7gCABm1uzAr70rcO8ta5eOozMiCoL4qYzXnPlAt8/9v21E4xJB+0XHm6W8Kk4
	 t3cMnwNqiC8uH/IXIiSUWHOjnX8f3Duiu2AFh4qt4wBtyGY2MWpGzk2WlLiEAHtz5AEYl
	 POs7g0gwIUZ2V2ZQKX/UhSUSYcTdsq3mGrEC2GHw81r3fUmJ2e3pC7TjBLVi+oDSBeU60
	 wW8HmEiHvldIng7XNmWLeJQXVSDndLvPhbYc9Hz8h2Dn/zMrzGyNwRw5n/MrtLGflTayL
	 ZRst38kVfc9L8bKqAKzUq/kmmYhQC39aVTzx4kZJcjxhejYiEqf6NxMoivhlodNvB8w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=PNuqizSz;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 2B6D2606A334;
	Mon,  9 Nov 2026 23:17:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=PNuqizSz
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.41
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794266270;
	b=xEQHojxvTTdkwcPi6oi2g1YTDUBhSh+Gr2HUopTwgR8XrMz/c8cH7mjlw2t4FLLqO/i8
	 crxQ5il8FEo4tlExXmMLNnlLmbKSmuuccH31/vv2NLc6OWBct7LBWvP1LtjHrEHt/tUzY
	 PQe5lbFjCCw5m8BzlqxTLg18QeZCITAif/iwG9ZvO5J22E/ah1IjX7Hdpt7106nTjpFY/
	 bwcHXF+fITr333k5thp8Q8bsM+grx0QAUg5Y8aya22gi58Nr36ph1GZ1xJpMpIrVx6plh
	 9QeoLH1eoPv6jlQ67yuBnAlu0R2NBBsShUytpJWNhqDgNhq3xbK1HMQzaRF5yASByrg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794266270;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=zfZnkNtscXNAJ3rRdG+HDotXVDvKorvk3Ow5BvApXdQ=;
	b=WUh2CWPH0YJr64E92NETgUUtmz2FdA0Y0cg7kkm8/po+0o3ux91gOthRPuWPs0GFUHRp
	 kVAkhWj7gWoZjQN28Z66ZpnW/6yCsSHMzOYF+ivmqMVfG9frM2EaW12OwqjZwMHX2S2kH
	 FKMCWHV+Rm6OrxMMPZ5rQi60kTN9GYtT7CQXtFypBfILoF0nP1qj6VHpbnmlQ2oQQ5zBw
	 SgYf8hbVqjICXAcTLXoCLQiWs4njx99A8rJE2tMldATGA9qzPHZFyDj84Oo++3Xbi+3nL
	 5dup4jvbMyTVz0l8IUaZXp7DdgGJ+MVKZd+W9TFKg4imoAf//e8PvWCCEnOTbEeIwug==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=PNuqizSz;
	arc=none smtp.remote-ip=209.85.218.41
X-Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41])
	(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 E31E6606A321
	for <netdev@vger.kernel.org>; Mon,  9 Nov 2026 23:17:49 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E31E6606A321
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-c4d581da0aaso147683966b.2
        for <netdev@vger.kernel.org>; Mon, 09 Nov 2026 15:17:49 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794266268; x=1794871068; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:mime-version:message-id:date
         :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=zfZnkNtscXNAJ3rRdG+HDotXVDvKorvk3Ow5BvApXdQ=;
        b=PNuqizSzcAOiS1i+BSw15C7WG69iLGMME4JAJHWYzfUNLhr0h2Ex04qdJl8+Mbd9Qn
         LQFtjtrzay4cnLge9ruWVpN11roLzTBuGJben9YEndvKCPUTspUVneir+nWJjhCbLxcD
         vgeONHrf0npyoDu/VAheUUWjm6nwA3i2S39b/kka6/n8Yiu/r0uT38xbQixDyvdf+AGu
         hUnkdlThyMqYJY1Grwq/TX9u7hk8D3smEGnNR+Yr9ntpoPBbYQFIEfkR1XMT0SOazVhN
         DX5nCpmi23/TmYZq7tD8VQM7ISzCxe0XgnT07hZtwp4EVij2YtMHczopFvXUT+Wn8Y2y
         LLnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794266268; x=1794871068;
        h=content-transfer-encoding:content-type:mime-version:message-id:date
         :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        b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D2D8GqM7Hcg8/nsmncItjPC
	zcdVqq4oi5pCJf4vyzaqJhRpG3w9TCm8qDW3+YDXkXR9p+M7pVmy4qFXmSNiDev29huRFvuqN/U
	QIeCQR+D7Qq8oq8b0cGcUmqiuxj+4oD1qQAsp0sXNLk9hJD4eb5nwmc=
X-Received: by 2002:a17:906:4fcf:b0:c2e:2d8c:4585 with SMTP id a640c23a62f3a-c5049612785mr59440566b.36.1794266267998;
        Mon, 09 Nov 2026 15:17:47 -0800 (PST)
X-Received: from localhost.localdomain ([2a13:e746:396c:c600::8fa])
        by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c504a56f377sm29433366b.18.2026.11.09.15.17.47
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 09 Nov 2026 15:17:47 -0800 (PST)
X-Cc: Florian Fainelli <florian.fainelli@broadcom.com>,
	Jonas Gorski <jonas.gorski@gmail.com>,
	Doug Berger <opendmb@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	Rafał Miłecki <zajec5@gmail.com>,
	bcm-kernel-feedback-list@broadcom.com
X-Mailer: git-send-email 2.56.0
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