Thread (14 messages) 14 messages, 5 authors, 16d ago

Re: Ethtool : PRBS feature

From: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: 2026-06-20 14:39:13

Hi,

On 6/20/26 15:48, Das, Shubham wrote:
quoted
Can you change the firmware to expose the 802.3 registers for PRBS?
You can then write a library which both plylib and your driver can use.
Andrew,

No, exposing the PRBS registers to drivers is not possible in our design (the registers are buried deep within the Accelerator/NIC/PHY/Analog IP hierarchy).

Additionally, the PHY PRBS registers are not in accordance with the IEEE Clause 45 definitions. For instance, the PRBS registers are paged and 32-bit wide.

Given these constraints, we think ethtool --phy-test is a reasonable starting point for exposing the long-established Ethernet PRBS functionality to Linux userspace, as it aligns well with the driver-owned NIC architecture model. If you think a more generic layered approach would be preferable, we would appreciate guidance on the expected architecture. That would help us better understand the implementation complexity, required effort, and delivery timelines.
Can you elaborate on what you have in mind for now ? what would the
"ethtool --phy-test" command look like in terms of its behaviour and
parameters ?

This feature is interesting for multiple people, each having different
hardware designs and constraints. It's good to consider an iterative
approach to build this, however we need to have in mind that this is
uAPI, so once we commit to a design choice, we have to live with it.

We do have flexibility on the kernel side of the API. We can implement PRBS
in generic PHY, phylib, some MAC driver that talks to a firmware, etc. and
hide away these implementation details to userspace, but we need to make
sure the uAPI we come up with allows us to support all of that.

Let's figure this out together, if you already have some ideas in mind we
can use that as a starting point for the discussion :)

Maxime
Thanks,
Shubham D
quoted
-----Original Message-----
From: Andrew Lunn <andrew@lunn.ch>
Sent: 20 June 2026 00:07
To: Das, Shubham <redacted>
Cc: Alexander H Duyck <redacted>; lee@trager.us;
netdev@vger.kernel.org; mkubecek@suse.cz; D H, Siddaraju
[off-list ref]; Chintalapalle, Balaji
[off-list ref]; Lindberg, Magnus
[off-list ref]; niklas.damberg@ericsson.com
Subject: Re: Ethtool : PRBS feature
quoted
The host driver does not directly access any registers but requests
the PHY FW to manage PRBS on behalf of it.
Maybe a dumb question. Why?

Can you change the firmware to expose the 802.3 registers for PRBS?
You can then write a library which both plylib and your driver can use.

	Andrew
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help