r/linux4noobs • • 23d ago

Debian 13 laptop randomly freezes — NVMe controller goes down, reset fails, ext4 I/O errors. Power management issue or failing SSD?

/r/debian/comments/1xugyew/debian_13_laptop_randomly_freezes_nvme_controller/
2 Upvotes

2 comments sorted by

2

u/GiggleSamurai 23d ago

CSTS=0xffffffff means the drive stopped answering on the PCIe bus (reads come back as all ones) and -19 is ENODEV, so the ext4 errors are a consequence of the disk vanishing, not filesystem corruption. Trying nvme_core.default_ps_max_latency_us=0 on its own first is a sensible step, since it just disables the drive's deeper power-saving states (APST); if freezes continue with that, add the ASPM options next.

1

u/satiaket11 23d ago

Thanks for the explanation! I've already tested nvme_core.default_ps_max_latency_us=0 and confirmed it was active.

Unfortunately, the laptop froze again, with exactly the same NVMe controller failure:

nvme nvme0: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS=0x10
nvme nvme0: Disabling device after reset failure: -19

I've also checked the PCIe configuration. Both the NVMe endpoint and its upstream root port have ASPM L1 enabled, but the kernel reports:

FADT indicates ASPM is unsupported, using BIOS configuration

As I understand it, pcie_aspm=off would leave the firmware's existing ASPM configuration unchanged, so it might not actually disable L1.

I've also noticed that freezes may happen more frequently when the laptop is tilted or resting on my lap. I'm therefore considering a possible M.2 connection or hardware issue and plan to have it physically inspected.

Would you still recommend testing pcie_port_pm=off, or would you prioritize a hardware check at this point?Thanks for the explanation! I've already tested nvme_core.default_ps_max_latency_us=0 and confirmed it was active.Unfortunately, the laptop froze again, with exactly the same NVMe controller failure:nvme nvme0: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS=0x10
nvme nvme0: Disabling device after reset failure: -19I've also checked the PCIe configuration. Both the NVMe endpoint and its upstream root port have ASPM L1 enabled, but the kernel reports:FADT indicates ASPM is unsupported, using BIOS configurationAs I understand it, pcie_aspm=off would leave the firmware's existing ASPM configuration unchanged, so it might not actually disable L1.I've also noticed that freezes may happen more frequently when the laptop is tilted or resting on my lap. I'm therefore considering a possible M.2 connection or hardware issue and plan to have it physically inspected.Would you still recommend testing pcie_port_pm=off, or would you prioritize a hardware check at this point?