From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795949601; b=bkf72eiyD04a9rf39eVuFTE2h7bA889lKYwVeu5JIlx4eRpRBUMiv325k5JizI48/Yfn wZEg6kYvJjEZqxHzAf/CN+SQzzVbnJKb2mRhqDRrk5Yxm/80EVBxPPPG+gH9veJuL12FE eYh8O0eaYZ3vXTCpq/FsXFKaK4p3Yqzobb4izLSL6lX1VUIgAsyrA1k7qXMo0CtnuAhMu 8PpfGegQnuVWqSB7Vp0AqWRmmdq150bf/RHnJf9vjzTFhicrRytC4OV5YSEXF6QjibnzF UPAcJLw2mae8Nluw8a/tXAWQgSpe7L70saL+ZRusTz+LdNAOHKt9jXmU8Kbfg6w6oCA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795949601; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=n+l9ZtCq+GUsP/usxwQB4mj+aFP0b5GXAjLUiEs6wMM=; b=Vu7wXQLSBmWbBDiUMBbSmxyLrxaH45z+0/lI9pv1yT4FRCivbmQ1SniuS8JgkFrM9hd+ jE3nYL38gThuJoPEvDgJUamqzJRbEkwqqNw0Lg8Oyz3SqswwT/FTJidY5Jq1utwzSr3sx 8zPbrYkDrOD3YL6fuUinrldj+iDKDjW+DBJarh14J58hVyprtqZMWeC0yaUwiOFLLwhDe XpStF5MHQwUtozV/jy5B94tqNACarhhkCDa+js9S042HeWzmu7xBtmr63Avi2sLTj364r ZI+rD8NFkw7FAaBgGPZJvNsNhdkHdt3puv3X0KTg9HuzBrzouTsQdxF34AFeGGqv63A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=oKaTAZPz; arc=none smtp.remote-ip=209.85.219.47 Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3CE2606A323 for ; Sun, 29 Nov 2026 10:53:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B3CE2606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=oKaTAZPz Received: by mail-qv1-f47.google.com with SMTP id 6a1803df08f44-9213eb1f3a7so82868836d6.0 for ; Sun, 29 Nov 2026 02:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795949600; x=1796554400; darn=vger.kernel.org; h=mime-version:content-transfer-encoding:content-type:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=n+l9ZtCq+GUsP/usxwQB4mj+aFP0b5GXAjLUiEs6wMM=; b=oKaTAZPzifyovBHEV1ZiML98RnslGIC1LRHcbgkh0Z4lOCjiNywkQ9hiNwWNDqlbFR WIPQl3kLmuIyBfwMNIgRI44/eFZj6UqaHTlLdeWa2haIXarmAdj4RVrrUajmOF29fSLu lFM/Xcgem2Pf6jUrS6MSdX8nVViFKnjXQS0ozx6qvxuH6eMV+OgC0tYTsy05MbD4kIqB QLnuozoaWFpZeelwaiuYRj+6fXQSpzeHB56UDLXQ6uhgBllokliSi0NshUlstKiyZ8GW AzpuywgjtgAqGiJHMiemT9UMfEThsCitGgC8WGinuQHOt7LuAEXS/ILs25mbwF9rhYKS ZB5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795949600; x=1796554400; h=mime-version:content-transfer-encoding:content-type:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=n+l9ZtCq+GUsP/usxwQB4mj+aFP0b5GXAjLUiEs6wMM=; b=XcG/fGLefMeZZulGo/ErXv+c/ncSZrewzvFiqEUpXeHjxIi6z9tjvmwLyzNjQhL2tn 889Ja/2UkeAy0/6oKP5s1pf96LV/RSOD8jSbrNUqboPv9wVhhoxaf3+xfL7cU2NT+yDl XFFfIztfbXbIcmjpqatZLecvwYWabIQTv8UDDecZoolR/OUnkKQtpVlQ2CwyxeCjd038 lwCjBxBDC8HvdG5SfKDYo36Vc0PvG8c4Z0FciqmoW+LY8A+9FA+hhXFoimhOAhZZISM6 s3TEAinQQjUmU9rohDilhLVKH7a+f2bbaVKxkUmQ2hqkvX08g2d2d4CeFXKcFwvg30dK 6O3g== X-Forwarded-Encrypted: i=1; AL+hErFz46JR0XREnzahzeLBsZQLPKXC7lHigv7GdJZ2WhR56anoTiHQKG7OGgz1UtDhjpYcZyQhBjmx4JM=@vger.kernel.org X-Gm-Message-State: APuU4Z9a/6Rk4eJXEXoCJxl/vKmY2IJk36HXSZkjYX5urm/b/1biDuIw JQD9Db8I7nb1gmnY1sBcpjTl2xedtnsDtNygxVb//IoPlEUzJrY8i5fSE2noTm9nc7r1bw== X-Gm-Gg: AZFdTZfOo1vxBD7jCgRJYXl6swZC4CZ+NFvUmE7Eyhz+hqRBSwRMc0XEtH4k9wPXERD 2MsFgPy9mC2AY4GPyQJ56zq1C3zDbqTl3MSNjvCZ9MHcBli2uXduR0krG7wsJQzQOxR9zlQGtcW KVPyQ6tyOwr7QXIRHM0HREbIo4imUw84xbG0hSh2a+klqwfyWtRFE5s8h/0e5PnskpnaLyVXbmv 1o72tdp5jEca1zPQdMYdhlx7JtoiH9/tNlT8+YCQjqkRuvQEGM69mj62qI9nIKtt2CL1l6El44Z Xu2NmprK+bcQysbi0GxgTjLsnzP3ajV8Ssq8cTAirkIERLuwfys4atk10R7olYZrkZ5KFJcOrc0 QJpKN0Ym/Mu2fHio4qhabik3BBwog2sLRGyve5SZjZeVxkn+xkJLQSsYExfqxjvyt0BE0IurEc5 OtDk8XNtPd4jQF4XCkgIwtfDKFWTHMKpz/Xl6s0g3IPkOhT0TmjWI3cEePsiAQStFKND3L0W5l1 9CryI1vWHn/k3wJG/0g54FkLDC8talel1OefS5hl4jnFrSX3BbAGz17/kUBXtahHXH8ZAQrh3SA Pf21P+eyC/vuJWgciL6pbDTlbx0/I2mTmARtw2GulkV7sUvMyWsbz6J0ko2CtKMJ7fPcII3dsiq jVPmX8KgCY11mz2vNEzU+jyoP7lAQcgO1cC2bcqXL6SCmCkzZbw== X-Received: by 2002:a05:6214:2f12:b0:921:79ee:f626 with SMTP id 6a1803df08f44-92179eef6b3mr268498226d6.43.1795949599570; Sun, 29 Nov 2026 02:53:19 -0800 (PST) Received: from zeppelin-x.local (dhcp-9-244-177-183.gobrightspeed.net. [9.244.177.183]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349d14d1sm266406816d6.18.2026.11.29.02.53.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 02:53:18 -0800 (PST) From: Felipe Infante de Castro To: Bjorn Andersson , Konrad Dybcio , Mika Westerberg Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org Subject: [FYI] X1E80100 (Surface Laptop 7 15") USB4 / tunnelled PCIe bring-up findings (usb_pipe clock, U2 stall, retimer scan drop, EL1 SMMU) Date: Sun, 29 Nov 2026 05:53:18 -0500 Message-ID: <179594959805.39844.8246716936546308802@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 Hi Bjorn, Konrad, Mika, and list, Sharing a concise set of hardware-verified findings from bringing up USB4 (USB 3 + PCIe tunnelling + eGPUs) on a retail 15-inch Microsoft Surface Laptop 7 (microsoft,romulus15, X1E-80-100, retail UEFI 175.361.235, Linux 7.3.6), extending Jim Martin's Glymur USB4 stack and building on birkskyum's Yoga Slim 7x work and Konrad's Hamoa USB4 PHY series. Three X1E80100 USB4 findings that may matter for upstream X1E USB4 work: 1. Unvoted router USB PIPE clock resets the SoC on USB3 tunnel enable Enabling host router USB3 adapter 5 reset the laptop ~50 ms later (2/2 runs) even with dwc3-qcom bound and awake. GCC_USB4_0_PHY_USB_PIPE_CLK (0x9f0a4) and GCC_USB4_1_PHY_USB_PIPE_CLK (0x2b0a4) clear their CLK_OFF status once dwc3-qcom binds while their enable bit remains 0. Voting for the router's usb_pipe clock before creating USB3 tunnels eliminates the reset on both ports. 2. Tunnelled USB3 root link stalls in U2 SuperSpeed devices behind the dock enumerate cleanly, then time out ~2 s later ("Failed to set U1 timeout to 0x0, error code -110") with the root port stuck in U2. Disabling U2 via an xHCI quirk on the tunnelled root port only (leaving downstream hubs and native links unchanged) restores lossless SuperSpeed traffic after 30-35 s idle on both ports. 3. Host-side tb_retimer_scan() triggers ~0.2 s fresh-plug drops on X1E80100 host router (05c6:0938) About 4 in 10 fresh plugs (6/13 arrival sequences across both ports) dropped the dock ~0.195 s after discovery and rediscovered ~0.5 s later. Control-channel tracing showed the in-flight host sideband transaction aborting with RC=1 NR=0 (-EIO) ~0.11 s into tb_retimer_scan(), followed ~52 ms later by 0:2/0:3 unplug events. Controlled A/B on one boot (AOOSTAR AG03, both ports): - Stock host scan: 2/6 dropped - Host scan addressing index 1 only: 4/9 dropped - Host scan skipped (dock scan kept): 0/10 dropped - Host scan skipped + 1,490 ms delay: 0/11 dropped Adding a QUIRK_NO_RETIMER_SCAN quirk for host router 05c6:0938 (where the on-board PS8830 retimers are driven over I2C and report unknown NVM format to USB4 scan anyway) gave 0/20 fresh-plug drops on both ports (0/41 combined) and cut dock USB 3 bring-up from 2.45 s to 0.96 s while keeping dock-side retimer discovery working. 4. Hinge DesignWare iMSI-RX & retail EL1 PCIe SMMUv3 status - Mapping tunnelled roots to GICv3 ITS at EL1 under Gunyah stalls the ITS command queue on hot-unplug. Using DesignWare iMSI-RX (msi0-msi7, with PARF_INT_ALL_MSI_DEV_0_7 included in PARF_INT_ALL_MASK) on the hinge port works cleanly (verified with amdgpu and NVIDIA R580 CUDA). - Retail Surface UEFI 175.361.235 keeps PCIe SMMUv3 (0x15400000) inaccessible at EL1 (0x02001506 SCM call is preboot-only), so tunnelled endpoints have no IOMMU at EL1 and stay held unless the administrator explicitly opts in. All verified register maps, ACPI IORT/SMMU audit, dock traces, and the alpha 25-patch series are public here: - Facts & hardware receipts: https://github.com/fidecastro/surface-laptop-7-15in-facts - Alpha 25-patch kernel series (v0.1.1-alpha): https://github.com/fidecastro/surface-laptop-7-usb4 - Userspace explicit EL1 eGPU helper (v0.2.0): https://github.com/fidecastro/sl7-egpu Happy to share additional traces or test ideas on hardware if useful for mainline X1E USB4 / Thunderbolt work. Best regards, Felipe Infante de Castro Signed-off-by: Felipe Infante de Castro