Skip to content

thunderbolt: Add support for XDomain lane bonding

Mika Westerberg linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5thunderbolt: Add debug logging when lane is enabled/disableddrivers/thunderbolt/switch.c+8 -20 replies
2/5thunderbolt: Move tb_port_state() prototype to correct placedrivers/thunderbolt/tb.h+1 -10 replies
3/5thunderbolt: Split setting link width and lane bonding into own functionsdrivers/thunderbolt/switch.c drivers/thunderbolt/tb.h+74 -140 replies
4/5thunderbolt: Ignore port locked error in tb_port_wait_for_link_width()drivers/thunderbolt/switch.c+10 -30 replies
5/5thunderbolt: Add support for XDomain lane bondingdrivers/thunderbolt/tb.c drivers/thunderbolt/tb_msgs.h drivers/thunderbolt/tb_regs.h +2 more+595 -830 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] thunderbolt: Add support for XDomain lane bonding

Hi all,

So far connecting two Thunderbolt/USB4 domains (hosts) the high-speed link has been using a single lane. The reason for this was simplicity and also the fact that the host DMA was not able to go over the 20 Gbit/s even if the lanes were bonded. However, Intel Alder Lake and beyond actually can go higher than that so now it makes more sense to take advantage of the lane bonding. The USB4 Inter-Domain Service specification describes the protocol and this patch series implements it for the Linux Thunderbolt/USB4 driver.

If both sides (hosts) of the link announce supporting this, we will establish bonded link. This is only possible on systems with software based connection manager (so Intel Alder Lake and beyond).

Mika Westerberg (5):
thunderbolt: Add debug logging when lane is enabled/disabled
thunderbolt: Move tb_port_state() prototype to correct place
thunderbolt: Split setting link width and lane bonding into own functions
thunderbolt: Ignore port locked error in tb_port_wait_for_link_width()
thunderbolt: Add support for XDomain lane bonding

 drivers/thunderbolt/switch.c  | 109 ++++--
 drivers/thunderbolt/tb.c      |   6 -
 drivers/thunderbolt/tb.h      |   4 +-
 drivers/thunderbolt/tb_msgs.h |  39 +++
 drivers/thunderbolt/tb_regs.h |   5 +
 drivers/thunderbolt/xdomain.c | 609 ++++++++++++++++++++++++++++++----
 include/linux/thunderbolt.h   |  19 +-
 7 files changed, 688 insertions(+), 103 deletions(-)
Signature · 1 line
2.35.1