Skip to content

thunderbolt: Tunneling improvements

Mika Westerberg linux-usb 1 version Applied

Status from this message: Applied to thunderbolt.git/fixes.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/17thunderbolt: Fix path indices used in USB3 tunnel discoverydrivers/thunderbolt/tunnel.c+6 -61 reply
2/17thunderbolt: Make tb_next_port_on_path() work with tree topologiesdrivers/thunderbolt/switch.c+12 -50 replies
3/17thunderbolt: Make tb_path_alloc() work with tree topologiesdrivers/thunderbolt/path.c drivers/thunderbolt/tb.h+18 -60 replies
4/17thunderbolt: Check that both ports are reachable when allocating pathdrivers/thunderbolt/path.c+13 -20 replies
5/17thunderbolt: Handle incomplete PCIe/USB3 paths correctly in discoverydrivers/thunderbolt/tunnel.c+6 -40 replies
6/17thunderbolt: Increase path length in discoverydrivers/thunderbolt/tb.h+5 -10 replies
7/17thunderbolt: Add KUnit tests for path walkingdrivers/thunderbolt/Kconfig drivers/thunderbolt/Makefile drivers/thunderbolt/test.c+1235 -00 replies
8/17thunderbolt: Add DP IN resources for all routersdrivers/thunderbolt/tb.c+46 -40 replies
9/17thunderbolt: Do not tunnel USB3 if link is not USB4drivers/thunderbolt/tb.c drivers/thunderbolt/tb.h drivers/thunderbolt/tb_regs.h +1 more+27 -33 replies
10/17thunderbolt: Make usb4_switch_map_usb3_down() also return enabled portsdrivers/thunderbolt/tb.c drivers/thunderbolt/usb4.c+4 -120 replies
11/17thunderbolt: Make usb4_switch_map_pcie_down() also return enabled portsdrivers/thunderbolt/tb.c drivers/thunderbolt/usb4.c+2 -20 replies
12/17thunderbolt: Report consumed bandwidth in both directionsdrivers/thunderbolt/tb.c drivers/thunderbolt/tunnel.c drivers/thunderbolt/tunnel.h+47 -150 replies
13/17thunderbolt: Increase DP DPRX wait timeoutdrivers/thunderbolt/tunnel.c+1 -10 replies
14/17thunderbolt: Implement USB3 bandwidth negotiation routinesdrivers/thunderbolt/tb.h drivers/thunderbolt/tb_regs.h drivers/thunderbolt/usb4.c+369 -00 replies
15/17thunderbolt: Make tb_port_get_link_speed() available to other filesdrivers/thunderbolt/switch.c drivers/thunderbolt/tb.h+9 -10 replies
16/17thunderbolt: Add USB3 bandwidth managementdrivers/thunderbolt/path.c drivers/thunderbolt/tb.c drivers/thunderbolt/tb.h +2 more+532 -1110 replies
17/17thunderbolt: Add KUnit tests for tunnelingdrivers/thunderbolt/test.c+398 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/17] thunderbolt: Tunneling improvements

Hi all,

This series improves the Thunderbolt/USB4 driver to support tree topologies that are now possible with USB4 devices (it is possible with TBT devices but there are no such devices available in the market with more than two ports).

We also take advantage of KUnit and add unit tests for path walking and tunneling (in cases where hardware is not needed). In addition we add initial support for USB3 tunnel bandwidth management so that the driver can share isochronous bandwidth between USB3 and DisplayPort.

Mika Westerberg (17):
thunderbolt: Fix path indices used in USB3 tunnel discovery
thunderbolt: Make tb_next_port_on_path() work with tree topologies
thunderbolt: Make tb_path_alloc() work with tree topologies
thunderbolt: Check that both ports are reachable when allocating path
thunderbolt: Handle incomplete PCIe/USB3 paths correctly in discovery
thunderbolt: Increase path length in discovery
thunderbolt: Add KUnit tests for path walking
thunderbolt: Add DP IN resources for all routers
thunderbolt: Do not tunnel USB3 if link is not USB4
thunderbolt: Make usb4_switch_map_usb3_down() also return enabled ports
thunderbolt: Make usb4_switch_map_pcie_down() also return enabled ports
thunderbolt: Report consumed bandwidth in both directions
thunderbolt: Increase DP DPRX wait timeout
thunderbolt: Implement USB3 bandwidth negotiation routines
thunderbolt: Make tb_port_get_link_speed() available to other files
thunderbolt: Add USB3 bandwidth management
thunderbolt: Add KUnit tests for tunneling

 drivers/thunderbolt/Kconfig   |    5 +
 drivers/thunderbolt/Makefile  |    2 +
 drivers/thunderbolt/path.c    |   38 +-
 drivers/thunderbolt/switch.c  |   25 +-
 drivers/thunderbolt/tb.c      |  378 ++++++--
 drivers/thunderbolt/tb.h      |   35 +-
 drivers/thunderbolt/tb_regs.h |   20 +
 drivers/thunderbolt/test.c    | 1626 +++++++++++++++++++++++++++++++++
 drivers/thunderbolt/tunnel.c  |  326 ++++++-
 drivers/thunderbolt/tunnel.h  |   37 +-
 drivers/thunderbolt/usb4.c    |  369 +++++++-
 11 files changed, 2709 insertions(+), 152 deletions(-)
 create mode 100644 drivers/thunderbolt/test.c
Signature · 1 line
2.27.0.rc2