Commit Graph

11 Commits

Author SHA1 Message Date
Robert Marko 56f3cab124 mdio-tools: update to 1.3.1
Update the mdio-netlink kmod and userspace mdio-tools to version 1.3.1.

[v1.3.1] - 2023-12-02
---------------------

Fixes mvls to work with kernels 6.2 and onwards.

- mdio: Multiple registers can now be dumped at once, via the generic
  dump operation.

- mvls: Relax the driver matching to accept the strings used in
  kernels 6.2 and newer.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-12-21 11:11:27 +08:00
Zhi-Jun You 3abdb2887e mdio-tools: update to 1.3.0
Update the mdio-netlink kmod and userspace mdio-tools to version 1.3.0.

[v1.3.0] - 2023-07-24
---------------------

Primarily widen the gamut of supported kernel versions, now supporting
all kernels from 5.2 and onwards.

- mvls: Support for 88E6320/88E6321

- mdio-netlink: Adapt to the upstream C22/C45 refactor.

Signed-off-by: Zhi-Jun You <hujy652@protonmail.com>
2023-08-23 21:57:56 +08:00
Robert Marko ddf1bccc76 mdio-tools: update to 1.2.0
Update the mdio-netlink kmod and userspace mdio-tools to version 1.2.0.
This allows dropping the time64 musl patch which was upstreamed.

[v1.2.0] - 2022-09-15
---------------------

- mdio: A new addressing mode "mmd-c22": Used to access MMDs attached
  to MDIO controllers without Clause 45 support by using registers 13
  and 14 in the device's Clause 22 register space
- mdio: Pretty print gigabit link capability information from a PHY's
  extended status register
- mdio: Pretty print lots of status information from MMDs (C45 PHYs)
- mvls: Decode priority override information of ATU entries

- mvls: Table listings now always prints out the device information,
  even on single chip systems.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-09-19 19:50:16 +02:00
Robert Marko 44149099e7 mdio-tools: include mvls
mdio-tools have a app dedicated to reading Marvell Link Street switch
properties which is really usefull to not have to manually do it via
MDIO.

So, install the mvls binary as well.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2022-06-09 11:06:41 -07:00
Robert Marko 4048eeb3ea mdio-tools: update to 1.1.1
Update the mdio-netlink kmod and userspace mdio-tools to version 1.1.1.

mdio-tools required a musl time64 compatibility fix that I have an PR
open for already.

Changelog:
[v1.1.1] - 2022-05-23
---------------------

Tiny bugfix release.

- mdio: The bench operation is now much more reliable when stacked on
  other devices than regular PHYs (e.g. paged PHYs or Marvell
  switches).
- mvls: The STU can now be dumped chips from the Peridot generation.

[v1.1.0] - 2022-05-04
---------------------

A sprawling release, adding various mvls related introspection
features. mvls also gains a JSON output format.

- mvls: The STU can now be dumped (requires Linux 5.17 or later). This
  is useful now that mv88e6xxx supports offloading of MST states
- mvls: Output can now be formatted as JSON for easier scripting
- mdio: mvls: A subset of MIB counters can now be dumped. This let's
  you get at counters for DSA ports, which are not reachable from
  ethtool
- mdio: mvls: The LAG mask and LAG map tables can now be dumped
- mdio: Improve usage message by including the examples from the
  manual

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2022-06-09 11:06:41 -07:00
Chukun Pan 5c3d27677f mdio-tools: add kmod-mdio-netlink as dependencies
Otherwise it will fail as follows:
  failed to find a module named mdio-netlink
  ERROR: mdio-netlink module not detected, and could not be loaded.

Run-tested on: ramips/mt7621

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
2022-04-24 11:02:43 +02:00
Robert Marko 9f0fdb0ee2 mdio-tools: update to version 1.0.1
Version 1.0.1 brought the following changes:
[v1.0.1] - 2021-11-26

Primarily fixes a few issues in the kernel module that were found
during a quick review from Russell King:

https://lore.kernel.org/netdev/YYPThd7aX+TBWslz@shell.armlinux.org.uk/
https://lore.kernel.org/netdev/YYPU1gOvUPa00JWg@shell.armlinux.org.uk/

- mdio: The mvls subcommand now supports flushing the ATU

- mdio-netlink: Plug some glaring holes around integer overflows of
  the PC.
- mdio-netlink: Release reference to MDIO bus after a transaction
  completes.

So, update to the latest version and switch the kernel module back
to fetching tarballs like the userspace tool does.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-01-18 18:05:33 -08:00
Damien Mascord 1a400370c0 mdio-tools: Bump version to 1.0.0
Upstream released 1.0.0, so change the package to the git tag 1.0.0

Mainly documentation and argument handling changes

Signed-off-by: Damien Mascord <tusker@tusker.org>
2021-09-22 01:05:56 -07:00
Sebastian Kemper f0e12ae71b mdio-tools: fix buildbot build
On buildbots the build fails because git isn't finding any git repo and
then AC_INIT refuses to run:

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
configure.ac:5: error: AC_INIT should be called with package and version arguments

Address this by substituting the git command with $(PKG_VERSION).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-23 21:13:45 +02:00
Michael Heimpold 30299084e8 mdio-tools: upgrade to latest commit
Also fix minor style issues.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2021-07-21 22:24:49 +02:00
Damien Mascord e3512741cd mdio-tools: Add package plus kernel module
mdio is a low-level Linux debug tool for communicating with devices attached an MDIO bus. It improves on existing tools in this space in a few important ways:

MDIO buses are directly addressable. Previous solutions relied on at least one Ethernet PHY on the bus being attached to a net device, which is typically not the case when the device is an Ethernet switch for example.
Complex operations can be performed atomically. The old API only supported a single read or write of a single register. mdio sends byte code to the mdio-netlink kernel module that can perform multiple operations, store intermediate values, loop etc. As a result, things like read/mask/write operations and accesses to paged PHYs can be performed safely.

Signed-off-by: Damien Mascord <tusker@tusker.org>
2021-07-15 16:27:46 +10:00