🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24595

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

#24595
From: Cristian Ciocaltea
Date: Mon, 30 Nov 2026 12:05
37 lines
10381 bytes
On 11/30/26 5:43 AM, Andrew Lunn wrote:
> 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.

Yeah, this was unexpected for me as well, but I later confirmed it with the
vendor: the firmware doesn't support arbitrary combinations of modes. It can
only take a top speed, and everything below is implicitly advertised :-(

Cristian
Technical Details
Message-ID: <9353844b-ac67-49b8-a89c-fa66e3ce0d63@collabora.com>
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-374152-linux-kernel-netdev=dewy.ru
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-12-1bd2eae6ccbc@collabora.com> <aef4a28a-d59d-45f1-8215-77600288a174@lunn.ch>

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-374152-linux-kernel-netdev=dewy.ru
From: cristian.ciocaltea@collabora.com (Cristian Ciocaltea)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 12/14] net: phy: as21xxx: Configure autoneg
 advertisement via IPC
Date: Mon, 30 Nov 2026 14:05:24 +0200
Organization: Usenet Network
Message-ID: <9353844b-ac67-49b8-a89c-fa66e3ce0d63@collabora.com>
References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com>
 <20261130-as21xxx-fixes-v1-12-1bd2eae6ccbc@collabora.com>
 <aef4a28a-d59d-45f1-8215-77600288a174@lunn.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1419512"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:FU0Rew6o5dUA7dFKW1eQiVgry0I= sha256:V3YfmmsdHrQL9CRCWDoEXIc0jRoCqaQWDlqSm8sga9o=
	sha1:JrlJ/4OyV3VKZ+k3ulAOG4HoYFU= sha256:4Qo36wsX/sG19hDkYDbXsTtpyf/emHW0N31DaOGEfnY=
Content-Language: en-US
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 2D3E1125FDE; Mon, 30 Nov 2026 15:05: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 (2048-bit key)
	header.d=collabora.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 GeZ2CzvEPC85;
	Mon, 30 Nov 2026 15:05:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374152-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=collabora.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id D2EF6125D23; Mon, 30 Nov 2026 15:05:31 +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 5C0B82C450; Mon, 30 Nov 2026 12:05:29 +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=1796040328;
	b=ZbFUpCriMmKOW1G8JPSD01avFeFowRn1VDiJiud/qyU2V2DjGoSRYwbP5ZYVgxn0YPf2
	 LenTsdldt8/YUoFI/ZB9b5btH1U7poEoeb3ZAzQUWntqsuB7VKl3uNgbPwzSNHaibrfBW
	 MxzOew7OUIdLuBdtClwD94WGZNZnbotC7hHR6BvaINJZ8vOiETK+7lSn7JXFfz34stl2I
	 VjJn7IAmw0DAGOcryJTlxDnNw2fVvmKHwz2cZe8sYgtAcTfvp3Yf5R2iVvRlfylgw83Ks
	 eKWdm4r7V3KzBEP968LI9q+W/k2Tj0eSP+JCGd+vuZkhem6Y4yNa7w6MjI0HyicrniQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796040328;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:
	 Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=c5svYkAkd7HI/Rh0OBo5cThcLnMpnVO133cKbBF6Yso=;
	b=MFxr/TwYmB+54ZBAgfyQaWwnH3e5L+I/zO1D6M1XN7VSJP1YekPHcPWRQFxijCwNhy1D
	 J9JtX+CeJ1roxjhzSvo0l5HKQ94LAQAbEcrhTK26upVJexydU13RvmsE4GRP60gk316Ey
	 0Cvl/Y6WRwSM4A145W/O7Lc27hmQe9M469ExOsWwasWwcGeRxwFCWAH8/NQts6gB3DHcc
	 egVpBUvWugnQ93jYD/COC+ndKtm/BdouHEFMILBuAMTCkJXSLXuFfUPCnDZvo37o4bXFw
	 SuBcPuLcZIfhZDgpvtfMHIX0h2T82mDzYeoM6+ktRZgJtlIRnFwuJlaMlt+Nya5UnZQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=mLgogSbh;
	dmarc=pass header.from=collabora.com;
	spf=pass smtp.mailfrom=collabora.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 BB01E606A336;
	Mon, 30 Nov 2026 12:05:28 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=mLgogSbh
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796040327;
	b=kTVwBDqe3bDqd5uNViTCBEleL5DprqVplDrs9NGM/Zu8jGu0kvIIWgOyloP7+TogmqbJ
	 Awb3RwBNGs12PFhzDsbIjnWfnbMzEk0b1UczRn7WEGhxTFY2KUurZ0UUEDx6Ihrr2oYGY
	 CKzLDALQMXc69wET1X0oHMpb7SoZLT6aBBynsRX7kd9jWW5t8VWDD8KYpqsGJsFSqTMbr
	 /uy6P8pfVOIzEpchwA+XuQmZjdvC8za5Iu7YPSulUfedRgcrMZuWjzv1VYG4HI25rgLAw
	 dRphVfBzknqElFfBhGykKve1C3M0V5sTF4W6K2pI8BCAcezFj+GDOFxvJxwPa1hmxyA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796040327;
	h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version:
	 User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=c5svYkAkd7HI/Rh0OBo5cThcLnMpnVO133cKbBF6Yso=;
	b=JzaF9Iu9l73eHR+J1SlIPW73WA1v6INJV45pDUhUgSEOcJizJ8P7/hX3G2GUNNs8uFmy
	 JwOO17sb3GWHZ2AVL8lwK1dPyFHU3SDstEzmQ/jAS8aV78v2YYtaieEMn/fruzyCDCSNS
	 PUQ9Lh7YQqdorWBrCXMqR/ZSEV6X1pje7JP0T1rfAaLKU1Ra0U005K9KXGw5pA9n6eopQ
	 /mhgnyTz92j+uUoNWDQKkBYobnrVLM1eg4U6nUTMDQvarB035PuD8vk7JtHAG/NAN/4wo
	 AZK7uQC3VTLX5K0mRM3zQtt9aphCyXr3PrkDwj4XdD2jlSB30YO+M93kTYnunTfMjcg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=collabora.com;
	spf=pass smtp.mailfrom=collabora.com;
	dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=mLgogSbh;
	arc=none smtp.remote-ip=148.251.105.195
X-Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195])
	(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 51171606A31C
	for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 12:05:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 51171606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com;
	s=mail; t=1796040325;
	bh=idz1IZFAhlof6wWMZKQYd/aF3oIqTqRFOTsVq2LLB4E=;
	h=Date:Subject:To:Cc:References:From:In-Reply-To:From;
	b=mLgogSbh6sI3pnDycTBUw0jISlMrd35llS/J7N3gKiocA5Qc+UD0Og4ka+6CizLjs
	 0IJbzZGZWv22zYG5BhtPvccqGns5mMK1ptKNJywWx0Oho+Y2PK8mlgEil6jCU5RhX5
	 7uJ+jXSubAKJrleVNIewQOp8gtUNsK1c0SeVAh0SB4oJVHaxe31ujXCdTMw61Eula2
	 pi8LhncDcP+E0M7ggFm8HLNiHb1hxL2PMZlS9Fk0zKElq0jyIroDAvJ8RKHoevGdgL
	 ct3w0fjhQoxwPsqJ6HpFNJb1VZl/TTPAT9lGvknz4ew02ArqqShsAJn8fQbSKtz49H
	 EfrJdV3m68Mzg==
X-Received: from [100.64.0.241] (unknown [100.64.0.241])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange x25519)
	(No client certificate requested)
	(Authenticated sender: cristicc)
	by bali.collaboradmins.com (Postfix) with ESMTPSA id 1545117E0528;
	Mon, 30 Nov 2026 13:05:25 +0100 (CET)
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-User-Agent: Mozilla Thunderbird
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-In-Reply-To: <aef4a28a-d59d-45f1-8215-77600288a174@lunn.ch>