All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Acid Bong" <acidbong@tilde.cafe>
To: <regressions@lists.linux.dev>
Cc: <stable@vger.kernel.org>, <linux-acpi@vger.kernel.org>
Subject: [REGRESSION] Asus X541UAK hangs on suspend and poweroff (v6.1.6 onward)
Date: Thu, 13 Apr 2023 22:35:50 +0300	[thread overview]
Message-ID: <CRVU11I7JJWF.367PSO4YAQQEI@bong> (raw)

Hi there, hello,

Sometimes when I suspend (by closing the lid, less often - by pressing
Fn+F1 (sleep key combo)) or poweroff my laptop (both by pressing powerit
button and running "loginctl poweroff"), it goes in such a state when it
doesn't respond to opening/closing the lid, power button nor
Ctrl+Alt+Del, but, unlike in sleep mode, the fan is rotating and the
"awake status" LED is on. I checked /var/log/kern.log, but it didn't
report suspend at that moment at all: went straight from [UFW BLOCK] to
"Microcode updated" on force reboot (marked with an arrow):

	Apr 13 10:40:32 bong kernel: asus_wmi: Unknown key code 0xcf
	Apr 13 10:44:05 bong kernel: [UFW BLOCK] IN=wlan0 OUT= MAC=/*confidential*/
	Apr 13 10:47:45 bong kernel: [UFW BLOCK] IN=wlan0 OUT= MAC=/*confidential*/
	Apr 13 10:47:46 bong kernel: ICMPv6: NA: /*router*/ advertised our address /*ipv6*/ on wlan0!
	Apr 13 10:47:48 bong last message buffered 2 times
->	Apr 13 10:49:11 bong kernel: [UFW BLOCK] IN=wlan0 OUT= MAC=/*confidential*/
	Apr 13 10:52:34 bong kernel: microcode: microcode updated early to revision 0xf0, date = 2021-11-12
	Apr 13 10:52:34 bong kernel: Linux version 6.1.23-bong+ (acid@bong) (gcc (Gentoo Hardened 12.2.1_p20230121-r1 p10) 12.2.1 20230121, GNU ld (Gentoo 2.39 p5) 2.39.0) #1 SMP PREEMPT_DYNAMIC Tue Apr 11 15:21:57 EEST 2023
	Apr 13 10:52:34 bong kernel: Command line: root=/dev/genston/root ro loglevel=4 rd.lvm.vg=genston rd.luks.uuid=97d10669-2da1-452d-a372-887e420b2ad4 rd.luks.allow-discards pci=nomsi initrd=\x5cinitramfs-6.1.23-bong+.img
	Apr 13 10:52:34 bong kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
	Apr 13 10:52:34 bong kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
	Apr 13 10:52:34 bong kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'

Normally it starts like this (taken from dmesg to sync with elogind messages)

	[ 7835.869228] elogind-daemon[2033]: Lid closed.
	[ 7835.872875] elogind-daemon[2033]: Suspending...
	[ 7835.873955] elogind-daemon[2033]: Suspending system...
	[ 7835.873970] PM: suspend entry (deep)
	[ 7835.902814] Filesystems sync: 0.028 seconds
	[ 7835.920362] Freezing user space processes
	[ 7835.923030] Freezing user space processes completed (elapsed 0.002 seconds)
	[ 7835.923046] OOM killer disabled.
	[ 7835.923049] Freezing remaining freezable tasks
	[ 7835.924445] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
	[ 7835.924624] printk: Suspending console(s) (use no_console_suspend to debug)

The issue appeared when I was using pf-kernel with genpatches and
updated from 6.1-pf2 to 6.1-pf3 (corresponding to vanilla versions 6.1.3
-> 6.1.6). I used that fork until 6.2-pf2, but since then (early March)
moved to vanilla sources and started following the 6.1.y branch when it
was declared LTS. And the issue was present on all of them.

The hang was last detected 3 days ago on 6.1.22 and today on 6.1.23.

I'd like to bisect it, but it could take ages for a couple of reasons:

1) I don't know exact patterns it follows. One of the scenarios I've
noticed was this one (sorry if too ridiculous):
	- put the laptop on the nearby couch and simultaneously close
	  the lid; the loose charger jack might disconnect;
	- lay the mouse upside down (so it doesn't wake up when I
	  reconnect the charger),
but it's not a 100% guarantee of the bug and, as I said earlier, the
laptop also misbehaves on shutdown.

2) The issue happens rarely, once in a few days (sometimes up to a week;
I haven't measured it precisely back then).

Hardware: https://tilde.cafe/u/acidbong/kernel/lspci (`lspci -vvnn`)
Config (latest vanilla): https://git.sr.ht/~acid-bong/kernel/tree/806e6639da610952798e1b5d8c0d700062f915de/item/.config
Built with KCFLAGS="-march=native"
Isolated cmdline: root=/dev/genston/root ro loglevel=4 rd.lvm.vg=genston rd.luks.uuid=97d10669-2da1-452d-a372-887e420b2ad4 rd.luks.allow-discards pci=nomsi initrd=\initramfs-6.1.23-bong+.img

# regzbot introduced v6.1.3..v6.1.6

---
Regards,
~acidbong

             reply	other threads:[~2023-04-13 19:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-13 19:35 Acid Bong [this message]
2023-04-14  7:51 ` [REGRESSION] Asus X541UAK hangs on suspend and poweroff (v6.1.6 onward) Bagas Sanjaya
2023-04-14  8:15   ` Linux regression tracking (Thorsten Leemhuis)
2023-04-14  9:07     ` Acid Bong
2023-04-14  9:07       ` Acid Bong
2023-04-14 18:51       ` Acid Bong
2023-04-15  7:37       ` Bagas Sanjaya
2023-04-15  8:06       ` Linux regression tracking (Thorsten Leemhuis)
2023-05-15 20:51       ` Bjorn Helgaas
2023-05-16 10:26         ` Acid Bong
2023-05-16 19:32           ` Bjorn Helgaas
2023-04-17  7:37     ` Acid Bong
2023-04-17 10:56       ` Linux regression tracking (Thorsten Leemhuis)
2023-05-01 12:50   ` Bagas Sanjaya
2023-05-01 21:02     ` Acid Bong
2023-05-03  4:31       ` Bagas Sanjaya
2023-06-09 11:09       ` Acid Bong
2023-06-09 16:55         ` Bjorn Helgaas
2023-06-14  8:53           ` Linux regression tracking #update (Thorsten Leemhuis)
2023-05-13 10:50     ` Acid Bong

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=CRVU11I7JJWF.367PSO4YAQQEI@bong \
    --to=acidbong@tilde.cafe \
    --cc=linux-acpi@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.