I'll preface the following information by saying that although I've been
a sysadmin for 40 years, this issue is operating at a fine-grained
hardware level I don't have a lot of experience with, so much of the
research and diagnostics below has been driven by ChatGPT. Nevertheless,
the following information is well researched and hopefully useful.

## Additional reproduction: CM5 / ASM1182e / NVMe runtime failure under
kernel 7.0 — ASPM A/B/A testing

I have independently reproduced what appears to be the same PCIe ASPM
regression on two Raspberry Pi Compute Module 5 systems running Ubuntu
26.04.

Unlike the original report, my failures occur after several days of
normal operation rather than shortly after boot. I have now completed a
controlled ASPM-enabled / disabled / enabled experiment that I believe
provides useful diagnostic evidence.

### Hardware and software

Two systems, named *isengard* and *lilliput*, with substantially
identical hardware:

- Raspberry Pi Compute Module 5
- Geekworm X1500 dual-NVMe carrier
- ASMedia ASM1182e PCIe Gen2 switch (`1b21:1182`)
- Two 2TB WD_BLACK SN850X-family NVMe SSDs (`15b7:5030`) per system
- Linux mdadm RAID1 arrays across the two SSDs
- Ubuntu 26.04 arm64
- Affected kernel: `7.0.0-1020-raspi` (`linux-raspi 7.0.0-1020.20`)
- Previously working kernel: `6.8.0-1065-raspi`

The original hardware configuration operated reliably for approximately
ten months before the Ubuntu 24.04 → 26.04 upgrade on October 20, 2026.

Under kernel 6.8, PCIe ASPM was disabled. Under kernel 7.0, all links in
the NVMe PCIe hierarchy reported `ASPM L1 Enabled`, without any explicit
ASPM kernel parameter.

### Three observed failures

**October 21 — isengard**

Approximately 29 hours after first booting kernel 7.0, `nvme0`
(`0001:03:00.0`, serial `24154S800247`) became inaccessible. The system
continued operating with degraded RAID1 arrays.

The kernel reported:

```
nvme nvme0: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS=0x10
nvme nvme0: Does your device have a faulty power saving mode enabled?
nvme nvme0: Try "nvme_core.default_ps_max_latency_us=0 pcie_aspm=off 
pcie_port_pm=off" and report a bug
nvme 0001:03:00.0: Unable to change power state from D3cold to D0, device 
inaccessible
nvme nvme0: Disabling device after reset failure: -19
```

A complete shutdown and removal of power restored the controller. The
SSD's SMART information showed no media errors, and the RAID arrays were
rebuilt.

Returning to kernel 6.8, with ASPM disabled, produced no recurrence over
approximately eleven days of subsequent operation.

**November 7 — lilliput**

I constructed a second system using a different CM5/X1500 platform, the
previously failed SSD from isengard, and a new SSD.

Both systems ran kernel 7.0 with default power-management settings.

After approximately four days, lilliput's `nvme0` (`0001:03:00.0`,
serial `26140N800449`) failed with the same controller-status and PCI
power-state errors.

Importantly, this was a different physical SSD from the one that had
failed on isengard. The previously failed SSD remained operational in
lilliput.

**December 1 — lilliput**

After completing the ASPM-disabled experiment described below, I re-
enabled ASPM L1 on lilliput and restarted the same workload.

After approximately four days, the failure recurred, but this time on
`nvme1` (`0001:04:00.0`, serial `24154S800247`).

The kernel reported:

```
Dec 01 12:21:07 nvme nvme1: controller is down; will reset: CSTS=0xffffffff, 
PCI_STATUS=0x10
Dec 01 12:21:07 nvme 0001:04:00.0: Unable to change power state from D3cold to 
D0, device inaccessible
Dec 01 12:21:07 nvme nvme1: Disabling device after reset failure: -19
```

Several RAID1 members were subsequently marked failed. The system
remained running on the surviving SSD.

This third failure demonstrates that the symptom is not confined to a
single NVMe SSD or a single downstream port of the ASM1182e.

### Controlled ASPM A/B/A experiment

On lilliput, I used fio to generate a repeating workload:

- Three minutes of mixed random read/write I/O, using a dedicated file on an 
mdadm RAID1/LVM filesystem
- Seven minutes without test-generated I/O
- Repeated continuously
- NVMe APST left at its default latency threshold of `100000` microseconds 
throughout

The results:

| Phase            | Kernel     | ASPM       | Duration         | Result       |
|------------------|------------|------------|------------------|--------------|
| A1: Nov 3–7      | 7.0.0-1020 | L1 enabled | ~4 days          | NVMe failure |
| B: Nov 8–27      | 7.0.0-1020 | Disabled   | 19 days, 5h, 42m | No failures  |
| A2: Nov 27–Dec 1 | 7.0.0-1020 | L1 enabled | ~4 days          | NVMe failure |

For phase B, I disabled ASPM using the kernel command-line parameter:

`pcie_aspm.policy=performance`

I verified that `/sys/module/pcie_aspm/parameters/policy` selected
`[performance]` and that `lspci -vvnn` reported `ASPM Disabled` across
the entire PCIe hierarchy.

The test completed approximately 2,769 I/O/idle cycles without fio
errors, NVMe controller failures, or RAID degradation.

For phase A2, I removed only the ASPM policy override, rebooted,
verified that all links again reported `ASPM L1 Enabled`, and restarted
the same fio workload. The failure recurred approximately four days
later.

Following the December 1 failure, I restored
`pcie_aspm.policy=performance`, power-cycled lilliput, and rebuilt the
RAID arrays. Kernel 7.0 is again running with ASPM disabled.

### PCIe diagnostics during the December 1 failure

While the controller was inaccessible, the BCM2712 PCIe root port
(`0001:00:00.0`) reported:

```
DevSta: NonFatalErr+
LnkCtl: ASPM L1 Enabled
LnkSta: Speed 5GT/s, Width x1
UESta:  CmpltTO+
```

The root port remained readable and reported a Gen2 x1 link, but `lspci
-vvnn` could no longer retrieve normal capability/status information
from the ASM1182e switch ports or either NVMe endpoint.

This indicates a broader PCIe configuration-access problem behind the
root port, rather than merely a failed filesystem or an ordinary NVMe
media error.

The completion timeout and inaccessible PCIe hierarchy are consistent
with failure to recover from a PCIe low-power state, although they do
not establish the precise failed link or mechanism.

I retained full kernel logs and healthy/failed `lspci -vvnn` snapshots.

### Conclusions and request

The evidence strongly implicates PCIe ASPM L1 in the kernel 7.0 runtime
NVMe failures:

1. The same failure signature occurred three times across two separate 
CM5/X1500 systems.
2. Failures affected different physical NVMe SSDs and both ASM1182e downstream 
ports.
3. The same kernel and workload operated successfully for 19 days with ASPM 
disabled.
4. Restoring ASPM L1 caused the failure to recur after approximately four days.
5. Failed-state PCIe diagnostics show root-port completion timeouts and loss of 
normal configuration access behind the switch.

I recognize that this does not yet establish whether the underlying
defect is in the BCM2712 PCIe controller, ASM1182e switch, NVMe
firmware, or the kernel's ASPM handling.

However, the kernel-dependent ASPM configuration change appears to
expose the problem, and `pcie_aspm.policy=performance` has been an
effective workaround in extended testing.

I would appreciate investigation of the ASPM behavior introduced between
kernels 6.8 and 7.0, including whether an appropriate PCIe ASPM quirk or
other targeted correction is warranted.

This appears distinct from Raspberry Pi Linux issue
https://github.com/raspberrypi/linux/issues/7635, which concerns boot-
time link retraining. My systems successfully initialize both NVMe
controllers at Gen2 speeds, and failures occur days later during normal
operation.

 can provide full logs, PCIe snapshots, SSD serial-number mappings, or
further controlled test results if useful.

** Bug watch added: github.com/raspberrypi/linux/issues #7635
   https://github.com/raspberrypi/linux/issues/7635

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2162033

Title:
  NVMe M.2 fails with I/O errors on Raspberry Pi 5 with kernel
  7.0.0-1015-raspi when ASPM L1 is enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/2162033/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to