From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796041276; b=uQR+BgigbF3MuTk2c762x25R2kj6B6Ow8S6BqdobzvbClEpoM2xparzZzO66LaIZaiAJ UPLHA6FIwbgI6HONvOCdSjvqnwmiouI2Zvv/rJUt+CmRP9dVV/5Lst1VINofz2GTVRdxU +Ks14nXSCSPW8LPUAiE8uHhR0HpwyXAEaWH8G2KFOx1/JO2eJ7KDhjhxcXhvR6ZzUPrdY 8rrhU8A6JAqQNI4PMagoSTdcrn6q7gEKj+rCS+Y0BsZ2L0WFx/CNOqqmjCAdOURrglCNZ WIrMkSu3YxfS9Cwye+45TB+4BEBq4gKoUag4ruKycAwwmPLwjQKfyn/I4zf7gdtxeQQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796041276; 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=0rSiPjXWX2lZSc35qd9kMzHwbcrPPqYkPpzf40uPuIA=; b=TrFCTW5SLLyBwUaTCyIMQuPfs3noZ2mWw2cw23gsax3GagQQapzgEVD+XHMDMkUJcyYT dBOWDWQaTktfrhP8J/Kl36zuNIis49JclQbA2tm1e/xjRQM/mbD8j1i5R+lzjHrFidKJq pcTHSLMp3+mZFEPlRzOaknyFaF0ngBES+sZw+ynl7eB445vsASppFyK7o8djaXE9l+NAV NiJ0zeRSRc/lffHz6c65in9rE05mZATgb+CX8YfKFWMQkOpSZoMkThPQ3m8GULyrDmLyV 8hz/5AxT21c4cDnfFaXdA/5xgPEzCq5HFUDImQPJvf5n7pmfjqRmR5P3PGtjkUn/FBA== 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="CG/W1RY4"; arc=none smtp.remote-ip=148.251.105.195 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91F92606A331 for ; Mon, 30 Nov 2026 12:21:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 91F92606A331 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=CG/W1RY4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1796041273; bh=GIVN50/RRkwmvDLMXmYZ1khrzvSAJx+tvzon45Afwu0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CG/W1RY4GZOs5HPSt9g0nU/2/E1F302AS6xhYKPhVyZufuzs33rXIILYj2Ynmvk0e uEA1XURGqUqRFR6zra96V12kcpYbrP3jwhJeS6O6reMRAoZwWqnVVwxgTWo9sPpCb0 VC+7a7YLGr+Nfj2nWbcQFZksi3rlW8Okyqp6W02A0XRMxFI5ZzbACCziiMQNK9mhFF IlUznViaA9Rl+sRgXjGcUk3ft3h1jarCXjP623pATzAOErSPohRhJ601CFlPUstsF3 UBLOtRj2EGrJyb7AOhjNlMFgZ+sVO3p6TqpgZQ0yte4/Us9yeWTExM0K7E8dLl1mWU wLykrZx001IWg== 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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id 74EAC17E0648; Mon, 30 Nov 2026 13:21:13 +0100 (CET) Message-ID: Date: Mon, 30 Nov 2026 14:21:12 +0200 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net 13/14] net: phy: as21xxx: Fix speed and duplex reporting To: Andrew Lunn Cc: Christian Marangi , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@collabora.com, netdev@vger.kernel.org References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-13-1bd2eae6ccbc@collabora.com> <285d83ae-7c91-44c4-a37c-7c4201c11211@lunn.ch> Content-Language: en-US From: Cristian Ciocaltea In-Reply-To: <285d83ae-7c91-44c4-a37c-7c4201c11211@lunn.ch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/30/26 5:50 AM, Andrew Lunn wrote: > On Mon, Nov 30, 2026 at 02:55:20AM +0200, Cristian Ciocaltea wrote: >> With autoneg enabled, as21xxx_read_status() derives the result purely in >> software via phy_resolve_aneg_linkmode(). That does not work reliably >> here: the advertisement is driven by the firmware over IPC, which >> ignores the Clause 45 AN registers phylib writes except for the maximum >> speed, and arbitrary subsets of speeds are not supported. > > So the firmware is totally FUBAR? > > So autoneg does not work, other than for a single link mode? This > suggests you are setting phydev->supported wrongly. It should have a > single link mode in it, the top speed the PHY supports. > > phylib should then do the correct thing, it will only let the user > select that one link mode for advertisement. As previously discussed, the root cause of all this unexpected behavior is the firmware limitation: it cannot handle arbitrary subsets of speeds and always advertises the full range, from the minimum supported speed up to the top one (the only limit that can be enforced). aeon$ ethtool -s eth1 autoneg on advertise 0x800000000000 # 2.5G peer$ ethtool enp0s13f0u1 Link partner advertised link modes: 100baseT/Full 1000baseT/Full 2500baseT/Full Thanks, Cristian