From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76E59FD45EC for ; Wed, 25 Feb 2026 21:07:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E40B310E013; Wed, 25 Feb 2026 21:07:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="aWxINVYu"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id CE23010E013 for ; Wed, 25 Feb 2026 21:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1772053660; x=1803589660; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=R3FH3TfoQk9T6KiQgCjhQXhHPbxf48JMQp4x8ZFhUrM=; b=aWxINVYuJIGdKsmwUgq0TGkuNWrN7oDJc14kd3douf0SSDLTYqYQIqiz hJeGrg2bB10hJYOQ2TnfR3OpDevym6Uu+XvwtxTxC0oCBoM4p9cdvdRe6 iLi95SFZOxeezxecy1j+R6mxoug8d2e/UHkhVWalwfnJ9kW0Mwpy/jDnm aKf20qpZElNJo47jAmfQ/hvPackgyxxlbXAdeG7sMjNz6UuyeFUVfKP+2 NhAEksetsdbAtju1VMikR87sgpsDgHY0lflM5QexQH+RGgxQJbYNfJ6oZ tLSFBoJGvHBh4U98rkjIEOrSichZaqt0OC/XdcBKKQIBPm+du8pgLoQRK A==; X-CSE-ConnectionGUID: 7RU+7RtoQwGAeVeJoBfvSg== X-CSE-MsgGUID: HlBxpa1GTcqjR+kE+dqFkg== X-IronPort-AV: E=McAfee;i="6800,10657,11712"; a="75710605" X-IronPort-AV: E=Sophos;i="6.21,311,1763452800"; d="scan'208";a="75710605" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2026 13:07:39 -0800 X-CSE-ConnectionGUID: IBNIG7fVSIetG5/a+2A9uw== X-CSE-MsgGUID: 94qBeu9YQ4SwN/wqp+WuPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,311,1763452800"; d="scan'208";a="220489303" Received: from kunal-x299-aorus-gaming-3-pro.iind.intel.com ([10.190.239.13]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2026 13:07:38 -0800 From: Kunal Joshi To: igt-dev@lists.freedesktop.org Cc: Kunal Joshi Subject: [PATCH i-g-t 0/6] add test to validate dock/undock and switch Date: Thu, 26 Feb 2026 02:58:53 +0530 Message-Id: <20260225212859.876713-1-kunal1.joshi@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" 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