Bug 1213617 - kernel 6.4.x power management issues on kaby lake CPU
Summary: kernel 6.4.x power management issues on kaby lake CPU
Status: RESOLVED UPSTREAM
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: openSUSE Kernel Bugs
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-25 06:40 UTC by Michal Hlavac
Modified: 2023-10-24 13:54 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Hlavac 2023-07-25 06:40:25 UTC
Hi,

After upgrading to kernel 6.4.x I experienced these problems:
1. When notebook has disconnected power, it boot only to console (no X)
2. When power is disconnected, notebook does not suspend to RAM.

dmesg log when I disconnect power is:
>> [Ne júl 23 11:35:28 2023] ata2: SATA link down (SStatus 4 SControl 300)
>> [Ne júl 23 11:35:30 2023] pci 0000:01:00.0: not ready 1023ms after resume; waiting
>> [Ne júl 23 11:35:31 2023] pci 0000:01:00.0: not ready 2047ms after resume; waiting
>> [Ne júl 23 11:35:33 2023] pci 0000:01:00.0: not ready 4095ms after resume; waiting
>> [Ne júl 23 11:35:38 2023] pci 0000:01:00.0: not ready 8191ms after resume; waiting
>> [Ne júl 23 11:35:46 2023] pci 0000:01:00.0: not ready 16383ms after resume; waiting
>> [Ne júl 23 11:36:03 2023] pci 0000:01:00.0: not ready 32767ms after resume; waiting
>> [Ne júl 23 11:36:38 2023] pci 0000:01:00.0: not ready 65535ms after resume; giving up
>> [Ne júl 23 11:36:38 2023] pci 0000:01:00.0: Unable to change power state from D3cold to D0, device inaccessible
>> [Ne júl 23 11:36:38 2023] pci 0000:01:00.0: Unable to change power state from D3cold to D0, device inaccessible

>> lspci
>> 01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

Then I found same problem described here:
https://bbs.archlinux.org/viewtopic.php?id=286976

And as workaround I disabled bumblebee service and now it works.
Comment 1 Takashi Iwai 2023-07-25 14:07:17 UTC
Could you report it to the upstream?  e.g. bugzilla.kernel.org at start.
Although bbswitch is a downstream stuff, this kind of regression shouldn't happen.
Comment 2 Takashi Iwai 2023-07-30 08:40:24 UTC
And, it's a regression of 6.4.x, i.e. when you boot 6.3.x, everything still works as is?
Comment 3 Michal Hlavac 2023-08-01 10:54:39 UTC
Hi Takashi,

thanks for reply. Is there any easy way how to reproduce this on 6.3.x kernel on Tumbleweed? thanks
Comment 4 Takashi Iwai 2023-08-01 11:25:40 UTC
Just boot 6.3.x kernel :)
I guess 6.3.x is still available in OBS TW history repo
  http://download.opensuse.org/history/
If not, you can find my OBS archive repos, e.g. OBS home:tiwai:kernel:6.3.

But if you need a KMP, it can be problematic.  You need to build KMP locally.
Comment 5 Michal Hlavac 2023-08-02 19:34:13 UTC
Thanks Takashi for the history repos link. I didn't know they existed.

installed packages:
sudo zypper in --oldpackage kernel-default-6.3.9-1.1 bbswitch-kmp-default-0.8_k6.3.9_1-13.31 bbswitch-0.8-13.31

cat /proc/acpi/bbswitch
OFF

KDE plasma started when I booted to 6.3.9 with a disconnected power adapter.

Only the text console started when I booted to 6.4.6 with a disconnected power adapter.

So I think I can confirm that the 6.3.x kernel works as expected.
Comment 6 Takashi Iwai 2023-08-03 05:38:52 UTC
Thanks, it's clearer now.  Have you already reported it to the upstream?
You can use bugzilla.kernel.org, for example.
Comment 7 Michal Hlavac 2023-08-03 05:51:13 UTC
Yes, upstream bug is https://bugzilla.kernel.org/show_bug.cgi?id=217705
Comment 8 Takashi Iwai 2023-10-24 13:54:07 UTC
This seems to be an issue of rtsx ASPM stuff.  The upstream contained the fix.