🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24358

Re: [PATCH net 12/14] net: phy: as21xxx: Configure autoneg advertisement via IPC

#24358
From: Andrew Lunn
Date: Mon, 30 Nov 2026 03:43
32 lines
9667 bytes
On Mon, Nov 30, 2026 at 02:55:19AM +0200, Cristian Ciocaltea wrote:
> The PHY does not properly support the Clause 45 auto-negotiation
> registers that phylib writes from genphy_c45_config_aneg().  As a
> consequence, restricting the advertisement from userspace does not have
> the expected outcome on the wire.  For example, setting it to
> 2500baseT/Full will confuse the peer, as 5000baseT/Full still shows up
> in the link partner advertised link modes.  Even worse, setting it to
> 100baseT/Full + 1000baseT/Full will end up with a broken link, because
> the peer would only see the unrelated 2500baseT/Full + 5000baseT/Full
> modes.
> 
> Since the firmware owns the advertisement and is reachable over IPC,
> implement the .config_aneg callback and pass the highest advertised
> speed.

That is not technically correct.

	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full

There is free choice of any combination of the supported modes.
It should be possible to ask it to advertise

	Advertised link modes:  10baseT/Half 1000baseT/Full

I find it surprising it is totally broken. 10/100/1G are often in
vendor registers, so you might need to implement those link modes
separately to the standard C45 2500, 5000 and 10G.

	Andrew
Technical Details
Message-ID: <aef4a28a-d59d-45f1-8215-77600288a174@lunn.ch>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373827-linux-kernel-netdev=dewy.ru
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-12-1bd2eae6ccbc@collabora.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373827-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 12/14] net: phy: as21xxx: Configure autoneg
 advertisement via IPC
Date: Mon, 30 Nov 2026 04:43:14 +0100
Organization: Usenet Network
Message-ID: <aef4a28a-d59d-45f1-8215-77600288a174@lunn.ch>
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com>
 <20261130-as21xxx-fixes-v1-12-1bd2eae6ccbc@collabora.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1324349"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:t58zzKMPnUW8brwK/OGIpvNQtE0= sha256:0YgODuseDayHD2XknrwbytJJ8hgONm6asmwNWPMGoDc=
	sha1:TWYLfym8cf8UFcg/IMtz6rkE4+o= sha256:ZUkdtvK3WobAMERO81Jp1/yvFUJWj+mYBbJxF3yY1vU=
Content-Disposition: inline
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 0DFD6125FBD; Mon, 30 Nov 2026 06:43:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, 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 (1024-bit key)
	header.d=lunn.ch
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 riOgYzVU-RIT;
	Mon, 30 Nov 2026 06:43:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-373827-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 30F23125F93; Mon, 30 Nov 2026 06:43:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id A7CDE21746; Mon, 30 Nov 2026 03:43:28 +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=1796010205;
	b=PeQyusJYrlelaozbXHirsULHW+gZVeEcXOdiOAO3VofCrRIBQyf842Wy3przajK600J0
	 4xh1gJpWYafnYLD/I1J3d0Xlh21XCsYTOQWl+PDurS+TQgYqpuMwBzKNqqoJ6Us7QreKT
	 2/HH8/gMgbtKg8CG/yWzIx7Ty1HXS9EHdsgRemtXnPHzlwsFRUSB5SUBYRgUlY1doBVlr
	 Pt4DXU7Q779L7xcxXXnWqFKfg6b8XQdY6VPWafyRcbPktXOtrUAPQDLejQs2bkLrv1Qs7
	 EEvRDa8K9F5eiUlKTQnO13c6tqiw5/YfsyKheG12tP382ERwf5CkYurz/eGWSXIP7BQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796010205;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=HJ/tCobuq4XHeNFlGyaJweq3xX+kdYxwtX+vXUUwlfI=;
	b=ehK55hitNcfNBwyzYKxPRB2issswDOxhLAgxU0FF01704YEjaLNyUaEzgUrSCO1l+vIm
	 8gvQ5WaAvVHKsA0io/Z+NiW0HV6+4LbQohWfjHzINZYMZjXBs/mtu/GF13EzRLnW+5fre
	 7VdjBI5NaTJcRBQsxQo+UK/yNQG4lygJZyoEWxGJl+U9J26HHqHNDpFXy5EXqpqY7vl0i
	 Fj5fREIU9sDYdcC1pTAofbcsTzqt2DhbPhU04ckgelHbawwUJ0iziD/eUY8TE9Md/U+cd
	 MvE40XAloJ3cEiYY7z+af1IX3gy1vpL968GBBd1TCqHmh0fcZcG3u159X8Ip7/IpBAg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=2CNoc8TH;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 D10A8606A32D;
	Mon, 30 Nov 2026 03:43:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=2CNoc8TH
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796010205;
	b=WyTgtW089GjvUjq5z9l51EibOSZUx7U9ikT9UCu6wp3VpTau0KIHJ/oBf6J+xD/T+fxb
	 0ELltPUX+97oAdgwgf80Z27OIhcHCnxtt6X6B1wJr60wsp2AX6Fnpvlafr4dmYod3ZxWE
	 a+feCCqGspMc1x3RNlPWeNqLlPRgV1QO+biLkQqJr4+nJNs0RZoWiin6iK/kSb6kyZiL4
	 QpkLyztjNOX1Y/4hJb9iR4zmmSUd62FSeCYbaI+Zc1SShPb0h6ZirXIU7jsc0bH/6grp8
	 nt/cJQ/AsxL0t+33/wAAL3u2AmnOjNIvvSvUAE8/6VIkGM72u01nnjpIqjyLMcLFg1w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796010205;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=HJ/tCobuq4XHeNFlGyaJweq3xX+kdYxwtX+vXUUwlfI=;
	b=JNlvFTu7187pAcZPBouSbMQ1ndyygm7h8q8JgiIble6JGQn+i1YvBUteThk6aN5+kpoJ
	 hXcuLBoOXSuvtbtNZ3EXvwL0tp6461HIbf3RszSMFkY3vG5c8se5YIeF+O3J98dtkeTjo
	 OZcZrN7Sh4ioTYM6L7NmI7F0Htw3zuyIKO+BmDKPrak2PFEvbbrvdCXIXZKJtPoAiqOxi
	 c7Uqw7ue79dq/sBAWUCu84x8FGHU9L2Gch8ca8NrGD3RdG19TiNDFRNMSAlvmPDgZUO6b
	 mfaYtDLpHoWmCr/JPkfDfXdf7aMRE8VWlbiRSliqRWnCKtJgUEXaVf0KZWa9EV9CKaw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=2CNoc8TH;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAD15606A31C
	for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 03:43:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AAD15606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=HJ/tCobuq4XHeNFlGyaJweq3xX+kdYxwtX+vXUUwlfI=; b=2CNoc8THYh9kPC/40kegN0uD4B
	m81GKBeDiiolqLeTmNqcxs0atwb5kvtdsU9ck2NuEWzJgs2M/RC9L/VGtJJgGCAfdrBwWfgEASAwD
	5esUo/Ld2FcoDhLT+lbdq5WiTUoW3NIVJIphR0hlQSF6bFDDAprCtwLat5XgaY0DbpoE=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xXsIM-002HHg-Ec; Mon, 30 Nov 2026 04:43:14 +0100
X-Cc: Christian Marangi <ansuelsmth@gmail.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	kernel@collabora.com, netdev@vger.kernel.org
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-In-Reply-To: <20261130-as21xxx-fixes-v1-12-1bd2eae6ccbc@collabora.com>