Skip to content

thunderbolt: USB4 v2 asymmetric switching and more

Mika Westerberg linux-usb 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 1 replyIn review
  2. v110 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Try to transition above links symmetric if a USB4 v2 router is connected whose link comes up as symmetric regardless whether it support asymmetric links or not (previously we just checked for the support).

- Transition asymmetric also when DP tunnel is established if its consumption goes over the threshold.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10thunderbolt: Use constants for path weight and prioritydrivers/thunderbolt/tunnel.c+27 -120 replies
2/10thunderbolt: Use weight constants in tb_usb3_consumed_bandwidth()drivers/thunderbolt/tunnel.c+6 -30 replies
3/10thunderbolt: Make is_gen4_link() available to the rest of the driverdrivers/thunderbolt/switch.c drivers/thunderbolt/tb.h+30 -70 replies
4/10thunderbolt: Change bandwidth reservations to comply USB4 v2drivers/thunderbolt/tb.c drivers/thunderbolt/tunnel.c drivers/thunderbolt/tunnel.h+76 -30 replies
5/10thunderbolt: Set path power management packet support bit for USB4 v2 routersdrivers/thunderbolt/path.c drivers/thunderbolt/tb.h drivers/thunderbolt/tb_regs.h +1 more+34 -130 replies
6/10thunderbolt: Introduce tb_port_path_direction_downstream()drivers/thunderbolt/tb.c drivers/thunderbolt/tb.h drivers/thunderbolt/tunnel.c+25 -100 replies
7/10thunderbolt: Introduce tb_for_each_upstream_port_on_path()drivers/thunderbolt/tb.h+15 -00 replies
8/10thunderbolt: Introduce tb_switch_depth()drivers/thunderbolt/tb.c drivers/thunderbolt/tb.h+11 -20 replies
9/10thunderbolt: Add support for asymmetric linkdrivers/thunderbolt/switch.c drivers/thunderbolt/tb.c drivers/thunderbolt/tb.h +2 more+381 -550 replies
10/10thunderbolt: Configure asymmetric link if needed and bandwidth allowsdrivers/thunderbolt/tb.c+558 -1230 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/10] thunderbolt: USB4 v2 asymmetric switching and more

Hi all,

This series adds more USB4 v2 features. First it makes the bandwidth reservation to comply with the v2 connection manager guide, adds the PMPS packet support bit and enables asymmetric 120/40G switching to support the Ultra-High Bitrate DisplayPort modes.

Applies on top of thunderbolt.git/next.

Previous version of the series can be found through below link:

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

Changes from v1:
- Try to transition above links symmetric if a USB4 v2 router is connected whose link comes up as symmetric regardless whether it support asymmetric links or not (previously we just checked for the support).

- Transition asymmetric also when DP tunnel is established if its consumption goes over the threshold.

Gil Fine (5):
thunderbolt: Make is_gen4_link() available to the rest of the driver
thunderbolt: Change bandwidth reservations to comply USB4 v2
thunderbolt: Introduce tb_port_path_direction_downstream()
thunderbolt: Add support for asymmetric link
thunderbolt: Configure asymmetric link if needed and bandwidth allows

Mika Westerberg (5):
thunderbolt: Use constants for path weight and priority
thunderbolt: Use weight constants in tb_usb3_consumed_bandwidth()
thunderbolt: Set path power management packet support bit for USB4 v2 routers
thunderbolt: Introduce tb_for_each_upstream_port_on_path()
thunderbolt: Introduce tb_switch_depth()

 drivers/thunderbolt/path.c    |   7 +-
 drivers/thunderbolt/switch.c  | 328 +++++++++++++---
 drivers/thunderbolt/tb.c      | 689 ++++++++++++++++++++++++++++------
 drivers/thunderbolt/tb.h      |  58 ++-
 drivers/thunderbolt/tb_regs.h |  12 +-
 drivers/thunderbolt/tunnel.c  | 161 ++++++--
 drivers/thunderbolt/tunnel.h  |   2 +
 drivers/thunderbolt/usb4.c    | 106 ++++++
 8 files changed, 1149 insertions(+), 214 deletions(-)
Signature · 1 line
2.40.1