Article View: linux.kernel.netdev
Article #17602Re: [PATCH net-next v2 2/5] net: rnpgbe: Report link settings through ethtool
From: Yibo Dong
Date: Tue, 17 Nov 2026 02:55
Date: Tue, 17 Nov 2026 02:55
57 lines
11875 bytes
11875 bytes
On Tue, Nov 17, 2026 at 02:54:45AM +0100, Andrew Lunn wrote: > On Tue, Nov 17, 2026 at 09:49:02AM +0800, Yibo Dong wrote: > > On Mon, Nov 16, 2026 at 02:18:28PM +0100, Andrew Lunn wrote: > > > > link, speed, duplex and mdix are updated asynchronously by > > > > the mailbox event handler, outside RTNL. link_lock protects these updates > > > > and provides a consistent snapshot in the getter. > > > > > > O.K, thanks for the explanation. > > > > > > I removed too much context, so i cannot see here. What about > > > lp_advertising? That also comes from the firmware, reported on link up > > > when autoneg completes. > > > > > The firmware manages autonegotiation and reports the negotiated speed > > and duplex through mailbox link events. However, the current mailbox > > interface does not expose the link partner's advertisement bitmap. > > > > Therefore, lp_advertising is currently left zero to indicate that this > > information is unknown to the driver. > > > > If reporting lp_advertising is must, we would need to add a new > > firmware mailbox command to retrieve the link partner's advertisement, > > or add lp_advertising to link-event mbx alongwith link, speed and > > duplex. > > It is not a must, but it is useful. > > Or you can just throw away your firmware, expose the MDIO bus, and let > phylink drive the hardware. Less code, less bugs, more functionality > for free. The GMAC provides MDIO register access, so exposing an MDIO bus is technically possible. However, the firmware currently manages the PHY, and its interface does not provide a PHY ownership handover mechanism. Introducing host-side PHY management would require coordinated firmware and driver changes to avoid independently configuring the same PHY. In addition, on this SoC, the firmware configures MDI/MDI-X through AXI-mapped control registers driving the PHY's pi_force_mdix_en and pi_force_mdix_mode inputs. This control path is outside the PHY's MDIO register interface. The firmware also supports link management before the host driver is loaded and while the host is shut down, including wake-up handling. On OCP platforms, it supports preserving the PHY link across driver reloads and host shutdown. These capabilities are already implemented in firmware, although driver support for them is not included in this series. Any future ownership handover would need to preserve them. Would it be acceptable for this series to retain the firmware-managed PHY design without registering an MDIO bus, and leave lp_advertising zero for now? If a mailbox command is added to expose the link partner's advertisement, we can populate lp_advertising in a follow-up patch. > > Andrew > Thanks for your feedback.
Technical Details
Message-ID:
<72676011073A7040+20261117025526.GA214154@nic-Precision-5820-Tower>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364925-linux-kernel-netdev=dewy.ruReferences:
<BD205A7832D36E7D+20261116030917.1329989-1-dong100@mucse.com> <66AFF2810AB647C8+20261116031020.1330219-1-dong100@mucse.com> <d7351f56-d4fa-4ba0-a0c6-c7bdf7aac460@lunn.ch> <2207C8DCDD49F5EE+20261116044737.GA1342898@nic-Precision-5820-Tower> <cf674063-6c6f-43f6-a18a-d7ed5bef8a5c@lunn.ch> <236B4E2337BC768E+20261117014902.GA205295@nic-Precision-5820-Tower> <2ddca58c-608f-4a0f-a26d-df92c2c34c69@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364925-linux-kernel-netdev=dewy.ru From: dong100@mucse.com (Yibo Dong) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 2/5] net: rnpgbe: Report link settings through ethtool Date: Tue, 17 Nov 2026 10:55:26 +0800 Organization: Usenet Network Message-ID: <72676011073A7040+20261117025526.GA214154@nic-Precision-5820-Tower> References: <BD205A7832D36E7D+20261116030917.1329989-1-dong100@mucse.com> <66AFF2810AB647C8+20261116031020.1330219-1-dong100@mucse.com> <d7351f56-d4fa-4ba0-a0c6-c7bdf7aac460@lunn.ch> <2207C8DCDD49F5EE+20261116044737.GA1342898@nic-Precision-5820-Tower> <cf674063-6c6f-43f6-a18a-d7ed5bef8a5c@lunn.ch> <236B4E2337BC768E+20261117014902.GA205295@nic-Precision-5820-Tower> <2ddca58c-608f-4a0f-a26d-df92c2c34c69@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2225339"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:up1UtnwUjSk3FfrBTmvAA339cBc= sha256:Qp/YdNG7hDO+kTn0JghfaaAboqhGvKiPmyk5nUW4JXE= sha1:z5V2nsbk0Uns5oROwGe7Oyxa3JM= sha256:F7gLpbWyploW2lFc1k7Eu51jFqPSnhr96nftex2BsG8= 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 4D302114E31; Tue, 17 Nov 2026 05:56:52 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.951 X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=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-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 2YMmUgNBmvPF; Tue, 17 Nov 2026 05:56:48 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364925-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mucse.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B1486114E1D; Tue, 17 Nov 2026 05:56:43 +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 1E6FD321CD; Tue, 17 Nov 2026 02:56:40 +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=1794884199; b=4GTfpgOSDZmuzJ9PxFl5ZKW/BpzkLwgmnI7OvtgFja4JyuDX8D/CRE5SeLhumG1IB7wn Q663YUNhqNRGAETCeh9QpxaZD0d/qDtJ3Qn0NALQJzOz4+zJi+vhDqhx1K0zhWHbQ0WBL +k/9g0FYJ2AIRttEdQcYRVi9TPjRSId0mC+LTOxBEifbfdcMl25wf+xEa2cGuhhpcr0+0 7Bq0rD30Akdlosk7UAjBTfL9d4ctUmQ2cX609ZqNQZ/ytGv0zQVHjj1SfL8tRiVaJYNlF WISKDSpwOADcjdGpNFnCNkkS4LPJPf8anxPaWY//zqWy8a9TxTteet1YxaHrhCm0V6Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794884199; h=X-Original-To:Received:DMARC-Filter:X-QQ-mid:X-QQ-Originating-IP: Received:X-QQ-SSF:X-QQ-GoodBg:X-BIZMAIL-ID:EX-QQ-RecipientCnt: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: X-QQ-SENDSIZE:Feedback-ID:X-QQ-XMAILINFO:X-QQ-XMRINFO:X-QQ-RECHKSPAM; bh=OJRWJeXrvQmODYAExg7m4mDpe5p58dqYM/Hnn4LmFfE=; b=ctlb55PbKGazKGAtDwBYGXmz5VkR7cR396povYTwco7TiSkiTquesrA0fNpb9IBEfzEP o5HOxctRIjLlcYrkOBG+6cGL0/L7z1EFPdDE+F8a9/ZeO4sEPy26n2NPjGeW25Jmbg5xR YJEuL69A7vX1MbLY2xYzg0ZAxYEeSk0dA/nARoC2IDGe0HoASZutllKAwsTehgaoOdZ07 NMdgzj12o8yUkn10sZ8riTL6D/14RW+3L+/8uAIHgnqzk2tbWCKdzUqPdjQhothGwI9qv LPTAF1woL0m3B0BZrrdzzzoZXC800sPSeSgcW4bo92veUNggZyP0hpELDPdR3+sdwqA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=mucse.com; spf=pass smtp.mailfrom=mucse.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 25BE0606A332; Tue, 17 Nov 2026 02:56:39 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=54.204.34.130 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794884198; b=J86KXZj3NBtfx5GV2eW3c41BvdmpxQmkG2ftECq740Rq0TyrlWITOJpGYNxlapB1IYEh MOnMCLMmpXYcpRPXU4BANQE4cwAr+Uumd7Bq9lVWSTlg2nye9LKey6fvLkektWsYEp38R 9rf7Cez4zyIkVSxhMz5neJaaiZuPaP03fGTnTg48bGcFz42AlLi69lh07tCkFhgMRrHA3 u4AB+vkJLQaERgwNJtyidGApRkhahUxvHRWApUWUknQ9cRkv+pX7lBdHI+2BB2DjhiyPC YJe3gWKl/TECIam+fzusF6QaXz/bpfULQL4KpG+PQzedsomPSIeslElyNJBiU8msWVA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794884198; h=DMARC-Filter:X-QQ-mid:X-QQ-Originating-IP:Received:X-QQ-SSF: X-QQ-GoodBg:X-BIZMAIL-ID:EX-QQ-RecipientCnt:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-QQ-SENDSIZE:Feedback-ID:X-QQ-XMAILINFO:X-QQ-XMRINFO: X-QQ-RECHKSPAM; bh=OJRWJeXrvQmODYAExg7m4mDpe5p58dqYM/Hnn4LmFfE=; b=zci3q73G1mDUQ1A3uh6Xuy8nK0IFx8Rv9igKmF9/5ZL2DZLGiaARnRnnZtRpn2fjEIC0 EKBtOgynhSJ45ADbuaCvEOgLzS3SGmeJPWywpq/4IVHM2yNQ2Cxqkl0TqvT3Sl+sQ5L/w kynhF39gqnE74J0TTQHxYK63MvBWWmE4ovIjkF3QyS5lYj/LxNbiQUzHCLU2xQGv4HkcB OBzKEGuN66jzHgT0SqxOayYTBiwxo5gXW0UFrBku+BjS4yR60Uj+qYBu9M+Vu+bxMcWx4 JqAWw4YBXTm3HKxAbYO5GZkfcQ5K/V4YOLAGBsdVA4fUSqpM/jvbcLUM1ejvIl8S3qA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=mucse.com; spf=pass smtp.mailfrom=mucse.com; arc=none smtp.remote-ip=54.204.34.130 X-Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 971F8606A31C; Tue, 17 Nov 2026 02:56:33 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 971F8606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mucse.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mucse.com X-QQ-mid: zesmtpsz7t1794884128td16f0902 X-QQ-Originating-IP: tKITFu9fk6+0Q5Dh8wVGUM32Tg2lPtWsb2gOC8zAMLo= X-Received: from localhost ( [203.174.112.180]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 17 Nov 2026 10:55:26 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1497016459313032982 X-EX-QQ-RecipientCnt: 10 X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, yaojun@mucse.com 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: <2ddca58c-608f-4a0f-a26d-df92c2c34c69@lunn.ch> X-QQ-SENDSIZE: 520 X-Feedback-ID: zesmtpsz:mucse.com:qybglogicsvrgz:qybglogicsvrgz3a-1 X-QQ-XMAILINFO: NF3tN0JyXxqWu7NjtIcYXK8bcIOdmVHhxYIC0zpg+h8MhENMz3GA6d/e ISSuw6hgkhILUTfdAeIosI6AOMwmwAjbLsyyJpaDJWt4LS5xhzg+aBUMSygj6ECVSVIoEtw Ni2zIpGBMHZtftRe2poBPivrArlvSZ/LirzXMNIiLdzf+KRF9gfp4zSoOly3p/4ZW3aAgk4 j3U9UPketSdGy6FZbxj1oTtiSLEVci2sdgSsu66AsA47cfNzD5zNVnb55sT3yfKqo59KPPB gqALQgPANDTWMWwp4Lj3DztnGvpVq9Irw5I7rE+l2PliEzVZHNjUEJNjWZwQ5l32BKNyzj8 JBUglHSODeUv7E1ygJDV4yXjL92xUMR2mRdnN8wOjTIg8zaarXw5nEXZqJukA9b3ulVtcLH 52zP2YRFaL5xd59OBeTrt6Z+5MnumVgD4UO3w6SHALBgfIzjaKZLyajgtog7OWksc7oTXSx sDUA0DDV1LbpPeqkFsORAor1iMZuREGSelbw3iuPlMyXntlpMKMkHoyrIQDEW8rEY6ztMv+ 9ld6ghfIlPXwFGGTcDS8WtZeX8jM6xd55dKF+pJGMTzsshmF/igdZQ6lZPl+fVp6VIsF6c5 ohsLfEcUPomfEZlfss3/pkdwZGh/87yAcpdI3AULlEq5dVGgvVq6bTHgw82MlwfoNpFT/pI mesG0NMkN7jhqmfxgn/5NqsWP7GrkDuuUQCwz9nUUHCKtktNAgdPToJRiCmtO5UoL0XKQ0w bSPS+XPOvyU097BqMMVvlW6Kqw/n9359PxwOj5ZFfGbinzakc3VHMTWul4e1RaNtBu44Tr9 oNWKo8rPoN2DiW1TmKIJb/suwbS/Cm53BP7atjrJfkfl9cRLYIPegfaaYwSZuuIYSpSpOYQ /VvxIglYQlybbspkKVBrBvNFk8wgZaafOLMAp4yYaJZEL6xGIgSNFeL8Hlv+aSJYwEd1rCA s+Tkzcp/h+5AC2bAmK1KCCB40yIHapufqr/S9J/9D5wtBNMw/bNf5hiKZaVKZXAz+/gnybh /Kosc41Elp0ViYpW1iFa2dkEG44WuOX1XPjObQwNNyKKh7isATQ7Cn6QnpX+g= X-QQ-XMRINFO: MSVp+SPm3vtSI1QTLgDHQqIV1w2oNKDqfg== X-QQ-RECHKSPAM: 0