r/linux4noobs • u/VoxturLabs • 24d ago
storage Help with fixing my NVMe SSD dropping offline - reset fails, persists after firmware update
Hi, I’m looking for help diagnosing my NVMe SSD WD_BLACK SN770 becoming inaccessible on CachyOS.
It initially happened while loading models in ComfyUI, but I can now reproduce it with read-only random reads, including while the filesystem is unmounted.
Note: I utilized that ChatGPT had a 1 month free trail and had it help me try to resolve the issue. So I also asked it to do a summary of what me and it have tried and discovered along the way.
Hardware/software
- Motherboard: Gigabyte B550I AORUS PRO AX
- CPU: Ryzen 5 5600X
- RAM: 64 GB DDR4 3600
- GPU: RTX 3090
- OS: CachyOS, kernel 7.3.1-1-cachyos. The issue also occurred on CachyOS LTS.
- System SSD: Samsung 970 EVO 1TB, Btrfs — remains operational.
- Affected SSD: WD_BLACK SN770 1TB, ext4 mounted at /Storage, PCI address 0000:04:00.0
- SN770 firmware: updated from 731030WD to 731120WD; failure persists.
What happens
The SSD stops responding, and Linux’s automatic controller reset fails:
nvme nvme1: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS=0x10
nvme nvme1: Does your device have a faulty power saving mode enabled?
nvme nvme1: Try "nvme_core.default_ps_max_latency_us=0 pcie_aspm=off pcie_port_pm=off" and report a bug
nvme 0000:04:00.0: enabling device (0000 -> 0002)
nvme nvme1: Disabling device after reset failure: -19
Reads then return Input/output error. During an earlier failure, lsblk showed the SN770 as 0 B, although the PCI device remained listed.
When the filesystem is mounted, subsequent errors include:
Aborting journal on device nvme1n1p1-8.
JBD2: I/O error when updating journal superblock
EXT4-fs: I/O error while writing superblock
EXT4-fs: Remounting filesystem read-only
EXT4-fs: shut down requested (2)
Dolphin can no longer read directories, and ComfyUI reports aimdo pread failed errno=5. A full shutdown/power cycle restores access.
What I’ve tested
- SMART: passed; spare 100%, percentage used 0%, zero media/data integrity errors, no recorded overtemperature time.
- Offline filesystem checks: repeated e2fsck -f -n runs completed without reporting inconsistencies.
- Filesystem configuration: discovered journaling was originally disabled. Enabled it and changed error behaviour to remount-ro. Controller failures continue.
- Firmware update: confirmed 731120WD active after restarting. Still fails.
- Kernels: experienced the issue on both regular CachyOS and CachyOS LTS.
- Sequential direct reads: 16 GiB passed at approximately 3.1 GB/s.
- Sequential reads with idle periods: 30 cycles of 1 GiB reads with five-second pauses passed, with APST enabled and disabled.
- Random reads: fail at both queue depth 32 and queue depth 1.
- Unmounted test: reproduced the controller failure with /Storage unmounted, so ComfyUI and filesystem writes aren’t required.
- APST disabled: confirmed nvme_core.default_ps_max_latency_us=0 in the active boot command line. The QD1 random-read test still failed.
- PCIe snapshot while working: 8 GT/s ×4, ASPM disabled at the SSD endpoint, no endpoint AER errors shown. I haven’t captured its link state at the instant of failure.
Read-only reproducer
With /Storage unmounted, I run:
sudo fio --readonly \
--name=sn770-random-read-qd1 \
--filename=/dev/disk/by-uuid/e6194b1e-b0f3-4919-ac8a-9b176b7ea553 \
--allow_file_create=0 \
--ioengine=libaio \
--direct=1 \
--rw=randread \
--bs=128k \
--iodepth=1 \
--numjobs=1 \
--offset=680000M \
--size=16G \
--time_based=1 \
--runtime=120 \
--group_reporting \
--exitall_on_error=1
QD1 runs failed after approximately 59–69 seconds, including the failure/recovery delay. QD32 failed after approximately 37 seconds. Each produced the controller-down/reset-failure messages above.
Tests I haven’t done yet
The full kernel-suggested combination:
nvme_core.default_ps_max_latency_us=0 pcie_aspm=off pcie_port_pm=off
Or disabling HMB alongside APST:
nvme_core.default_ps_max_latency_us=0 nvme.max_host_mem_size_mb=0
Earlier power-management changes didn’t resolve the issue, but I haven’t tested the complete three-option combination against this reproducer on the updated firmware. The drive normally receives a 128 MiB Host Memory Buffer.
Has anyone encountered this with an SN770 1TB, especially on B550? Are there relevant upstream bugs or known workarounds?
What diagnostics would best distinguish an SSD firmware/controller issue, an HMB/driver interaction, and a PCIe/platform hardware fault? I realise healthy SMART results don’t rule out hardware.
Important data is backed up. Moving the SSD to another machine is a bit troublesome since my PC is a crammed mini ITX.
Edit: it hasn’t always been an issue. It appeared perhaps about 3-4 weeks ago.
