regressions.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [Regression] acpi: laptop panics early in boot
@ 2023-03-06 21:45 Pierre Asselin
  2023-03-07  9:33 ` Uwe Kleine-König
  2023-04-17 11:41 ` Linux regression tracking #update (Thorsten Leemhuis)
  0 siblings, 2 replies; 14+ messages in thread
From: Pierre Asselin @ 2023-03-06 21:45 UTC (permalink / raw)
  To: linux-acpi
  Cc: regressions, "Uwe Kleine-König", Rafael J. Wysocki

[First bug report, apologies if I break etiquette, pointers appreciated.]

Laptop crashes when booting on AC power.

The laptop is on Gentoo; upgrading from 5.15.88 to 6.1.12, the kernel
panics before reaching early userspace.  I find no other report like
this on the Gentoo, arch, mint, or Ubuntu forums, on kernel.org, or out
of duckduckgo.  This is a regression (because, you know, the kernel used
to boot) but so far it's only me, and only on my 16-year old laptop.
Also, I have a workaround.

Image of the panic screen at
https://www.panix.com/~pa/linux-6.1.12-crash/boot-failure.jpg .

Seeing acpi_ac_notify() near the top of the traceback, I tried booting on
battery power.  Works fine.  The panic occurs only when booting on AC power,
whether or not a battery is present.  Sometimes, rarely, it boots fine
even on AC, but that is the exception not the rule.

Based on comments in drivers/acpi/ac.c I tried a trivial patch,

	--- drivers/acpi/ac.c.orig	2022-12-11 17:15:18.000000000 -0500
	+++ drivers/acpi/ac.c	2023-02-19 17:38:06.958733031 -0500
	@@ -47,7 +47,7 @@ static int acpi_ac_resume(struct device
	 #endif
	 static SIMPLE_DEV_PM_OPS(acpi_ac_pm, NULL, acpi_ac_resume);

	-static int ac_sleep_before_get_state_ms;
	+static int ac_sleep_before_get_state_ms = 1000;
	 static int ac_only;

	 static struct acpi_driver acpi_ac_driver = {

and it works.  This is probably not the right fix but it will be my
workaround for the time being.

Problem is still present in 6.3-rc1 .  Bisecting, the first bad commit
is d6fb6ee1820c .

The starting config (from 5.15.88) is at
https://www.panix.com/~pa/linux-6.1.12-crash/config-base .
The test is make olddefconfig, make bzImage, then kexec the bzImage with an
initramfs to see if it reaches the rescueshell prompt.  Has to succeed
three times to be declared good.

In case I forgot something, here is my post on the Gentoo forums:
https://forums.gentoo.org/viewtopic-t-1161834-highlight-.html

#regzbot introduced d6fb6ee1820c

Also in bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=217152


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-04-17 11:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-06 21:45 [Regression] acpi: laptop panics early in boot Pierre Asselin
2023-03-07  9:33 ` Uwe Kleine-König
2023-03-07 14:25   ` Pierre Asselin
2023-03-07 16:10     ` Uwe Kleine-König
2023-03-07 19:31       ` Pierre Asselin
2023-03-23 12:31         ` Linux regression tracking (Thorsten Leemhuis)
2023-03-23 13:16           ` Uwe Kleine-König
2023-03-23 17:20             ` Pierre Asselin
     [not found]         ` <20230307200843.yxhvnb23tpecjjng@pengutronix.de>
2023-03-23 21:22           ` Uwe Kleine-König
2023-03-24 12:12             ` Rafael J. Wysocki
2023-03-24 12:27               ` Uwe Kleine-König
2023-03-24 15:02             ` Pierre Asselin
2023-03-24 11:54           ` Rafael J. Wysocki
2023-04-17 11:41 ` Linux regression tracking #update (Thorsten Leemhuis)

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).