You are not logged in.

#1 2023-01-28 21:45:02

liamur
Member
Registered: 2023-01-28
Posts: 9

Kernel 6.1 breaks NVMe wakeup on laptop

Hi everyone,

Long time Arch user, first time poster. Until now, I've never had an issue that I couldn't find the solution to on the wiki or somewhere else. I have a Dell Latitude 5580 with an Intel Core i3-7100u and no external GPU, and a 512 GB Intel 660P SSD. Until kernel 6.1, literally every hardware feature of this computer worked perfectly, including my LUKS full disk encryption. With kernel 6.1 and every version since it (we're up to 6.1.8 and the problem persists), however, waking up from sleep breaks the OS entirely. This manifests as a broken screen locker, and, if I can get into a second terminal, "Input/output error" as the output of every command. The only way to fix it is to force shut down the computer with the power button. I have tried adding `iommu=soft` to the kernel command line, a commonly recommended fix for this kind of issue, and it makes no difference. I can tell this is an NVMe issue because the journal---which doesn't save, unfortunately---contains errors from the NVMe driver, which result in ext4 errors. The main NVMe error I've seen is (or is very close to) "nvme: unable to change power state from d3cold to d0".

What could the issue be and how could I fix it? So far, as a patch, I've been running upgrades and then forcing the kernel back to version 6.0.9, which does not have this problem. A friend of mine with a Dell XPS 15 from a few years ago doesn't have this issue, could it be a hardware problem in my computer?

Offline

#2 2023-01-28 21:58:31

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Kernel 6.1 breaks NVMe wakeup on laptop

There seems to be one similar report with some attempts at narrowing down the problems in the kernel mailing lists:
https://lore.kernel.org/all/20230104150 … @bhelgaas/
https://bugzilla.kernel.org/show_bug.cgi?id=216877

Last edited by progandy (2023-01-28 22:02:10)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2023-01-28 23:49:07

topcat01
Member
Registered: 2019-09-17
Posts: 124

Re: Kernel 6.1 breaks NVMe wakeup on laptop

What about linux-lts? Presumably that works?

Offline

#4 2023-01-29 22:22:24

liamur
Member
Registered: 2023-01-28
Posts: 9

Re: Kernel 6.1 breaks NVMe wakeup on laptop

Yes, linux-lts works. The issue is definitely traceable to 6.1, and that mailing list patch looks like the exact issue I'm having. I did some further research, and the error I was seeing comes from the PCIe subsystem, not the NVMe driver itself---it's an error message that gets passed upward to the relevant device driver.

Offline

#5 2023-02-02 23:17:57

liamur
Member
Registered: 2023-01-28
Posts: 9

Re: Kernel 6.1 breaks NVMe wakeup on laptop

This is just for reference and to help anybody else with this problem, but I captured the relevant kernel error messages that appear upon waking up while running the non-working kernel:

...
ACPI: PM: Waking up from system sleep state S3
ACPI: EC: interrupt unblocked
iwlwifi 0000:02:00.0: Unable to change power state from D3hot to D0, device inaccessible
nvme 0000:03:00.0: Unable to change power state from D3hot to D0, device inaccessible
ACPI: EC: event unblocked
...
nvme 0000:03:00.0: Unable to change power state from D3cold to D0, device inaccessible
nvme nvme0: Removing after probe failure status: -19
nvme0n1: detected capacity change from 1000215216 to 0
...

Offline

#6 2023-02-03 04:23:02

topcat01
Member
Registered: 2019-09-17
Posts: 124

Re: Kernel 6.1 breaks NVMe wakeup on laptop

As of today, it looks like the change in question is going to be reverted.

Offline

#7 2023-02-19 01:18:08

liamur
Member
Registered: 2023-01-28
Posts: 9

Re: Kernel 6.1 breaks NVMe wakeup on laptop

Looks like it's been fixed (or something's been changed, because the issue is gone) in either 6.1.11 or 6.1.12, I'm not sure which.

Offline

#8 2023-02-19 11:36:06

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: Kernel 6.1 breaks NVMe wakeup on laptop

liamur wrote:

Looks like it's been fixed (or something's been changed, because the issue is gone) in either 6.1.11 or 6.1.12, I'm not sure which.

6.1.12 https://bugs.archlinux.org/task/76918

Offline

Board footer

Powered by FluxBB