thunderbolt: Add credit allocation for USB4 devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | thunderbolt: Make tb_port_type() take const parameterdrivers/ | +1 | 0 replies | |
| 2/8 | thunderbolt: Move nfc_credits field to struct tb_path_hopdrivers/ drivers/ drivers/ | +19 | 0 replies | |
| 3/8 | thunderbolt: Wait for the lanes to actually bonddrivers/ drivers/ drivers/ | +58 | 0 replies | |
| 4/8 | thunderbolt: Read router preferred credit allocation informationdrivers/ drivers/ drivers/ +1 more | +221 | 0 replies | |
| 5/8 | thunderbolt: Update port credits after bonding is enabled/disableddrivers/ drivers/ drivers/ | +51 | 0 replies | |
| 6/8 | thunderbolt: Allocate credits according to router preferencesdrivers/ drivers/ drivers/ | +346 | 0 replies | |
| 7/8 | thunderbolt: Add quirk for Intel Goshen Ridge DP creditsdrivers/ | +26 | 0 replies | |
| 8/8 | thunderbolt: Add KUnit tests for credit allocationdrivers/ | +545 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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