From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.57.71 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796318309; b=FmJHC22uIATBkP/FY9qzIQMwlP+Dn+S8jbqA0kunstFnPzCWfYFjl+IE5EJcZU+8MyS2 G1fLG5r0nVa5050j/0t8ClbiWCJFLKTYPX/iIom4x+Y0+AoB5B1dvuytYVpvirrvUpLrA RCAPuPDP1Wge1UwIFDH/y4uylgSSTRs4uvnu82Os8jvtCjTEd+0d3dfQpwLsybenSnl1T oAYbnyVxQr6fOxFTXhQcCOx5HGSlExI2RRI4Rl5ZkrSconGEE0VYHjBp9fjneUa8np1o+ 9xmAEPSHyHPAbG08fUSczdM8XOJTI5R0+LFz6wm1jCVunYT6K8a7Kej0/uJ3GMH+KhA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796318309; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: From:Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-ID:X-B4-Tracking:X-Change-ID:To:CC:X-Mailer:X-Originating-IP: X-ClientProxiedBy:X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=7O8KS2+P6+1KGqJuGB0zPBccA/uJvDFqhNmVh8bxyrE=; b=Q11f5N4qLa7bwdJco15XbiMVegFvTSjoLWbLZd+PRDzEXeREAfhMxSSIlMVpFbqrMHhY itKhBVPM2VW8mZgtgOOOKQin4DFzT2od0HsFpPelJo5mj/JatufQONLkur9xq4+VgyPAL L+FPd/cLIVhtUQxtAWksu5c43UmmNjOdr+0mmcgOidw4zUix205bOAjhKoSNLpeOeS/8/ 5yE1oOTNRL3SADw5JuySf6moW5OWD7wxfs+6GxwDloOrFVrXb1ft9iSqWvRzmAKdtxs2A sg27oqJYa1AELKyZxE7dsR/ZTp0Nl4RTrvMzjTOP0oe2T8x34AiSpFmQBaXL1tJSizw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=knHpY4p7; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.57.71 Received: from BN8PR05CU002.outbound.protection.outlook.com (mail-eastus2azon11011071.outbound.protection.outlook.com [52.101.57.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 874DF606A33F; Thu, 3 Dec 2026 17:18:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 874DF606A33F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=knHpY4p7 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cmUS/T0MTv6ocIK6X2itCtWB33sCVr2JwkTJ3W4sntq+e5cQ19V7PIsUfmGM3/GsHIjxFxCBuX8oDJNQ6SCunDQEknLRe/HIQ2tY8L3uhaANzeJxIG0F8NzDmsT3OtTvmdtf3dRGTMt4ybvd+ss7GPuxlaFTfFZ/BpvoEYOUSpV0EcDDo1rKgyQdDGjGxn+4A+5GnY5U4pXb7zgcVQYzMQ+b5r0Ei2wkdW+MSCD2kewVfLUoMBBGZvY9alJj4albpajHj2jGQTbC0+a1PIxaBGAn2Ri9rdrKpkch4jp+e78whFBxY2lYVbaf6/GGZjIEeDxed3YcZxQRABeXjfjBjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7O8KS2+P6+1KGqJuGB0zPBccA/uJvDFqhNmVh8bxyrE=; b=vmkhZnKqs40gblipTGYovUly+kudsybt85r5JJoo5kmHwLf7mYNClLwcmmMe9CBcn4sf6HHihth+VP6Ogqz6fNXp6q1bRSPEANso4uph3ahoEnK7dKBPYbi5iC+xBszLn36X83tzvA5U/qQPgEaSqdKFxgAyyPTf6Frr3X/RvRzvTkUOwnQ51KFsRGnf36dKHYJl1Wfic7MafkVOUO8bOy8QO8rfSxppHHkSjtiXeHfmbMYfCz/X9YIEjO+jsk/QLB6dE2iijQUkb7AtCIStW7r3mw8Zjot5vCrkgPjK4NppFrvr2eCmZS9PxnBovlN70TTAXH/weNx8pUFR6AHysw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7O8KS2+P6+1KGqJuGB0zPBccA/uJvDFqhNmVh8bxyrE=; b=knHpY4p7WY8U54hWwgm4O2MN1Z8Aixu0vm0SClEMo9AzSxGtAQsGVKI/7+GruxMZy62qN8D9hKQdWxwtZtBdhQrl7C3YVJO2AQ0IjoMo1PS1p+yT7guHeqCYeYnIGVCP+BNK1YGkAcMVNvmiuqtbu90P8i7tiiwwcL3+Sg4shQE= Received: from PH7P220CA0064.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:32c::8) by IA0PPF95ABFC125.namprd12.prod.outlook.com (2603:10b6:20f:fc04::bdb) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.12; Thu, 3 Dec 2026 17:18:15 +0000 Received: from MW2PEPF00014675.namprd04.prod.outlook.com (2603:10b6:510:32c:cafe::82) by PH7P220CA0064.outlook.office365.com (2603:10b6:510:32c::8) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.11 via Frontend Transport; Thu, 3 Dec 2026 17:18:15 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by MW2PEPF00014675.mail.protection.outlook.com (10.167.249.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Thu, 3 Dec 2026 17:18:15 +0000 Received: from [127.0.1.1] (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 11:18:11 -0600 From: Mario Limonciello Date: Thu, 3 Dec 2026 11:18:02 -0600 Subject: [PATCH] thunderbolt: Always generate the host router UUID X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20261203-thunderbolt-v1-1-347b359ad963@amd.com> X-B4-Tracking: v=1; b=H4sIAEmkEWsC/yXMSwqAIBRA0a3EGyeYQb+tRAM/z3oRFmoRRHvPa ngG914Q0BMG6LILPB4UaHUJRZ6BnqQbkZFJBsFFVQhesjjtzqBX6xKZVW1tlWhKWXFIxebR0vn d+uF32NWMOr4LuO8HnqP1SG8AAAA= X-Change-ID: 20261203-thunderbolt-fb97fb283a60 To: Andreas Noever , Mika Westerberg , Yehezkel Bernat CC: Sanath S , , , Mario Limonciello X-Mailer: b4 0.16.0 X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW2PEPF00014675:EE_|IA0PPF95ABFC125:EE_ X-MS-Office365-Filtering-Correlation-Id: af7c741a-2fad-4622-4fbd-08df51616abe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|82310400026|1800799024|376014|36860700016|11063799006|18002099003|10067099003|56012099006|261022105027099003|261028144727099003|261026121527099003|261026140227099003|261021135927099003|261021123027099003|261021121427099003|261009223027099003|261102123227099003; X-Microsoft-Antispam-Message-Info: hAAVGSWgtbTV2yXfRZdxrGbLPZVJ45D0Rf02PwYsp0/5xydVBw/8xh/uWXVQMcdgVIm4wsvdtrx9BJ9Aw1UMEj001cP5z61wPTdGe8V1m2ksBMitADDlI3UPy7+2PQDnl+Tno3MG3ijYMYm+ktGFZAsqgcrdXiTfAopgOpHxweWE4iDY0/6zWW8T/iTeCmVnA4GpY2oK6y05+EImZEgnyvLUzZB0oVJwBUe3WtUIPFd7xHASeb2LHQRbUCkXdmhxi25EqwJ5fTdIY2hN+mch8wtfDjqZqRjMpdvcmF3jtxwYVhfZjnSjrrlu5rZlfGPUdHiyQUhpqutBABpd8uHedA042UMUbvMMnmzJNEtVNQ2lw9N2WBt8Z3g5zKMrGUMiBFSYMNouLiAZqnV7XrxCP2bYKm3soWgQoSmvDNI01mAobzh0jFBarmLtTl0cmGgnBFl9UhNTSrme2zkJPQZlkHRvw45y1gmJo+JjhCrmLUkS1CP4ft8+cCYl77OWbV+HY5GXhERNDSp8SNP1NsNs5Xrjwb7eWVRIv8rNo9YnuadBuO1kRY8uRybA9Fk7+2ryu90N62A6JNm6emA8LV/2bFIJuQkGgBylgXCM8hAIJyBgxNz5Of11hZnaK3AnPjUB3oAskQecScfHUjvIizWzs/AGn+PL0Hqq53HDp8h5m4+16BJc0ktOY+fv42Y3LPHqSzQZ3uELsFx6ujnRdyrEgQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(82310400026)(1800799024)(376014)(36860700016)(11063799006)(18002099003)(10067099003)(56012099006)(261022105027099003)(261028144727099003)(261026121527099003)(261026140227099003)(261021135927099003)(261021123027099003)(261021121427099003)(261009223027099003)(261102123227099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EkdTdmY0aKrwhjQuE2AALgDQj5nemLqyk6YlRszS98mFIhjR3KVndGuokPQQWZZa0RMUksVLPhJAIRKgkLcaFBDDl9UhDauckJY8PuhPSN0qbCb87N061HlXVF3TrMR+EQf9D4J3/jBl9ywyE4LKtV2cPTURE8Zk6GsGjTZ/x6deCMfn7Rd80OqlkdvuAJ2obZVWTX7Fs8Mbs2VB4VlhBHI32WhnFTdzjzDjGoqpIJWVfvJXSAPjwFwaS94xXP3IZXw4Dti60/Rg65Hc2y8cZksdruvF9eqS5ZQLgQBBJBOL5o1L3pbrKfv0hYE/uL+rcqZYxmOFVIRY1L9xjN2FBAXWK6osRE/aPyhqIjwmty5fPYm0eBqzBT1TUA0kLT/fzR0zyWg9lajtvjX4TyjLZTThItVWnngtBsU4ocXBFpHXTPtlDSOHo9kr9wTeYXEb X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 17:18:15.3110 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af7c741a-2fad-4622-4fbd-08df51616abe X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MW2PEPF00014675.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PPF95ABFC125 The software connection manager derives the UUID of the host router from its UID (or the fused link controller UUID on older Thunderbolt hardware) with the upper two words filled with ones to match what ICM does. The USB4 spec however requires the Domain UUID used in inter-domain communication to be generated according to ISO/IEC 9834-8, and the host router UID is not guaranteed to be unique either. If the IDs are not unique then when two of these hosts are connected together each side sees its own UUID in the inter-domain UUID response, treats the link as a loop and never bonds the lanes, which caps the host-to-host link at a single lane. Always generate a random UUID for the host router instead. Device routers keep the UID-derived UUID so that their unique_id stays stable across boots and matches what ICM reports. Signed-off-by: Mario Limonciello --- drivers/thunderbolt/switch.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c index 8899fea713ac2..6cedaf5351bd9 100644 --- a/drivers/thunderbolt/switch.c +++ b/drivers/thunderbolt/switch.c @@ -2872,7 +2872,17 @@ static int tb_switch_set_uuid(struct tb_switch *sw) if (sw->uuid) return 0; - if (tb_switch_is_usb4(sw)) { + if (!tb_route(sw)) { + /* + * USB4 spec requires the Domain UUID to be generated + * according to ISO/IEC 9834-8 so never derive it from the + * host router UID. The UID is not guaranteed to be unique + * either (it can be left unprogrammed) and if two hosts end + * up with the same UUID the inter-domain link is mistaken + * for a loop and lanes are never bonded. + */ + generate_random_uuid((u8 *)uuid); + } else if (tb_switch_is_usb4(sw)) { ret = usb4_switch_read_uid(sw, &sw->uid); if (ret) return ret; --- base-commit: b8a56745a38d34f9db9723f7d0ef8ab10c0eabc5 change-id: 20261203-thunderbolt-fb97fb283a60 Best regards, -- Mario Limonciello