mbox series

[v2,0/4] thunderbolt: Notify userspace about tunneling events in the domain

Message ID 20250417090426.221773-1-mika.westerberg@linux.intel.com
Headers show
Series thunderbolt: Notify userspace about tunneling events in the domain | expand

Message

Mika Westerberg April 17, 2025, 9:04 a.m. UTC
Hi all,

This series adds support to sending uevents to userspace about changes in
tunneling such as creation, removal and bandwidth related.  One intented
use-case for this is an upcoming USB-C daemon developed by Saranya that
then notifies user for example if there is not enough bandwidth for
DisplayPort requirements. We also added debug tools [1] support for these
(currently it just updates various screens on event but we are working on
add event log there too).

The Firmware Connection manager side is kind of limited though since there
are not that many notifications we get.

[1] https://github.com/intel/tbtools

Previous version can be found:

  https://lore.kernel.org/linux-usb/20250410125600.3074417-1-mika.westerberg@linux.intel.com/

Changes from the previous version:

  * Add missing SoB.
  * Add documentation to admin-guide/thunderbolt.rst.

Alan Borzeszkowski (4):
  thunderbolt: Introduce domain event message handler
  thunderbolt: Notify userspace about software CM tunneling events
  thunderbolt: Notify userspace about firmware CM tunneling events
  Documentation/admin-guide: Document Thunderbolt/USB4 tunneling events

 Documentation/admin-guide/thunderbolt.rst | 33 ++++++++
 drivers/thunderbolt/domain.c              |  2 +-
 drivers/thunderbolt/icm.c                 | 36 ++++++++-
 drivers/thunderbolt/tb.c                  | 22 +++++-
 drivers/thunderbolt/tb.h                  | 13 ++++
 drivers/thunderbolt/tb_msgs.h             |  1 +
 drivers/thunderbolt/tunnel.c              | 92 +++++++++++++++++++++--
 drivers/thunderbolt/tunnel.h              | 23 ++++++
 8 files changed, 212 insertions(+), 10 deletions(-)