Article View: linux.kernel.netdev
Article #19882Re: Proposal: per-lane PHY polarity get/set via ethtool PHY tunables
From: Andrew Lunn
Date: Fri, 20 Nov 2026 17:01
Date: Fri, 20 Nov 2026 17:01
38 lines
10232 bytes
10232 bytes
On Fri, Nov 20, 2026 at 04:35:54PM +0000, Doddagoudar, Susheela M wrote: > Hi All, > > On Device Tree platforms, inverted PHY lane polarity is described statically via the PHY_POL_* properties. > Non-DT systems, such as x86 platforms where polarity comes from firmware or NVM, have no equivalent, > and still need a way to set it at runtime for bring-up and validation. Firmware and NVM are part of the problem, since there is no standardization of them across vendors. Since there is no standardisation, you are going to need dedicated tools to change them, so is it really that difficult to add one printf() in your vendor tools? > Two reasons a static description is not sufficient there: > 1.ACPI overlay-based workarounds require PCI re-enumeration, which tears down the netdev. So what. You try all combinations/permutations until it works, burn it into ACPI and the problem is solved. This should be a one time thing. > 2.Dynamic devlink port splitting changes the single- vs multi-lane topology and, with it, the > per-lane polarity requirements. Why should a port splitter require the polarity of a pair to change? A runtime ethtool interface is needed to override the probe-time > firmware or DT defaults after a split. How are you going to explain this to the end user? "If you device does not work after splitting the port, please try these magical ethtool commands until it works." Are you old enough to remember straight and twisted UTP ethernet cables? That was painful, and you seem to want to bring that pain back. That pain resulted in Auto MDI-X. Has the industry really not learned from that? Andrew
Technical Details
Message-ID:
<b9785068-b1c1-43c7-be3e-9b8c5d989b80@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-368022-linux-kernel-netdev=dewy.ruReferences:
<BYAPR11MB27105AFF28337302B1493FFFD2782@BYAPR11MB2710.namprd11.prod.outlook.com> <112154f6-53f9-4cb7-9124-aba263b097b5@lunn.ch> <CA+h21hq0EqJZFh_Kv64TR-oL4j=n61XK1xzzL_GMXLZr-=4PHQ@mail.gmail.com> <BYAPR11MB271098184A7A1689F5647937D2782@BYAPR11MB2710.namprd11.prod.outlook.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-368022-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: Proposal: per-lane PHY polarity get/set via ethtool PHY tunables Date: Fri, 20 Nov 2026 18:01:00 +0100 Organization: Usenet Network Message-ID: <b9785068-b1c1-43c7-be3e-9b8c5d989b80@lunn.ch> References: <BYAPR11MB27105AFF28337302B1493FFFD2782@BYAPR11MB2710.namprd11.prod.outlook.com> <112154f6-53f9-4cb7-9124-aba263b097b5@lunn.ch> <CA+h21hq0EqJZFh_Kv64TR-oL4j=n61XK1xzzL_GMXLZr-=4PHQ@mail.gmail.com> <BYAPR11MB271098184A7A1689F5647937D2782@BYAPR11MB2710.namprd11.prod.outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3211672"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:V9A8fMOFRFnVqHX8iIputE/x1xg= sha256:bt+C5A+mEvY53105jqUwJdEamt7pJVkIJSekYW72qDI= sha1:8SF7GIblvW7WoD5ro+hR5Xe8DCY= sha256:ASApNlzLDDNE9joI5L1Zs426MiLgIvFKbP5rjvUwptE= 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 4803B115A0F; Fri, 20 Nov 2026 20:01:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, URIBL_BLOCKED=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 JvAkZFSbwo0J; Fri, 20 Nov 2026 20:01:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368022-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 10EBE115998; Fri, 20 Nov 2026 20:01:08 +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 670A2104568; Fri, 20 Nov 2026 17:01:05 +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=1795194065; b=WA0dln6C1gxGorWeUjQbFzH8xzScdcaAz0umOmjXRv75Tm5nCcXBhspAqXJwcCrx7z4X Oj4U5x1IVdrWQDEPOl7HH7vGMhaeH8QtB+5qSvTiQ3QScrA1gmYCWHQT/FzeHbs6hhImg 64zHkqxUa2f3fJ/iB7whoddpFw2IQ9TQRj+ytLU1PgZ+dbqDf0VsJdpEZ8/bKw+fW2gHa vQLZHDE8L/ApXwAzksUWoFbU451umwJU3IWYJL6ijXjxEBWO9QlGsR7DZqV8I4DG3iugQ 5LJhEFcHXYAj+S1mvfJTWL+oY2NGs1JApkdos1z1B2CO/83gox9y0v5oU6hn4odzmJA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795194065; 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=+SBEbYMnCfS0wR4VSNhGdIGif4ouwcd3YyOPI5uczzM=; b=nKqiK05B+aKVqHMSjewjoP2Y50xTpFbpTbbq/EwQY1d7DBpxiAH9ixxTcRsZab+UW6Ck WJLCK6VYP+E6YOrAsHhqZ7baal5c52XXkW98GJvn/h0bQLadxh0M/+ywlGsj5cdFsAtVa Y+wb0h526oxNVDk6m61I6XVmaJDescn3tJ8h+PhXZ+71WYtoT4/BwkNvunCuKWeELMMm7 S8XzfV/cfSNqNUP9DFh+tsvSlPhW/XuW3ipgyQD/c6wvw+0MxE5/xPpLwv1nEFZdiYa64 yMVMaiSgVPvYBM9xAg7EBiEO0F0HVwRONPZ4BwiaSNP2YI1UNlWyi/wyU6z2StnOFaA== 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=WbzEuBgE; 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 39865606A336; Fri, 20 Nov 2026 17:01:05 +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=WbzEuBgE 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=1795194064; b=B+uNue5h8FbtashLo2vTOfu2vHUHqsRqN+mq0xLg6BVddZRandpqG2fMhROCWDsZ8EGK 9lGdu4Vu9PuzAGWD1lu4yCirYoJN4+BXGjKRzKfhbQbo+hOS+DwbWR1qLho9yK0qKnrfV PQM2mRrBL/XqfONU/0glnKYG8GK6MGEBFdFsgpIkKXQH5F6ZPlDnbyoSnfAc7+NOOineA yGp8rXuf9FsckYv2HOOtOL49SbHmjdwzqKmnwi7ejlftIWlkMp4mvjtmzl6yYinrVaO+T SfY9puQVMWhHMqfklMoxIJrvgW7bsP4WImAUQua11LsnmO9KLgOn3UI+Um5QB12V1lw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795194064; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=+SBEbYMnCfS0wR4VSNhGdIGif4ouwcd3YyOPI5uczzM=; b=fsjDUpfHJe7JnNvDORJefwRFU7vcOE5H2B1tFQveo2LswZ+kIcbztrDPOcfTfnoMRktO Lb/ZduBK06s/ij+YKYgCifchFzBhB4v/j3/8pAMEGuGX4jmlgX7y//PZsbNoVPjbRn23m 0qPr3PEp8gUw2B+nx/allk9JC+YlzK81VcSQMuQXZgeUXdOOqmzJFkdd0RgL9TcjumHO7 MVcmzAJL5foDLRah7xkmS9NB9/jUYFCr8uu77dF1zLtbebbRWSRL6FSODWqomyXuvtLn2 5uFiJpmMdHJo+3EutTch1n/LlNBwbpCuMhajLbIT+jvq0e+Xmbm9Xw+q4ieQVsaUvRg== 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=WbzEuBgE; 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 EDBA8606A33F for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 17:01:03 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EDBA8606A33F 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=+SBEbYMnCfS0wR4VSNhGdIGif4ouwcd3YyOPI5uczzM=; b=WbzEuBgEXeLwdhvRcMBEgZPzI2 XEHk8m9aAxSz+NIUYXQWOJpYJ8gme2Zm/aOj6J3MIqUKAnj5EA72HUZBxuE8xacw9i9Z95mRLJ5g1 asD99yuDHasCWhczQuMdoAjOzRGmm6FjMHZ2wCKHlSmSbAHveMnBr0RxgiIBmE0D86qk=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xURyu-000LEn-Gm; Fri, 20 Nov 2026 18:01:00 +0100 X-Cc: Vladimir Oltean <olteanv@gmail.com>, "netdev@vger.kernel.org" <netdev@vger.kernel.org>, "maxime.chevallier@bootlin.com" <maxime.chevallier@bootlin.com>, "Lindberg, Magnus" <magnus.k.lindberg@ericsson.com>, "Chintalapalle, Balaji" <balaji.chintalapalle@intel.com>, "D H, Siddaraju" <siddaraju.dh@intel.com>, "Srinivasan, Vijay" <vijay.srinivasan@intel.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: <BYAPR11MB271098184A7A1689F5647937D2782@BYAPR11MB2710.namprd11.prod.outlook.com>