regressions.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Trolli Schmittlauch <t.schmittlauch@orlives.de>
To: stable@vger.kernel.org
Cc: regressions@lists.linux.dev
Subject: 6.8-rc: system freezes after resuming from suspend
Date: Fri, 16 Feb 2024 03:42:27 +0100	[thread overview]
Message-ID: <ed2226ff-257b-4cfd-afd6-bf3be9785474@localhost> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 3419 bytes --]

I've found a regression somewhere between 6.7.4 and 6.8.0-rc0 that causes my Framework 7840 AMD laptop to freeze after waking it from a suspend. I can reliably trigger the issue, but unfortunately cannot provide useful logs for now and hope to get some help with doing so.

How to reproduce
----------------

The last working kernel release was 6.7.4, the issue appeared in all 6.8 release candidates from 1-4.

1. normally boot the system with a 6.8 kernel
2. suspend and resume the system 2 to 4 times. Usually, the freeze already occurs at the 2nd resume.
2.1 graphical approach: I've reproduced this directly from the "Suspend" button in my SDDM display manager (X11)
2.2 TTY approach: You can also directly swith to a tty after boot, log in, and then issue `systemctl suspend` 2 to 4 times
3. After resume number 2 or later, the system freezes while resuming and cannot be used anymore. The screen is switched on and displays something, but no inputs are processed and the image is static.
3.1 graphical approach: When suspending and resuming by closing and opening the laptop lid, the screen is black with the cursor displayed. When doing so while keeping the lid open, the display manager's background image and a cursor are displayed, but only statically frozen. No keyboard or touchpad input is processed.
3.2 on a TTY: When suspending and resuming from a tty, a few kernel messages still manage to be printed, but after that no new information is displayed. E.g. when keeping a `journalctl -f` session open in another tmux pane, that journal output does not update anymore. Keyboard inputs are not processed anymore. Nonetheless, the cursor continues to blink regulary.
I've attached two screenshots showing the situation with kernels 6.7.4 (working) and 6.8 (broken).

Detailed Description
--------------------

In most cases, the freeze already occurs after the 2nd suspend-resume-cycle.
Unfortunately, this freeze also appears to block IO, as after a forced hard reboot I cannot retrieve relevant information from `journalctl -b "-1"`. The last retrievable log messages are from the successful suspend action.
I welcome any recommendation on how to retrieve valuable information. I have not yet played around with cmdline parameters relevant for debug.

System Details
--------------

Distro: NixOS 23.11, kernel 6.8 rc1-4 compiled manually
kernel: Linux version 6.8.0-rc4 (nixbld@localhost) (gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.40) #1-NixOS SMP PREEMPT_DYNAMIC Sun Feb 11 20:18:13 UTC 2024
hardware: Framework 13 laptop, 7840 AMD series, CPU AMD Ryzen 7 7840U x86_64

In the attachments you find:
- the used kernel config
- my cmdline params
- 2 screenshots from the bug occuring when triggered from a tty

Next Steps
----------

I intend to bisect the issue, but this can take a while due to the need for manual testing and a kernel compile cycle requiring >30min for now.
I am mostly reporting this now already to still raise awareness in the RC phase and to have something where I can point other Framework laptop users towards for reproduction of the bug.

All the best
schmittlauch

Disclaimer:
I read the kernel docs on reporting issues, IMHO these were a bit unclear on whether RC kernels are in the scope of the stable and regressions lists.
If they aren't please point me to where to do this. So far I had only reported bugs via the bugzilla.

[-- Attachment #1.1.2: 20240215_014050.jpg --]
[-- Type: image/jpeg, Size: 1391169 bytes --]

[-- Attachment #1.1.3: 20240215_014247.jpg --]
[-- Type: image/jpeg, Size: 1829443 bytes --]

[-- Attachment #1.1.4: cmdline --]
[-- Type: text/plain, Size: 274 bytes --]

initrd=\efi\nixos\192wlpsshd9mb14qkmigj0h1z7lc4483-initrd-linux-6.8-rc4-initrd.efi init=/nix/store/rqjg8g51p7v4ria0hjjl4jl41s0nx8x9-nixos-system-framenix-23.11.20240211.809cca7/init amd_pstate=active amdgpu.sg_display=0 amd_pstate=active amdgpu.abmlevel=1 splash loglevel=4

[-- Attachment #1.1.5: config.gz --]
[-- Type: application/gzip, Size: 65717 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

             reply	other threads:[~2024-02-16  2:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-16  2:42 Trolli Schmittlauch [this message]
2024-02-16  5:05 ` 6.8-rc: system freezes after resuming from suspend Linux regression tracking (Thorsten Leemhuis)
2024-02-16 14:19   ` Mario Limonciello
2024-02-16 21:55     ` Trolli Schmittlauch
2024-02-16 23:01       ` Mario Limonciello
2024-02-16 23:26         ` Trolli Schmittlauch
2024-02-17  8:13           ` Linux regression tracking (Thorsten Leemhuis)
2024-02-17  9:39             ` Hans de Goede
2024-02-17 16:55               ` Mario Limonciello
2024-02-17 16:57               ` Trolli Schmittlauch
2024-02-16 23:13   ` Trolli Schmittlauch
2024-02-17  8:20     ` Thorsten Leemhuis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ed2226ff-257b-4cfd-afd6-bf3be9785474@localhost \
    --to=t.schmittlauch@orlives.de \
    --cc=regressions@lists.linux.dev \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).