Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1029046: Wayland session doesn't get back to life post-suspend

29 views
Skip to first unread message

Didier 'OdyX' Raboud

unread,
Jan 16, 2023, 4:40:03 PM1/16/23
to
Package: linux-image-6.1.0-1-amd64
Version: 6.1.4-1
Severity: important

Hello there,

this is a regression from 6.0.0 too; after post-suspend wakeup, my
plasma wayland session stays frozen; the two DisplayPort screens light
up, backgrounds are shown, but the mouse doesn't move, nothing works.

I'm reportbug'ging this from a SysRQ-R, Ctrl-Alt-F2 text tty.

From cursory dmesg reading, it seems amdgpu has an "IB test failed"
_before_ kernel suspend.

This is on 6.1.4-1a~test, patched against the "2nd DisplayPort doesn't
light up", so feel free to close the bug; I'll test if I get the same
symptoms on an unpatched kernel anyway :-)

Best,

OdyX


-- System Information:
Debian Release: bookworm/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-1-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8), LANGUAGE=fr_CH:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-image-6.1.0-1-amd64 depends on:
ii initramfs-tools [linux-initramfs-tool] 0.142
ii kmod 30+20221128-1
ii linux-base 4.9

Versions of packages linux-image-6.1.0-1-amd64 recommends:
ii apparmor 3.0.8-1
ii firmware-linux-free 20200122-1

Versions of packages linux-image-6.1.0-1-amd64 suggests:
pn debian-kernel-handbook <none>
ii extlinux 3:6.04~git20190206.bf6db5b4+dfsg1-3+b1
ii grub-efi-amd64 2.06-7
pn linux-doc-6.1 <none>

Diederik de Haas

unread,
Jan 17, 2023, 10:00:03 AM1/17/23
to
Hi OdyX,

On Monday, 16 January 2023 22:33:05 CET Didier 'OdyX' Raboud wrote:
> This is on 6.1.4-1a~test, patched against the "2nd DisplayPort doesn't
> light up", so feel free to close the bug; I'll test if I get the same
> symptoms on an unpatched kernel anyway :-)

If this issue doesn't occur with the unpatched kernel, that would be VERY
important extra information!
https://gitlab.freedesktop.org/drm/amd/-/issues/2171#note_1724186 may be the
same or similar finding?

If that issue doesn't occur with the unpatched kernel, could you add your
finding to that upstream/forwarded issue?

Thanks!
signature.asc

Debian Bug Tracking System

unread,
Jan 17, 2023, 5:10:03 PM1/17/23
to
Processing control commands:

> found -1 6.1.6-1
Bug #1029046 [src:linux] Wayland session doesn't get back to life post-suspend
The source 'linux' and version '6.1.6-1' do not appear to match any binary packages
Marked as found in versions linux/6.1.6-1.
> found -1 6.1.4-1
Bug #1029046 [src:linux] Wayland session doesn't get back to life post-suspend
Ignoring request to alter found versions of bug #1029046 to the same values previously set
> severity -1 serious
Bug #1029046 [src:linux] Wayland session doesn't get back to life post-suspend
Severity set to 'serious' from 'important'

--
1029046: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029046
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

Didier 'OdyX' Raboud

unread,
Jan 17, 2023, 5:10:03 PM1/17/23
to
Control: found -1 6.1.6-1
Control: found -1 6.1.4-1
Control: severity -1 serious

Hello there,
Now that I got my kernel build in place; I can actually confirm that:

On my Thinkpad X13 Gen 2a, without any dongle, hub or docking station (on
battery), with a KDE Plasma Wayland session:

* 6.0.0-6-amd64 (6.0.12-1)
suspends and resumes correctly
* 6.1.0-1-amd64 (6.1.4-1, unpatched)
doesn't finish suspending
* 6.1.0-2-amd64 (6.1.6-1, from the 'sid' branch on salsa, not patched)
doesn't finish suspending
* 6.1.0-2-amd64 (6.1.6-1, from the 'sid' branch on salsa, patched),
doesn't finish suspending

All three 6.1 kernels (whether patched or not) don't bring the laptop to the
suspended state (power led 'breathing', fans off), but it's kept in an "on"
state (power led on, fans on), from which I found that I *can* wake the laptop
up by short-pressing the power button; the screens gets back to life and show
my lockscreen. But from there, I can't move the mouse nor do anything else.
Alt-SysRq-r + ctrl-alt-f2 give me a tty, but any comeback to tty1 only blank
(not even a blank screen, just a freeze).

This seems to point to a quite severe regression in amdgpu or other amd-
related code; I can't suspend-and-resume the laptop anymore on any 6.1 kernel,
on battery, without anything attached to it.

I'll forward the above findings to the bug you pointed to, hoping it could
help upstream too!

Best,

OdyX

Didier 'OdyX' Raboud

unread,
Jan 18, 2023, 3:30:03 AM1/18/23
to
Control: retitle -1 Thinkpad: amd_pmc module required for on 6.1 for correct suspend
OK. I've gone and done this: https://gitlab.freedesktop.org/drm/amd/-/issues/2171#note_1727281

It turns out to get suspend to work, the `amd_pmc` module needs to be enabled
(_AND_ the BIOS needs to have the "Sleep State" toggled to Windows (from
Linux).

I _think_ Debian should make sure amd_pmc is loaded on (all?) modern AMD
laptops. I have no idea (yet) what the mechanism to make this happen is though.

--
OdyX

Debian Bug Tracking System

unread,
Jan 18, 2023, 5:10:03 AM1/18/23
to
Processing control commands:

> tag -1 help
Bug #1029046 [src:linux] Thinkpad: amd_pmc module required for on 6.1 for correct suspend
Added tag(s) help.

Salvatore Bonaccorso

unread,
Jan 23, 2023, 4:20:03 PM1/23/23
to
Control: tags -1 + moreinfo

Hi Didier,

(Adding Mario to CC, I guess he is fine with it, given as well
involved in Debian).

On Sat, Jan 21, 2023 at 05:54:26PM +0100, Didier 'OdyX' Raboud wrote:
> Control: tags -1 +patch -help
> Control: clone -1 -2
> Control: retitle -2 Thinkpad AMD: amd_pmc module is required for correct s0ix (Windows mode) suspend
> Control: severity -2 important
>
> Hello there,
>
> My understanding is that there are two distinct bugs here; hereby splitting
> to make this clearer.

The answer here is probably "maybe".

> * Original bug, as retitled by Salvatore; S3 suspend is broken on some AMD
> Ryzens. This is fixed by this patch queue, also attached.
> https://gitlab.freedesktop.org/superm1/linux/-/commits/mlimonci/rhbz-2162013-gitlab-2357-v4/
>
> In the BIOS, "S3" is "Linux mode" for suspend.

This is one clear bug, which has now patches submitted upstream for
review, hopefully for inclusion and then tickle in in 6.1.y.

> * While investigating this; it turns out modern kernels can also suspend
> on s0ix "Windows mode", but this _requires_ the `amd_pmc` module, which
> is not loaded automatically, but it really should. This doesn't look
> like an upstream bug, but rather a Debian one.
>
> As this only shows on Laptops with a "Windows mode" BIOS configuration
> (in a box that also shows "Linux mode"), I think it's reasonable to see
> this as a bug of only "important" level (even though not resuming from
> suspend is _bad_).
>
> I don't think we have seen a patch to fix this one yet though.

I asked explicitly again here upstream, but I think there might be a
missunderstanding of each other's side. I asked upstream what can help
identify why the module is not autoloading, in the thread
https://lore.kernel.org/lkml/Y81Ja5Y%2FtgP...@eldamar.lan/#t .
Unfortunately the replies from Mario are not archived. But his final
reply was:

> Salvatore,
>
> I don't think we have a bug here. The reporters said it's working
> for s0ix.
>
> It will only load by default when the system is set to Modern
> Standby/s2idle mode in BIOS. On Lenovo systems they call this
> "Windows" sleep mode for some systems.

Didier, in my undestanding of your comments on upstream issue, you did
that actually, correct? I.e. setting to Modern Standby/s2idle mode in
BIOS, but amd_pmc was still *not* autoloading?

Regards,
Salvatore

Debian Bug Tracking System

unread,
Jan 23, 2023, 4:20:03 PM1/23/23
to
Processing control commands:

> tags -1 + moreinfo
Bug #1029356 [src:linux] Thinkpad AMD: amd_pmc module is required for correct s0ix (Windows mode) suspend
Added tag(s) moreinfo.

--
1029356: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029356

Debian Bug Tracking System

unread,
Jan 24, 2023, 2:20:03 AM1/24/23
to
Your message dated Tue, 24 Jan 2023 08:03:23 +0100
with message-id <5642177.DvuYhMxLoT@turnagra>
and subject line Re: Bug#1029356: Thinkpad AMD: amd_pmc module is required for correct s0ix (Windows mode) suspend
has caused the Debian Bug report #1029356,
regarding Thinkpad AMD: amd_pmc module is required for correct s0ix (Windows mode) suspend
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
signature.asc
0 new messages