omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

USB-C hub/dock monitors dead on Framework 13 (Tiger Lake) after linux 7.1.9 — ucsi_acpi never binds USBC000, /sys/class/typec empty

Open edlandm opened this issue 3 months ago • 3 comments

USB-C hub/dock monitors dead on Framework 13 (Tiger Lake) after linux 7.1.9 — ucsi_acpi never binds USBC000, /sys/class/typec empty

What happened

After updating to linux 7.1.9.arch1-2 (2026-08-31, same update pulled linux-firmware 20260810-2; Omarchy 4.0.2/Quattro), external monitors connected through a USB-C hub stopped working on a Framework Laptop 13 (11th gen, Tiger Lake, Iris Xe / i915). The hub's USB side is fully functional (hub enumeration, RTL8153 ethernet, card readers), but DisplayPort Alt Mode never starts, so both monitor outputs on the hub stay dark. Replugging does not help.

The same hub on the same port worked on linux 7.1.8.arch1-3 (last working use 2026-08-30, previous boot).

Root cause (diagnosed live on the affected machine)

  • All card1-DP-* DRM connectors stay disconnected; hyprctl monitors all shows only eDP-1.

  • /sys/class/typec/ is completely empty — no port objects exist at all, so DP Alt Mode can never be negotiated on any port. The hub falls back to USB-only.

  • The UCSI platform device USBC000:00 (HID USBC000, CID PNP0CA0, from the INSYDE TbtTypeC SSDT) exists, udev loads ucsi_acpi via its acpi:USBC000:PNP0CA0: modalias, but the driver never binds, so no typec ports are registered.

  • Manual bind is rejected by the kernel on 7.1.9:

    # echo USBC000:00 > /sys/bus/platform/drivers/ucsi_acpi/bind
    bash: echo: write error: No such device
    
  • modinfo ucsi_acpi on 7.1.9 shows its only match ID is acpi*:PNP0CA0:*. On other kernels, USBC000 devices bind ucsi_acpi fine (public reports below), so this looks like a 7.1.9 regression in the ACPI/platform match path (CID-based matching) rather than a hardware or config issue.

  • Thunderbolt is healthy and not the cause: both TGL TB4 NHI domains come up (domain0/domain1), and unbinding/rebinding the thunderbolt driver live made no difference to UCSI binding.

  • Also ruled out: the new MODULES+=(thunderbolt) initramfs drop-in shipped in omarchy-settings 4.0.2 (first effective in the same boot) — unbinding the driver did not restore typec registration.

Public reports of the same USBC000/ucsi_acpi breakage pattern across kernel updates:

  • Artix forum: "Latest linux kernel update fails to boot PPM init … ucsi_acpi USBC000:00: PPM init failed (-110)" (11th gen Intel laptop)
  • Red Hat Bugzilla 2248484: ucsi_acpi USBC000:00: UCSI_GET_PDOS failed after a kernel update; worked on the prior kernel series, fixed in a later kernel

Environment

  • Omarchy 4.0.2-1 (Quattro), fully updated 2026-08-31
  • Kernel: linux 7.1.9.arch1-2 (broken), linux 7.1.8.arch1-3 (working)
  • Hardware: Framework Laptop 13, 11th gen Intel (Tiger Lake, i915), INSYDE BIOS with TbtTypeC SSDT
  • Compositor: Hyprland; only eDP-1 present while affected

Workaround

  • Boot linux-lts (omarchy pkg add linux-lts), or
  • Downgrade: fetch linux-7.1.8.arch1-3 from the Arch Linux Archive, pacman -U it, and hold with IgnorePkg = linux until a fixed kernel lands in the repos (upstream stable already has 7.1.10).

Suggested Omarchy action

Consider a known-issues note for Quattro/4.0.2 users on Framework 11th-gen (and other USBC000-based Insyde/AMI BIOSes) who lose USB-C display output after the 7.1.9 update, pointing to linux-lts as the escape hatch until Arch ships 7.1.10+.

edlandm avatar Sep 01 '26 00:09 edlandm

One correction to the workaround note, and a datapoint that may separate this from a similar-looking bug.

"upstream stable already has 7.1.10" is not the fix version. Checked against the kernel.org ChangeLogs directly: 7.1.10 contains no UCSI changes at all. The UCSI timeout fix is eb4573cf2fd860b20adfae050c3f6ec6ddc3abdb ("usb: typec: ucsi: use UCSI_TIMEOUT_MS for sync command completion", Cc: stable, kernel bugzilla 221740), and it is absent from 7.1.9–7.1.13 and 7.2.1–7.2.3 — it appears only in 7.2.4. Anyone holding linux waiting for 7.1.10 will wait for a kernel that does not carry it. As of today Arch core still ships 7.2.3.arch1-3.

The two failure modes look worth keeping apart. This report is ucsi_acpi never binding USBC000 (modinfo matching only acpi*:PNP0CA0:*, manual bind rejected) — an ACPI match-path problem I could not find an upstream fix for. What eb4573cf2fd8 fixes is ucsi_acpi binding and then timing out (error -ETIMEDOUT: PPM init failed).

On a Framework Laptop 16 (Ryzen AI 9 HX 370) I had the timeout variant on 7.1.9 with /sys/class/typec/ empty. On 7.2.3-arch1-3 the ports register normally (port0–port4 with partner/cable/plug objects), so the timeout variant is already resolved before 7.2.4 here. That suggests the never-binds case is a separate defect rather than the same one at a different kernel.


Disclosure: this diagnosis and write-up were produced by Claude (Fable 5.1, via Claude Code) working on my laptop; the measurements are from my machine and I reviewed the text before posting.

Hazakins avatar Sep 10 '26 17:09 Hazakins

Variante distinta de #9513: el monitor por dock USB-C funciona solo en la primera conexión de cada encendido — el HPD llega, la live status del PHY no, y el AUX se rechaza con -ENXIO

Aclaración primero: esto no es el caso "ucsi_acpi nunca hace bind a USBC000" del reporte original. Acá DP-alt sí funciona — una vez, en la primera conexión posterior a encender. Después de cualquier desconexión, ese mismo puerto nunca vuelve, hasta el próximo encendido. Lo separo porque el diagnóstico de arriba pidió justamente no mezclar los modos de falla; si preferís que vaya como issue aparte, lo abro.

En mi máquina el dispositivo UCSI también está inutilizable (USBC000:00 con status=0, /sys/class/typec vacío, sin INTC105C), así que el mux lo maneja firmware/EC. Pero eso no explica el síntoma, porque el primer attach sí negocia alt-mode correctamente.

Entorno

HUAWEI MateBook X Pro 2021 (MACHD-WXX9, board MACHD-WXX9-PCB, BIOS 1.19 del 2021-08-31)
Intel Tiger Lake-LP GT2 [Iris Xe] 8086:9a49, driver i915, card1
Arch Linux / Omarchy 4.0.3, kernel 7.2.3-arch1-3, Hyprland 0.56.2 + aquamarine 0.15.0
Dock USB-C: hubs VIA Labs 2109:0817 (xHCI TCSS 00:0d.0) y 2109:2817 + Ethernet RTL8153
Monitor: [email protected] por DP-2 = DDI TC3/PHY TC3 (pin assignment D, 2 lanes)
Periféricos del dock (hub USB, Ethernet, mouse): funcionan siempre, incluso cuando el video falla.

Reproducción

  1. Encender con el dock conectado → el monitor externo funciona (hyprctl monitors muestra DP-2, modo [email protected]).
  2. Desconectar el cable USB-C. El hotplug se procesa bien (Aquamarine: Connector DP-2 disconnected).
  3. Reconectar el mismo cable en el mismo puerto → el monitor nunca vuelve. El resto del dock (USB/Ethernet/mouse) sí reenumera normal.

Es 100% reproducible en esta máquina; el único recovery es reiniciar (o suspender/reanudar, ver más abajo).

Evidencia: el hotplug SÍ llega

Con drm.debug=0xe (DRM_UT_KMS), cada reconexión produce el pulso largo de HPD en el puerto correcto:

[drm:gen11_hpd_irq_handler] hotplug event received, stat 0x00040000, dig 0x00008a88, pins 0x00000800, long 0x00000800
[drm:intel_hpd_irq_handler] digital hpd on [ENCODER:609:DDI TC3/PHY TC3] - long
[drm:intel_dp_hpd_pulse]    got hpd irq on [ENCODER:609:DDI TC3/PHY TC3] - long
[drm:drm_dp_dpcd_access [drm_display_helper]] AUX USBC3/DDI TC3/PHY TC3: Too many retries, giving up. First error: -6

Y el detect posterior falla en el camino de link training, con todas las transacciones AUX devolviendo lo mismo:

[drm:intel_dp_set_power] [ENCODER:609:DDI TC3/PHY TC3] Set power to D0 failed
[drm:intel_dp_start_link_train] [CONNECTOR:610:DP-2][ENCODER:609:DDI TC3/PHY TC3][DPRX] Using LINK_BW_SET value 14
[drm:intel_dp_link_train_phy] [CONNECTOR:610:DP-2]... Sink disconnected: Failed to enable link training
[drm:intel_dp_link_train_phy] ... Link Training failed at link rate = 540000, lane count = 2
[drm:intel_opregion_notify_encoder] [ENCODER:609:DDI TC3/PHY TC3] port F (index 6) out of bounds for display power state notification

Estado comparado (capturado con i915_display_info)

Con el monitor funcionando, el puerto está en alt-mode:

TC Port F/TC#3: mode: dp-alt, pin assignment: D, max lanes: 2

Tras el replug, card1-DP-2 queda disconnected con EDID de 0 B y no hay modo que negociar. Ojo: en ese estado i915_display_info no imprime la línea del TC port, porque intel_connector_info() hace if (connector->status == connector_status_disconnected) return; — así que el mode en el estado roto no se puede leer por ahí (queda como pregunta abierta, abajo).

Análisis

  • -6 es -ENXIO, y el único -ENXIO del camino AUX está en intel_dp_aux.c (__intel_dp_aux_transfer):

    if (!intel_dp_is_edp(intel_dp) &&
        !intel_digital_port_connected_locked(&dig_port->base)) {
            ret = -ENXIO;
            goto out_unlock;
    }
    

    Es el cortocircuito "el puerto no está conectado: no toques el hardware". Que el primer error de las 32 reintentos sea -6 (y no -ETIMEDOUT, que sería lo esperable si el AUX se manejara y el sink no contestara) confirma que i915 nunca escribió en el AUX.

  • intel_digital_port_connected_locked() para un puerto TC llega a intel_tc_port_connected():

    if (tc->mode != TC_PORT_DISCONNECTED)
            mask = BIT(tc->mode);
    return tc_phy_hpd_live_status(tc) & mask;
    

    y tc_phy_hpd_live_status() lee PORT_TX_DFLEXDPSP (la FIA del PHY) y decodifica TC_LIVE_STATE_TC(idx) / TC_LIVE_STATE_TBT(idx).

    O sea: con tc->mode == TC_PORT_DP_ALT y el HPD llegando, basta que la live status del PHY no tenga el bit TC para que i915 considere el puerto desconectado — y de ahí todo lo demás (AUX bloqueado → sin DPCD → sin EDID → sin link training) es consecuencia.

  • No es una regresión de la lógica TC del driver: intel_hotplug.c es idéntico entre linux 7.1.9 y 7.2.3, e intel_tc.c difiere solo en renames de tipos (i915_reg_t→intel_reg_t) y de drm_atomic_state→drm_atomic_commit.

  • En mi máquina también probé y no cambia nada: re-probe forzado de los conectores (echo detect), hacer unbind de los dos NHI de Thunderbolt, y el power-cycle completo del dock y del monitor. También descarté la initramfs: el drop-in MODULES+=(thunderbolt) que trae omarchy-settings 4.0.3 (apareció exactamente en el mismo update y la initramfs solo se reconstruye al instalar kernel) — lo saqué, reconstruí la initramfs y reinicié: el bug sigue igual.

Pregunta concreta para el lado del kernel

Lo que no pude determinar, y que decide si esto es un bug de i915 o del firmware del SoC:

  1. ¿La live status (DFLEXDPSP) vuelve vacía porque el EC/IOM no re-conmuta el mux, o porque i915 se quedó con tc->mode == TC_PORT_DISCONNECTED (latchado durante el blip de la desconexión) y ya no lo re-detecta? Por el código, tc->mode se recalcula en tc_phy_get_target_mode()/intel_tc_port_update_mode(), que corren al conectar o con la W/A de TCSS_DDI_STATUS, no en cada consulta.
  2. ¿Tiene sentido una W/A "al recibir un long HPD pulse en un puerto TC, re-armar el PHY del puerto" en lugar de dar el conector por desconectado?

Dato que apoya la hipótesis 1 como receta del fix: suspender y reanudar rearma el PHY sin tocar el cable (ver abajo). Al reanudar, i915 re-corre intel_tc_port_sanitize_mode() y el firmware rehace la negociación del mux, y con eso el monitor vuelve. Eso indica que el hardware está sano y que falta el rearme.

Palancas verificadas (por si sirven a alguien más)

Palanca Resultado
Re-probe forzado (echo detect en los conectores DP) no recupera
unbind de los NHI de Thunderbolt en caliente no cambia nada
Power-cycle del dock y del monitor (apagado real + 30 s) no cambia nada
Sacar thunderbolt de la initramfs + reconstruir + reiniciar no cambia nada
Suspender y reanudar sí rearma: el monitor vuelve sin reconectar nada
Thunderbolt deshabilitado en el BIOS peor: nunca hay imagen, ni en el primer attach — en esta máquina el ruteo a DP pasa por el subsistema TB/TCSS del firmware, por eso quedó habilitado
Actualización de BIOS no existe: 1.19 (2021-08-31) es la última; HUAWEI no está en LVFS (verificado en https://fwupd.org/lvfs/vendors/), y solo distribuye BIOS por PC Manager (Windows) o en service center

Workaround

systemctl suspend   # y despertar: el PHY se rearma y el monitor vuelve

Envoltorio que suspende 5 s y despierta solo con la alarma del RTC, sin reiniciar:

sudo rtcwake -m mem -s 5

Detalle lateral (quizá otro bug menor de i915)

Con el puerto en falla aparece, en cada intento de modeset:

[drm:intel_opregion_notify_encoder] [ENCODER:609:DDI TC3/PHY TC3] port F (index 6) out of bounds for display power state notification

DDI TC3 se identifica como port F (index 6) en el camino de opregion y queda fuera de rango. No parece la causa del síntoma, pero no debería pasar.


Diagnóstico hecho con evidencia en vivo de esta máquina (logs del kernel con drm.debug=0xe, capturas de i915_display_info y de sysfs); redacté los seriales de los dispositivos. Los scripts de captura y el reporte completo quedaron locales.

azidevnom avatar Sep 13 '26 17:09 azidevnom

Triage read this report and the two follow-up comments. Nothing was run: the failure depends on this laptop's firmware and the kernel's UCSI driver, so a worker VM cannot reproduce it.

The classification is unsettled, so this issue gets no type label for now. Three models read it independently and gave three answers. GPT-6 Luna called it not actionable, an upstream kernel regression that Omarchy itself has nothing to fix. DeepSeek V4.1 Flash called it a bug. When asked again as tie-breaker, GPT-6 Luna called it a hardware compatibility bug. None of them reproduced anything, so this is a disagreement about what kind of report it is, not about whether it is real.

What would settle it: whether it still happens on the current Omarchy kernel. The workaround above was written against 7.1.9. Since then, @Hazakins found that the UCSI timeout fix only landed in 7.2.4, and also that it fixes a different failure from the never-binds one reported here. @edlandm, if you can boot the current kernel and run ls /sys/class/typec and ls -l /sys/bus/platform/devices/USBC000:00/driver with the hub plugged in, that output would show whether ucsi_acpi now binds.

The replug-only variant in the comment from @azidevnom looks like a separate failure, as that comment says. #13211 reports the same symptom.

This is waiting on the maintainer to decide what the report is and whether a known-issues note is wanted.

omarchybot avatar Oct 18 '26 01:10 omarchybot