I also encounter this bug in the impish 5.13 kernel. The machine boots,
but without one of the NVMe devices. This is on a very recent Razer
Blade 15 laptop (RZ09-0409x) with two NVMe drives. One with windows and
one with Ubuntu.

Upstream kernel 5.15 did not have this issue. I was able to bisect the
fix back to

bc2836859643 ACPI: PM: Do not turn off power resources in unknown state

This patch is marked as fixing a commit that first landed in 5.14, but
this commit was a rework, and the actual broken logic was introduced
much earlier in 5.13. As such, the fix requires a few additional cherry
picks.

On 5.13.0-22-generic

$ dmesg | grep nvme
[sudo] password for ubuntu: 
[    1.266638] nvme nvme0: pci function 0000:02:00.0
[    1.266646] nvme 0000:02:00.0: can't change power state from D3cold to D0 
(config space inaccessible)
[    1.266696] nvme nvme1: pci function 0000:03:00.0
[    1.267189] nvme nvme0: Removing after probe failure status: -19
[    1.273614] nvme nvme1: missing or invalid SUBNQN field.
[    1.273633] nvme nvme1: Shutdown timeout set to 8 seconds
[    1.290515] nvme nvme1: 16/0/0 default/read/poll queues
[    1.293385]  nvme1n1: p1 p2
[    4.297893] EXT4-fs (nvme1n1p2): mounted filesystem with ordered data mode. 
Opts: (null). Quota mode: none.
[    4.584787] EXT4-fs (nvme1n1p2): re-mounted. Opts: errors=remount-ro. Quota 
mode: none.


First nvme device does not show up in lsblk.


After apply the following patch set to the master-next of the impish kernel,

587024b8210d ACPI: power: Use u8 as the power resource state data type
ca84f18798a4 ACPI: power: Save the last known state of each power resource
6381195ad7d0 ACPI: power: Rework turning off unused power resources
db9b6d87a8d4 ACPI: power: Use dev_dbg() to print some messages
fad40a624854 ACPI: power: Use acpi_handle_debug() to print debug messages
bc2836859643 ACPI: PM: Do not turn off power resources in unknown state

The nvme power state error is no longer present, and the device loads
properly.

Also, the fixing patch was marked for inclusion in 5.14 stable, but
never made it since it did not cherry pick cleanly. Just the last two
patches in the above list are needed for the 5.14 kernel.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1942624

Title:
  NVME "can't change power state from D3Cold to D0 (config space
  inaccessible)"

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Bug with kernels after version 5.11.0-18 on Lenovo Ideapad 330-15ICH.
  The NVME drive with my root partition cannot be mounted at boot with
  an error "can't change power state from D3Cold to D0 (config space
  inaccessible)". I'm willing to help find a root cause if I don't need
  to spent too many hours. All Ubuntu kernels after 5.11.0-18 exhibit
  this bug, but I could boot properly with the official linux kernel
  5.13.0. Thanks a lot for your help

  ProblemType: Bug
  DistroRelease: Ubuntu 21.04
  Package: linux-image-5.11.0-18-generic 5.11.0-18.19
  ProcVersionSignature: Ubuntu 5.11.0-18.19-generic 5.11.17
  Uname: Linux 5.11.0-18-generic x86_64
  ApportVersion: 2.20.11-0ubuntu65.1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  chris      7503 F.... pulseaudio
   /dev/snd/pcmC0D0p:   chris      7503 F...m pulseaudio
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Sep  3 18:46:35 2021
  InstallationDate: Installed on 2019-07-17 (779 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 003: ID 5986:210e Acer, Inc EasyCamera
   Bus 001 Device 004: ID 8087:0a2a Intel Corp. Bluetooth wireless interface
   Bus 001 Device 007: ID 1050:0407 Yubico.com Yubikey 4/5 OTP+U2F+CCID
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: LENOVO 81FK
  ProcFB: 0 i915drmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.11.0-18-generic 
root=UUID=9d963312-3a16-428d-8efd-f1323c6528f1 ro quiet nosplash 
crashkernel=512M-:192M
  RelatedPackageVersions:
   linux-restricted-modules-5.11.0-18-generic N/A
   linux-backports-modules-5.11.0-18-generic  N/A
   linux-firmware                             1.197.3
  SourcePackage: linux
  UpgradeStatus: Upgraded to hirsute on 2021-06-03 (92 days ago)
  dmi.bios.date: 10/24/2018
  dmi.bios.release: 1.29
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 7ZCN29WW
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: LNVNB161216
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0J40709 WIN
  dmi.chassis.asset.tag: NO Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Lenovo ideapad 330-15ICH
  dmi.ec.firmware.release: 1.29
  dmi.modalias: 
dmi:bvnLENOVO:bvr7ZCN29WW:bd10/24/2018:br1.29:efr1.29:svnLENOVO:pn81FK:pvrLenovoideapad330-15ICH:rvnLENOVO:rnLNVNB161216:rvrSDK0J40709WIN:cvnLENOVO:ct10:cvrLenovoideapad330-15ICH:
  dmi.product.family: ideapad 330-15ICH
  dmi.product.name: 81FK
  dmi.product.sku: LENOVO_MT_81FK_BU_idea_FM_ideapad 330-15ICH
  dmi.product.version: Lenovo ideapad 330-15ICH
  dmi.sys.vendor: LENOVO

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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to