netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/6] Raw PHY TDR data
@ 2020-05-24 15:27 Andrew Lunn
  2020-05-24 15:27 ` [PATCH v2 net-next 1/6] net: ethtool: Add attributes for cable test " Andrew Lunn
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Andrew Lunn @ 2020-05-24 15:27 UTC (permalink / raw)
  To: David Miller
  Cc: netdev, Florian Fainelli, Heiner Kallweit, Chris Healy,
	Michal Kubecek, Andrew Lunn

Some ethernet PHYs allow access to raw TDR data in addition to summary
diagnostics information. Add support for retrieving this data via
netlink ethtool. The basic structure in the core is the same as for
normal phy diagnostics, the PHY driver simply uses different helpers
to fill the netlink message with different data.

There is a graphical tool under development, as well a ethtool(1)
which can dump the data as text and JSON.

A patched ethtool(1) can be found in
https://github.com/lunn/ethtool.git feature/cable-test-v5

Thanks for Chris Healy for lots of testing.

v2:
See the individual patches but:

Pass distances in centimeters, not meters

Allow the PHY to round distances to what it supports and report what
it actually used along with the results.

Make the Marvell PHY use steps a multiple of 0.805 meters, its native
step size.

Andrew Lunn (6):
  net: ethtool: Add attributes for cable test TDR data
  net: ethtool: Add generic parts of cable test TDR
  net: ethtool: Add helpers for cable test TDR data
  net: phy: marvell: Add support for amplitude graph
  net: ethtool: Allow PHY cable test TDR data to configured
  net : phy: marvell: Speedup TDR data retrieval by only changing page
    once

 Documentation/networking/ethtool-netlink.rst |  81 ++++++
 drivers/net/phy/marvell.c                    | 286 ++++++++++++++++++-
 drivers/net/phy/nxp-tja11xx.c                |   2 +-
 drivers/net/phy/phy.c                        |  67 ++++-
 include/linux/ethtool_netlink.h              |  25 +-
 include/linux/phy.h                          |  17 ++
 include/uapi/linux/ethtool_netlink.h         |  67 +++++
 net/ethtool/cabletest.c                      | 209 +++++++++++++-
 net/ethtool/netlink.c                        |   5 +
 net/ethtool/netlink.h                        |   1 +
 10 files changed, 747 insertions(+), 13 deletions(-)

-- 
2.27.0.rc0


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH net-next 0/7] Raw PHY TDR data
@ 2020-05-17 19:58 Andrew Lunn
  2020-05-17 19:58 ` [PATCH net-next 7/7] net: phy: marvell: Configure TDR pulse based on measurement length Andrew Lunn
  0 siblings, 1 reply; 12+ messages in thread
From: Andrew Lunn @ 2020-05-17 19:58 UTC (permalink / raw)
  To: David Miller
  Cc: netdev, Florian Fainelli, Heiner Kallweit, Chris Healy,
	Michal Kubecek, Andrew Lunn

Some ethernet PHYs allow access to raw TDR data in addition to summary
diagnostics information. Add support for retrieving this data via
netlink ethtool. The basic structure in the core is the same as for
normal phy diagnostics, the PHY driver simply uses different helpers
to fill the netlink message with different data.

There is a graphical tool under development, as well a ethtool(1)
which can dump the data as text and JSON.

Thanks for Chris Healy for lots of testing.

Andrew Lunn (7):
  net: ethtool: Add attributes for cable test TDR data
  net: ethtool: Add generic parts of cable test TDR
  net: ethtool: Add helpers for cable test TDR data
  net: phy: marvell: Add support for amplitude graph
  net: ethtool: Allow PHY cable test TDR data to configured
  net : phy: marvell: Speedup TDR data retrieval by only changing page
    once
  net: phy: marvell: Configure TDR pulse based on measurement length

 Documentation/networking/ethtool-netlink.rst |  79 ++++++
 drivers/net/phy/marvell.c                    | 276 ++++++++++++++++++-
 drivers/net/phy/phy.c                        |  67 ++++-
 include/linux/ethtool_netlink.h              |  25 +-
 include/linux/phy.h                          |  17 ++
 include/uapi/linux/ethtool_netlink.h         |  67 +++++
 net/ethtool/cabletest.c                      | 209 +++++++++++++-
 net/ethtool/netlink.c                        |   5 +
 net/ethtool/netlink.h                        |   1 +
 9 files changed, 734 insertions(+), 12 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-05-25 18:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-24 15:27 [PATCH v2 net-next 0/6] Raw PHY TDR data Andrew Lunn
2020-05-24 15:27 ` [PATCH v2 net-next 1/6] net: ethtool: Add attributes for cable test " Andrew Lunn
2020-05-24 15:27 ` [PATCH v2 net-next 2/6] net: ethtool: Add generic parts of cable test TDR Andrew Lunn
2020-05-24 15:27 ` [PATCH v2 net-next 3/6] net: ethtool: Add helpers for cable test TDR data Andrew Lunn
2020-05-24 15:27 ` [PATCH v2 net-next 4/6] net: phy: marvell: Add support for amplitude graph Andrew Lunn
2020-05-24 15:27 ` [PATCH v2 net-next 5/6] net: ethtool: Allow PHY cable test TDR data to configured Andrew Lunn
2020-05-24 20:34   ` Michal Kubecek
2020-05-24 15:27 ` [PATCH v2 net-next 6/6] net : phy: marvell: Speedup TDR data retrieval by only changing page once Andrew Lunn
2020-05-24 16:52   ` Andrew Lunn
2020-05-24 15:27 ` [PATCH net-next 7/7] net: phy: marvell: Configure TDR pulse based on measurement length Andrew Lunn
2020-05-25 18:03 ` [PATCH v2 net-next 0/6] Raw PHY TDR data Chris Healy
  -- strict thread matches above, loose matches on Subject: below --
2020-05-17 19:58 [PATCH net-next 0/7] " Andrew Lunn
2020-05-17 19:58 ` [PATCH net-next 7/7] net: phy: marvell: Configure TDR pulse based on measurement length Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).