[Bug 217241] instant resume after sleep

2023-07-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

Mario Limonciello (AMD) (mario.limoncie...@amd.com) changed:

   What|Removed |Added

 Status|NEEDINFO|REJECTED
 Resolution|--- |INVALID

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-07-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

--- Comment #9 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) ---
No it's not a bug. It's just poor wording for your situation. It's not bound to
an ACPI device. I may reword the error to make this clearer in the future.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-07-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

--- Comment #8 from psm10...@arcor.de ---
Thanks Mario. I just realized that I have to unplug HDMI cable from laptop -
which I did when I was also adding the kernel option to grub as coincidence.
Then pm-suspend works. I'll remove s2idle.prefer_microsoft_guid=1.

Regarding amd_s2idle.py: I have module amd_pmc loaded but it always complains
about

2023-07-22 16:59:22,375 ERROR:  ❌ PMC driver `amd_pmc` not loaded

even if it is as of

root@LEGION5PRO:~# lsmod|grep amd_pmc
amd_pmc32768  0

Is this a bug?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-07-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

--- Comment #7 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) ---
> amd_s2idle.py --acpidump

Your system doesn't support s2idle at least in the current BIOS configuration.  
Here are log entries from test script confirming it.

2023-07-22 16:59:22,373 DEBUG:  Fetching low power idle bit directly from FADT
2023-07-22 16:59:22,373 ERROR:  ❌ ACPI FADT doesn't support Low-power S0 idle
2023-07-22 16:59:22,375 ERROR:  ❌ PMC driver `amd_pmc` not loaded
2023-07-22 16:59:22,377 ERROR:  ❌ System isn't configured for s2idle in
firmware setup
2023-07-22 16:59:22,422 ERROR:  ❌ NVME SK hynix  is not configured for s2idle
in BIOS
2023-07-22 16:59:22,422 ERROR:  ❌ NVME SK hynix  is not configured for s2idle
in BIOS

2023-07-22 16:59:23,185 WARNING: The kernel didn't emit a message that
low power idle was supported
2023-07-22 16:59:23,185 WARNING: AMD-PMC driver is missing
2023-07-22 16:59:23,185 WARNING: The system hasn't been configured for
Modern Standby in BIOS setup
2023-07-22 16:59:23,185 WARNING: SK hynix  missing ACPI attributes
2023-07-22 16:59:23,186 WARNING: SK hynix  missing ACPI attributes

> Update: adding s2idle.prefer_microsoft_guid=1 to GRUB_CMDLINE_LINUX_DEFAULT
> and setting pm-suspend sleep module to kernel allows Lenovo Legion Pro 5
> 16ARX8 to suspend.

This parameter doesn't do anything in the newer kernels and has been dropped.
I suggest if you want to use s2idle you need to look for a BIOS setting related
to it.

Lenovo usually calls it "Sleep Mode" and refers to it as "Windows" or "Windows
10".  If you don't have one you won't be able to do hardware s2idle and I
suggest you use S3.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-07-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

--- Comment #6 from psm10...@arcor.de ---
Update: adding s2idle.prefer_microsoft_guid=1 to GRUB_CMDLINE_LINUX_DEFAULT and
setting pm-suspend sleep module to kernel allows Lenovo Legion Pro 5 16ARX8 to
suspend.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-07-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

--- Comment #5 from psm10...@arcor.de ---
Created attachment 304684
  --> https://bugzilla.kernel.org/attachment.cgi?id=304684=edit
amd_s2idle.py --acpidump

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-07-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

psm10...@arcor.de changed:

   What|Removed |Added

 CC||psm10...@arcor.de

--- Comment #4 from psm10...@arcor.de ---
I have a similar issue with a different kernel as of mainline 6.4.3 under Linux
Mint 21.2 on a Lenovo Legio Pro 16ARX8. Regardless of kernel, pm-suspend just
suspends (fans quiet) but immediate resumes:

root@LEGION5PRO:~# pm-suspend
+ profiling
+ [  = true ]
+ profiling
+ [  = true ]
+ profiling
+ [  = true ]
+ [ uswsusp = auto ]
+ mod=/usr/lib/pm-utils/module.d/uswsusp
+ [ -f /usr/lib/pm-utils/module.d/uswsusp ]
+ . /usr/lib/pm-utils/module.d/uswsusp
+ [ -z  ]
+ command_exists s2ram
+ type s2ram
+ return 127
+ [ -z  ]
+ [ -f /sys/power/disk ]
+ grep -q disk /sys/power/state
+ [ -c /dev/snapshot ]
+ command_exists s2disk
+ type s2disk
+ return 127
+ [ -z  ]
+ grep -q mem /sys/power/state
+ command_exists s2both
+ type s2both
+ return 127
+ [ -z  ]
+ grep -q mem /sys/power/state
+ SUSPEND_MODULE=kernel
+ [ -z  ]
+ [ -f /sys/power/disk ]
+ grep -q disk /sys/power/state
+ HIBERNATE_MODULE=kernel
+ [ -z  ]
+ [ -f /sys/power/disk ]
+ grep -q disk /sys/power/state
+ grep -q suspend /sys/power/disk
+ SUSPEND_HYBRID_MODULE=kernel
+ [ -z kernel -a -w /sys/class/rtc/rtc0/wakealarm ]
+ r=0
+ id -u
+ [ 0 != 0 ]
+ try_lock pm-suspend.lock
+ local lock=/var/run/pm-utils/locks/pm-suspend.lock
+ mkdir -p /var/run/pm-utils/locks
+ touch /var/run/pm-utils/locks/pm-suspend.lock
+ exec
+ flock -x -n 3
+ return 0
+ trap remove_suspend_lock 0
+ rm -rf /var/run/pm-utils/pm-suspend/storage
+ mkdir -p /var/run/pm-utils/pm-suspend/storage
+ [ -f /var/run/pm-utils/pm-suspend/storage/parameters ]
+ echo 
+ add_parameters
+ remove_parameters
+ local p
+ [  = all ]
+ echo 
+ grep -vxFf /var/run/pm-utils/pm-suspend/storage/parameters.rm
/var/run/pm-utils/pm-suspend/storage/parameters
+ cp -f /var/run/pm-utils/pm-suspend/storage/parameters.new
/var/run/pm-utils/pm-suspend/storage/parameters
+ update_parameters
+ [ -f /var/run/pm-utils/pm-suspend/storage/parameters.new ]
+ get_parameters
+ cat /var/run/pm-utils/pm-suspend/storage/parameters
+ export PM_CMDLINE=
+ rm -f /var/run/pm-utils/pm-suspend/storage/parameters.new
+ [ 0 -gt 0 ]
+ command_exists check_suspend
+ type check_suspend
+ return 0
+ command_exists do_suspend
+ type do_suspend
+ return 0
+ check_suspend
+ [ -n kernel ]
+ ACTION=suspend
+ REVERSE=resume
+ init_logfile /var/log/pm-suspend.log
+ [ -z /var/log/pm-suspend.log ]
+ [ -h /var/log/pm-suspend.log ]
+ [ -f /var/log/pm-suspend.log -a ! -O /var/log/pm-suspend.log ]
+ export LOGGING=true
+ exec

and dmesg -T says:

Sat Jul 22 17:07:31 2023] PM: suspend entry (deep)
[Sat Jul 22 17:07:31 2023] Filesystems sync: 0.003 seconds
[Sat Jul 22 17:07:31 2023] Freezing user space processes
[Sat Jul 22 17:07:31 2023] Freezing user space processes completed (elapsed
0.002 seconds)
[Sat Jul 22 17:07:31 2023] OOM killer disabled.
[Sat Jul 22 17:07:31 2023] Freezing remaining freezable tasks
[Sat Jul 22 17:07:31 2023] Freezing remaining freezable tasks completed
(elapsed 0.001 seconds)
[Sat Jul 22 17:07:31 2023] printk: Suspending console(s) (use
no_console_suspend to debug)
[Sat Jul 22 17:07:31 2023] [drm:dc_dmub_srv_wait_idle [amdgpu]] *ERROR* Error
waiting for DMUB idle: status=3
[Sat Jul 22 17:07:32 2023] ACPI: EC: interrupt blocked
[Sat Jul 22 17:07:32 2023] ACPI: PM: Preparing to enter system sleep state S3
[Sat Jul 22 17:07:32 2023] ACPI: EC: event blocked
[Sat Jul 22 17:07:32 2023] ACPI: EC: EC stopped
[Sat Jul 22 17:07:32 2023] ACPI: PM: Saving platform NVS memory
[Sat Jul 22 17:07:32 2023] Disabling non-boot CPUs ...
[Sat Jul 22 17:07:32 2023] smpboot: CPU 1 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 2 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 3 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 4 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 5 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 6 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 7 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 8 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 9 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 10 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 11 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 12 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 13 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 14 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 15 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 16 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 17 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 18 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 19 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 20 is now offline
[Sat Jul 22 17:07:32 2023] smpboot: CPU 21 is now offline
[Sat 

[Bug 217241] instant resume after sleep

2023-07-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

Mario Limonciello (AMD) (mario.limoncie...@amd.com) changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-05-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

Mario Limonciello (AMD) (mario.limoncie...@amd.com) changed:

   What|Removed |Added

 CC||mario.limoncie...@amd.com

--- Comment #3 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) ---
Can you please reproduce this under the context of this script?

https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-05-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

Serg Podtynnyi (s...@podtynnyi.com) changed:

   What|Removed |Added

 CC||s...@podtynnyi.com

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-03-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

The Linux kernel's regression tracker (Thorsten Leemhuis) 
(regressi...@leemhuis.info) changed:

   What|Removed |Added

 CC||regressi...@leemhuis.info

--- Comment #2 from The Linux kernel's regression tracker (Thorsten Leemhuis) 
(regressi...@leemhuis.info) ---
thx for your report. Thing is: this can be caused by all sort of changes
(ACPI/PM, PCI, graphics, ...) and likely is something that happens only on a
few machines (otherwise I likely would have seen more reports like this
already). Due to these factors it really would be good if you could try the
change that's causing the problem using "git bisect". 

Side note: Is your configuration supported by your laptop vendor? Then maybe
tell them, they might be interested to look into this.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 217241] instant resume after sleep

2023-03-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217241

--- Comment #1 from richou672...@protonmail.com (richou672...@protonmail.com) 
---
when i try to suspend, it goes into sleep (the fan spins a bit up as usual and
it wakes up
i tried everything to eliminate other factors (usb devices, plugged in or not)
and still the same
additional info : 
it is a tuxedo aura 15 gen 2

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla