Source: linux
Version: 7.3.4-1
Severity: important

Dear Maintainer,

Hardware & Firmware:
- Device: Lenovo ThinkPad X13s Gen 1 (21BX)
- UEFI / BIOS: N3HET95W (1.67)
- WWAN Card: Foxconn T99W175 (Qualcomm Snapdragon X55 5G, PCI ID 105b:e0c3)
- OS / Kernels tested: Debian Forky (deb14) arm64 — 7.1.13+deb14-arm64, 
7.2.15+deb14-arm64, and 7.3.4+deb14-arm64
- Active DTB: sc8280xp-lenovo-thinkpad-x13s.dtb matching kernel 
7.3.4+deb14-arm64 (verified via /proc/device-tree)

Problem Description:
On cold boots, warm reboots, and resumes, the Snapdragon X55 5G modem on PCIe 
controller 1c10000.pcie (bus 0004:00) only enumerates sporadically. On most 
boots, the PCIe root port 0004:00:00.0 initializes, logs "qcom-pcie 
1c10000.pcie: Device found, but not active", and never achieves PCIe link up or 
enumerates 0004:01:00.0.

By contrast, booting Windows 11 on the exact same machine detects and 
initializes the 5G modem 100% of the time (confirming the M.2 slot, card 
seating, and UEFI firmware are healthy).

Diagnostics:
1. Device Tree (/proc/device-tree/soc@0/pcie@1c10000/pcie@0/):
   - Contains `phys`, `reset-gpios`, `wake-gpios`, and parent 
`vddpe-3v3-supply`, but has no `compatible` string or `pci-pwrctrl` / `pwrseq` 
binding (unlike Wi-Fi on pcie@1c00000, which binds to `pci_pwrctrl_pwrseq` + 
`pwrseq_qcom_wcn`).

2. GPIO state (`gpioinfo`):
   - `line 0: output consumer="regulator-wwan"`
   - `line 141 / 143 / 151: output active-low consumer="PERST#"`

3. Runtime behavior when missing:
   - `lspci` shows `0004:00:00.0` (17cb:010e), but no downstream endpoint 
(`0004:01:00.0`).
   - `mhi_pci_generic` does not load (only `ath11k_pci` and `qrtr_mhi` bind to 
`mhi`).
   - Triggering `/sys/bus/pci/rescan` or removing/rescanning `0004:00:00.0` 
does not bring up the link (`runtime PM trying to activate child device 
0004:00:00.0 but parent (pci0004:00) is not active`, even after forcing 
`power/control` to `on` on `1c10000.pcie` and `0004:00:00.0`).
   - Toggling `/sys/bus/pci/slots/0-1/power` returns `No such device` (`pciehp: 
Slot(0-1): Already disabled`).

Relevant dmesg output (kernel 7.3.4+deb14-arm64):
[    4.867637] qcom-pcie 1c10000.pcie: supply vdda not found, using dummy 
regulator
[    4.867931] qcom-pcie 1c10000.pcie: host bridge /soc@0/pcie@1c10000 ranges:
[    4.982076] qcom-pcie 1c10000.pcie: iATU: unroll T, 8 ob, 8 ib, align 4K, 
limit 1024G
[    5.941877] qcom-pcie 1c10000.pcie: Device found, but not active
[    5.942304] qcom-pcie 1c10000.pcie: PCI host bridge to bus 0004:00
[    5.950828] pcieport 0004:00:00.0: pciehp: Slot #0 AttnBtn- PwrCtrl+ MRL+ 
AttnInd+ PwrInd+ HotPlug+ Surprise+ Interlock+ NoCompl+ IbPresDis- LLActRep+

It appears `1c10000.pcie` needs proper M.2 WWAN power-sequencing / 
`pci-pwrctrl` timing (such as `pwrseq-pcie-m2`) or a longer link-up/power-on 
delay for the Snapdragon X55 baseband to initialize before link training times 
out.

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: arm64 (aarch64)

Kernel: Linux 7.3.4+deb14-arm64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to