Skip to content

thunderbolt: Add credit allocation for USB4 devices

Mika Westerberg linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8thunderbolt: Make tb_port_type() take const parameterdrivers/thunderbolt/switch.c+1 -10 replies
2/8thunderbolt: Move nfc_credits field to struct tb_path_hopdrivers/thunderbolt/path.c drivers/thunderbolt/tb.h drivers/thunderbolt/tunnel.c+19 -150 replies
3/8thunderbolt: Wait for the lanes to actually bonddrivers/thunderbolt/switch.c drivers/thunderbolt/tb.h drivers/thunderbolt/xdomain.c+58 -20 replies
4/8thunderbolt: Read router preferred credit allocation informationdrivers/thunderbolt/switch.c drivers/thunderbolt/tb.h drivers/thunderbolt/tb_regs.h +1 more+221 -80 replies
5/8thunderbolt: Update port credits after bonding is enabled/disableddrivers/thunderbolt/switch.c drivers/thunderbolt/tb.h drivers/thunderbolt/xdomain.c+51 -00 replies
6/8thunderbolt: Allocate credits according to router preferencesdrivers/thunderbolt/tb.h drivers/thunderbolt/tunnel.c drivers/thunderbolt/tunnel.h+346 -740 replies
7/8thunderbolt: Add quirk for Intel Goshen Ridge DP creditsdrivers/thunderbolt/quirks.c+26 -30 replies
8/8thunderbolt: Add KUnit tests for credit allocationdrivers/thunderbolt/test.c+545 -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 0/8] thunderbolt: Add credit allocation for USB4 devices

Hi all,

USB4 spec requires that routers expose their credit (buffer) allocation preferences through a special router operation. Furthermore the Connection Manager guide (as part of the USB4 spec bundle) provides some guidance how the credits should be allocated between different tunneled protocols. This series adds the credit allocation support for USB4 routers. For Intel Thunderbolt 1-3 devices we keep using the existing hard-coded scheme.

We also add some KUnit tests for the credit allocation.

Mika Westerberg (8):
thunderbolt: Make tb_port_type() take const parameter
thunderbolt: Move nfc_credits field to struct tb_path_hop
thunderbolt: Wait for the lanes to actually bond
thunderbolt: Read router preferred credit allocation information
thunderbolt: Update port credits after bonding is enabled/disabled
thunderbolt: Allocate credits according to router preferences
thunderbolt: Add quirk for Intel Goshen Ridge DP credits
thunderbolt: Add KUnit tests for credit allocation

 drivers/thunderbolt/path.c    |   4 +-
 drivers/thunderbolt/quirks.c  |  29 +-
 drivers/thunderbolt/switch.c  | 151 +++++++++-
 drivers/thunderbolt/tb.h      |  44 ++-
 drivers/thunderbolt/tb_regs.h |   1 +
 drivers/thunderbolt/test.c    | 545 ++++++++++++++++++++++++++++++++++
 drivers/thunderbolt/tunnel.c  | 401 ++++++++++++++++++++-----
 drivers/thunderbolt/tunnel.h  |   2 +
 drivers/thunderbolt/usb4.c    | 155 ++++++++++
 drivers/thunderbolt/xdomain.c |  10 +
 10 files changed, 1253 insertions(+), 89 deletions(-)
Signature · 1 line
2.30.2