[Bug 216516] s2ram freezes screen (Ryzen-5650U incl. Radeon GPU)
bugzilla-daemon at kernel.org
bugzilla-daemon at kernel.org
Fri Sep 23 15:46:11 UTC 2022
https://bugzilla.kernel.org/show_bug.cgi?id=216516
--- Comment #5 from kolAflash (kolAflash at kolahilft.de) ---
Created attachment 301854
--> https://bugzilla.kernel.org/attachment.cgi?id=301854&action=edit
kernel log: v6.0-rc6 and v6.0-rc6 with 7123d39dc reverted
@Mario
(In reply to Mario Limonciello (AMD) from comment #4)
> [...]
> 1) Does this still exist in a fully unpatched 6.0-rc6? What's the behavior?
Yes.
That's why I've set the bugs kernel version to 6.0-rc6 ;-)
I've attached kernel logs for v6.0-rc6 and for v6.0-rc6 with 7123d39dc
reverted.
Reverting 7123d39dc on v6.0-rc6 makes the bug disappear.
> 2) What bisect points did you use to conclude that this problem on that
> particular commit? By chance do you have the bisect log?
Sorry, no bisect log saved.
But I've explicitly tested 7123d39dc and it's predecessor 7123d39dc^, which is
v5.18-rc7.
And 7123d39dc is definitely broken and v5.18-rc7 is working fine.
> 3) Why don't you just use s2idle instead in BIOS setup? It's very mature on
> a modern kernel. Most systems with AMD APUs shipped from OEMs don't offer a
> toggle even, which is why I'm surprised you have one.
Tested s2idle with the openSUSE-15.4 stock kernel v5.14 and it consumed
MASSIVELY more power than S3.
I may give s2idle it another try with linux-6.0.
QUESTION:
Is "echo s2idle > /sys/power/mem_sleep" equivalent to enabling s2idle via ACPI?
So I wouldn't need to reboot to change ACPI for testing s2idle.
I also thought about using s2disk. But my employer requires me to use a very
long LUKS password. So I prefer not to enter the LUKS password every time I
wake my notebook.
> BTW - I wasn't aware that they offered a BIOS setting for s2ram on 845. Are
> you patching the BIOS somehow or just changing a setting? If you change it
> back to s2idle does all this go away?
Actually S3 is very well hidden. I don't know a way to enable it directly in
the BIOS. But it's in the ACPI tables.
cat /sys/firmware/acpi/tables/DSDT > dsdt.dat
iasl -d dsdt.dat
==========
[...]
If (!MSCE)
{
Name (_S3, Package (0x04) // _S3_: S3 System State
{
0x03,
0x03,
Zero,
Zero
})
}
[...]
==========
I changed that "if" statement, recompiled and put the ACPI table into the
initrd for the kernel to load.
See here for details:
https://www.reddit.com/r/AMDLaptops/comments/lg0knl/comment/ikpwpb8/
Side note:
If you have an idea how to set that MSCE variable to false without recompiling
the kernel, I'd be quite happy :-)
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the dri-devel
mailing list