Linux USB
 help / color / mirror / Atom feed
* [FYI] X1E80100 (Surface Laptop 7 15") USB4 / tunnelled PCIe bring-up findings (usb_pipe clock, U2 stall, retimer scan drop, EL1 SMMU)
@ 2026-11-29 10:53 Felipe Infante de Castro
  0 siblings, 0 replies; only message in thread
From: Felipe Infante de Castro @ 2026-11-29 10:53 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Mika Westerberg; +Cc: linux-arm-msm, linux-usb

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 <felipe.infante.de.castro@gmail.com>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-29 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 10:53 [FYI] X1E80100 (Surface Laptop 7 15") USB4 / tunnelled PCIe bring-up findings (usb_pipe clock, U2 stall, retimer scan drop, EL1 SMMU) Felipe Infante de Castro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox