[PATCH i-g-t 0/6] add test to validate dock/undock and switch

Kunal Joshi
2026-04-09T04:16:03Z

Add test to validate docking/undocking scenarios on TBT Hub
and switching from TBT/DP-ALT to DP-ALT/TBT mode.

Relies on Microsoft USB4 switch 3141 for the same
Below is link to documentation for Microsoft USB4 switch 3141
https://mcci.com/wp-content/uploads/2021/09/950001601a_Model-3141-USB4%E2%84%A2-Switch-User-Manual.pdf

Kunal Joshi (6):
lib/igt_edid: add EDID serial extraction helpers
lib/igt_connector_helper: Add generic connector helpers
lib/igt_serial: add generic serial communication helper
lib/igt_usb4_switch: add helper library for USB4 Switch 3141
tests/kms_feature_discovery: add basic usb4 switch discovery
tests/intel/kms_usb4_switch: Add USB4 switch test suite

lib/igt_connector_helper.c | 299 ++++++++
lib/igt_connector_helper.h | 27 +
lib/igt_edid.c | 91 +++
lib/igt_edid.h | 5 +
lib/igt_serial.c | 435 ++++++++++++
lib/igt_serial.h | 32 +
lib/igt_usb4_switch.c | 1055 +++++++++++++++++++++++++++
lib/igt_usb4_switch.h | 157 +++++
lib/meson.build | 3 +
tests/intel/kms_usb4_switch.c | 1254 +++++++++++++++++++++++++++++++++
tests/kms_feature_discovery.c | 23 +
tests/meson.build | 2 +
12 files changed, 3383 insertions(+)
create mode 100644 lib/igt_connector_helper.c
create mode 100644 lib/igt_connector_helper.h
create mode 100644 lib/igt_serial.c
create mode 100644 lib/igt_serial.h
create mode 100644 lib/igt_usb4_switch.c
create mode 100644 lib/igt_usb4_switch.h
create mode 100644 tests/intel/kms_usb4_switch.c

--
2.25.1