FS#72333 - NVMe SSD WD SN730 disappearing after suspend/resume
Attached to Project:
Arch Linux
Opened by Elias Projahn (johrpan) - Sunday, 03 October 2021, 12:40 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 06 June 2023, 04:02 GMT
Opened by Elias Projahn (johrpan) - Sunday, 03 October 2021, 12:40 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 06 June 2023, 04:02 GMT
|
Details
Description:
I have a ThinkPad L13 Yoga Gen. 2 at hand which includes a NVMe SSD of the following model: WDC PC SN730 SDBQNTY-512G-1001 The firmware version is 11170101 according to nvme-cli which is the most recent firmware advertised by Lenovo on LVFS [1]. The NVMe SSD seems to not wake up properly after suspending the system. I'm reproducing this with Arch Linux installed to the SSD (which obviously results in a system crash due to lots of file system errors) as well as using the most recent Arch Linux installation ISO as a live system. The exact error message I get is: ``` nvme 000:04:00.0: can't change power state from D3cold to D0 (config space inaccessible) nvme nvme0 removing after probe failure status: -19 nvme0n1: detected capacity change from 1000215216 to 0 ``` I found many similar cases involving other models where disabling APST could be used as a work-around, which didn't work for me. I also tried tweaking `acpi_osi` two multiple values advertised by the firmware ("Windows10", "Windows 2015", "Linux") which also didn't help. Steps to reproduce the original issue: 1. Boot the live system. 2. Run `lsblk` to see the working NVMe controller. 3. Mount a partition on the NVMe SSD. 4. Suspend the system using `systemctl suspend`. 5. Resume the system. 6. Run `lsblk` again to see the NVMe controller being disappeared. Steps to reproduce the non-work-around: 1. Boot the system with `nvme_core.default_ps_max_latency_us=0` to disable APST. 2. Run `nvme get-feature /dev/nvme0 -f 0x0c -H` to verify APST being disabled. 3. Mount a partition and suspend/resume as described above. 4. Run `lsblk` to see the NVMe controller being disappeared anyway. [1] https://fwupd.org/lvfs/devices/com.lenovo.PCSN730.firmware |
This task depends upon
Closed by Toolybird (Toolybird)
Tuesday, 06 June 2023, 04:02 GMT
Reason for closing: No response
Additional comments about closing: Old and stale and likely fixed in recent kernels. If still happening, please report upstream as suggested in the comments.
Tuesday, 06 June 2023, 04:02 GMT
Reason for closing: No response
Additional comments about closing: Old and stale and likely fixed in recent kernels. If still happening, please report upstream as suggested in the comments.
* System76 Lemur Pro (lemp10, Dec 2020) https://tech-docs.system76.com/models/lemp10/README.html
* Samsung SSD 980 PRO 500GB (OS)
* Samsung SSD 970 EVO Plus 1TB (Bulk storage)
Same as the original report, the 1TB will drop out sometimes after suspend, but not always. Maybe a third of the time? I've also tried the kernel parameter tweaks with a variety of settings to include 0 with no benefit. The OS drive always resumes without issue. Only the 2nd drive is affected. Reboot returns everything to normal.
There are similar issues reported elsewhere:
https://bbs.archlinux.org/viewtopic.php?id=258883
https://bugzilla.redhat.com/show_bug.cgi?id=1900259
https://bbs.archlinux.org/viewtopic.php?id=262678
https://forums.lenovo.com/t5/ThinkPad-P-and-W-Series-Mobile-Workstations/NVMe-SSD-disappears-after-Suspend-P14s/m-p/5060896