Skip to content

thunderbolt: Add DMA traffic test driver

Mika Westerberg linux-usb netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 2 repliesIn review
  2. v110 patches 6 repliesSuperseded

Changes from the previous version from the cover letter

* Fix resource leak in tb_xdp_handle_request() (patch 2/10)
* Use debugfs_remove_recursive() in tb_service_debugfs_remove() (patch 6/10)
* Add tags from Yehezkel

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10thunderbolt: Do not clear USB4 router protocol adapter IFC and ISE bitsdrivers/thunderbolt/path.c+10 -30 replies
2/10thunderbolt: Find XDomain by route instead of UUIDdrivers/thunderbolt/xdomain.c+5 -50 replies
3/10thunderbolt: Create XDomain devices for loops back to the hostdrivers/thunderbolt/xdomain.c+1 -30 replies
4/10thunderbolt: Add link_speed and link_width to XDomainDocumentation/ABI/testing/sysfs-bus-thunderbolt drivers/thunderbolt/switch.c drivers/thunderbolt/tb.h +2 more+106 -10 replies
5/10thunderbolt: Add functions for enabling and disabling lane bonding on XDomaindrivers/thunderbolt/switch.c drivers/thunderbolt/tb.h drivers/thunderbolt/xdomain.c +1 more+92 -30 replies
6/10thunderbolt: Create debugfs directory automatically for servicesdrivers/thunderbolt/debugfs.c drivers/thunderbolt/tb.h drivers/thunderbolt/xdomain.c +1 more+35 -00 replies
7/10thunderbolt: Make it possible to allocate one directional DMA tunneldrivers/thunderbolt/tunnel.c+31 -190 replies
8/10thunderbolt: Add support for end-to-end flow controldrivers/net/thunderbolt.c drivers/thunderbolt/ctl.c drivers/thunderbolt/nhi.c +1 more+42 -80 replies
9/10thunderbolt: Add DMA traffic test driverdrivers/thunderbolt/Kconfig drivers/thunderbolt/Makefile drivers/thunderbolt/dma_test.c+752 -00 replies
10/10MAINTAINERS: Add Isaac as maintainer of Thunderbolt DMA traffic test driverMAINTAINERS+6 -00 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYehezkel BernatGreg Kroah-Hartman
SeriesR-b
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/10] thunderbolt: Add DMA traffic test driver

Hi all,

This series adds a new Thunderbolt service driver that can be used on manufacturing floor to test that each Thunderbolt/USB4 port is functional. It can be done either using a special loopback dongle that has RX and TX lanes crossed, or by connecting a cable back to the host (for those who don't have these dongles).

This takes advantage of the existing XDomain protocol and creates XDomain devices for the loops back to the host where the DMA traffic test driver can bind to.

The DMA traffic test driver creates a tunnel through the fabric and then sends and receives data frames over the tunnel checking for different errors.

The previous version can be found here:

https://lore.kernel.org/linux-usb/[email protected]/

Changes from the previous version:

* Fix resource leak in tb_xdp_handle_request() (patch 2/10)
* Use debugfs_remove_recursive() in tb_service_debugfs_remove() (patch 6/10)
* Add tags from Yehezkel

Isaac Hazan (4):
thunderbolt: Add link_speed and link_width to XDomain
thunderbolt: Add functions for enabling and disabling lane bonding on XDomain
thunderbolt: Add DMA traffic test driver
MAINTAINERS: Add Isaac as maintainer of Thunderbolt DMA traffic test driver

Mika Westerberg (6):
thunderbolt: Do not clear USB4 router protocol adapter IFC and ISE bits
thunderbolt: Find XDomain by route instead of UUID
thunderbolt: Create XDomain devices for loops back to the host
thunderbolt: Create debugfs directory automatically for services
thunderbolt: Make it possible to allocate one directional DMA tunnel
thunderbolt: Add support for end-to-end flow control

 .../ABI/testing/sysfs-bus-thunderbolt         |  28 +
 MAINTAINERS                                   |   6 +
 drivers/net/thunderbolt.c                     |   2 +-
 drivers/thunderbolt/Kconfig                   |  13 +
 drivers/thunderbolt/Makefile                  |   3 +
 drivers/thunderbolt/ctl.c                     |   4 +-
 drivers/thunderbolt/debugfs.c                 |  24 +
 drivers/thunderbolt/dma_test.c                | 736 ++++++++++++++++++
 drivers/thunderbolt/nhi.c                     |  36 +-
 drivers/thunderbolt/path.c                    |  13 +-
 drivers/thunderbolt/switch.c                  |  33 +-
 drivers/thunderbolt/tb.h                      |   8 +
 drivers/thunderbolt/tunnel.c                  |  50 +-
 drivers/thunderbolt/xdomain.c                 | 148 +++-
 include/linux/thunderbolt.h                   |  18 +-
 15 files changed, 1080 insertions(+), 42 deletions(-)
 create mode 100644 drivers/thunderbolt/dma_test.c
Signature · 1 line
2.28.0