Skip to content

thunderbolt: Add retimer NVM upgrade support

Mika Westerberg linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6thunderbolt: Add Intel USB-IF ID to the NVM upgrade supported listdrivers/thunderbolt/switch.c+2 -10 replies
2/6thunderbolt: Split common NVM functionality into a separate filedrivers/thunderbolt/Makefile drivers/thunderbolt/domain.c drivers/thunderbolt/nvm.c +2 more+220 -990 replies
3/6thunderbolt: Generalize usb4_switch_do_[read|write]_data()drivers/thunderbolt/usb4.c+21 -180 replies
4/6thunderbolt: Retry USB4 block read operationdrivers/thunderbolt/usb4.c+2 -50 replies
5/6thunderbolt: Implement USB4 port sideband operations for retimer accessdrivers/thunderbolt/sb_regs.h drivers/thunderbolt/tb.h drivers/thunderbolt/tb_regs.h +1 more+516 -00 replies
6/6thunderbolt: Add support for on-board retimersDocumentation/ABI/testing/sysfs-bus-thunderbolt Documentation/admin-guide/thunderbolt.rst drivers/thunderbolt/Makefile +5 more+578 -60 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/6] thunderbolt: Add retimer NVM upgrade support

Hi all,

USB4 added standard means for accessing retimers on the link. This access is done through the side-band channel (two side-band wires in Type-C cable). The retimer specification is part of USB4 spec and can be downloaded here:

https://www.usb.org/sites/default/files/USB4%20Specification_5.zip

On-board retimers are represented as devices and added under the router they belong to with names like <device>:<port>.<index>. We re-use some of the current NVM upgrade code for routers for retimers as well. Also we only expose these when software connection manager is used. It is not clear if firmware connection manager is going to support this (and what kind of messaging it needs).

The user-space interface is the same we have for routers so that should allow code re-use for tools such as fwupd.

Currently only Intel NVM format is supported but this will be relaxed once we learn format of other vendors.

This series applies on top of the tunneling improvements series here:

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

Kranthi Kuntala (1):
thunderbolt: Add support for on-board retimers

Mika Westerberg (4):
thunderbolt: Add Intel USB-IF ID to the NVM upgrade supported list
thunderbolt: Split common NVM functionality into a separate file
thunderbolt: Generalize usb4_switch_do_[read|write]_data()
thunderbolt: Retry USB4 block read operation

Rajmohan Mani (1):
thunderbolt: Implement USB4 port sideband operations for retimer access

 .../ABI/testing/sysfs-bus-thunderbolt         |  33 ++
 Documentation/admin-guide/thunderbolt.rst     |  11 +-
 drivers/thunderbolt/Makefile                  |   1 +
 drivers/thunderbolt/domain.c                  |   2 +-
 drivers/thunderbolt/nvm.c                     | 169 ++++++
 drivers/thunderbolt/retimer.c                 | 485 +++++++++++++++++
 drivers/thunderbolt/sb_regs.h                 |  33 ++
 drivers/thunderbolt/switch.c                  | 122 +----
 drivers/thunderbolt/tb.c                      |  10 +
 drivers/thunderbolt/tb.h                      |  85 ++-
 drivers/thunderbolt/tb_regs.h                 |  10 +
 drivers/thunderbolt/usb4.c                    | 505 +++++++++++++++++-
 12 files changed, 1338 insertions(+), 128 deletions(-)
 create mode 100644 drivers/thunderbolt/nvm.c
 create mode 100644 drivers/thunderbolt/retimer.c
 create mode 100644 drivers/thunderbolt/sb_regs.h
Signature · 1 line
2.27.0.rc2