mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rafael@kernel.org>
To: Evgeny Sagatov <sagatov@ya.ru>
Cc: "Wysocki, Rafael J" <rafael.j.wysocki@intel.com>,
	"regressions@lists.linux.dev" <regressions@lists.linux.dev>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	Thorsten Leemhuis <regressions@leemhuis.info>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: Pressing the power button causes the device to freeze completely
Date: Tue, 21 Apr 2026 22:41:41 +0200	[thread overview]
Message-ID: <12879883.O9o76ZdvQC@rafael.j.wysocki> (raw)
In-Reply-To: <33307e6f-19f6-401c-bd49-725c56596678@intel.com>

On Tuesday, April 21, 2026 5:11:36 PM CEST Wysocki, Rafael J wrote:
> Hi,
> 
> On 4/13/2026 6:46 PM, Evgeny Sagatov wrote:
> > Hello,
> > I have a PC with a motherboard GA-EP45T-UD3LR (Rev. 1.0) 
> > <https://www.gigabyte.com/Motherboard/GA-EP45T-UD3LR-rev-10> and 
> > processor Intel Core 2 Quad Q9550.
> > Previously, I had Debian 12 with kernel 6.1 installed, and pressing 
> > the power button would shut down the PC as usual.
> > I updated to Debian 13 with kernel 6.12.74, and now pressing the power 
> > button causes the PC to freeze completely.
> > I see that systemd doesn't even begin to shut down. It freezes 
> > immediately after pressing the button. There's no error message in 
> > console. There's no error message in the logs either. Netconsole 
> > doesn't report any errors, and the kernel doesn't panic. It just 
> > freezes completely.
> 
> It looks like the ACPI button notify handler crashes on your system for 
> some obscure reason.
> 
> It should be possible to get to the bottom of it, but it will require 
> some investigation if you have the motivation and time to run debug patches.
> 
> 
> > I checked that Live CD with Debian 12 continue to shut down normally, 
> > but Live CD with Debian 13 freeze.
> > I tried updating and resetting the BIOS. I tried various kernel 
> > parameters related to ACPI settings. I also tried kernels 6.18 and 
> > 6.19. Nothing fixed the problem.
> > If I unload the "button" module, the system doesn't freeze, but it 
> > also doesn't shut down.
> 
> This is a useful data point, thanks!
> 
> 
> > I built "button" module by rolling back its version to commit 1a20d40 
> > <https://github.com/torvalds/linux/commit/1a20d409c874255086e2f42a729826d490294c91>, 
> > which corresponds to kernel version 6.1. This module does not freeze, 
> > but does not turn off the PC either.
> > I've found that the freezes have been occurring since commit 0d51157 
> > <https://github.com/torvalds/linux/commit/0d51157dfaac05ea66616d8a250dce04bef49a4f>.
> 
> The main difference made by it is the fixed events handling and if there 
> is a problem with that, a few debug patches should suffice to find out 
> what's going on.  I'll send you one to try shortly.

First off, on top of 7.0.0 (since the issue is present in this one, I think
it's better to focus the debugging on it), let's first check what happens if
the ACPI fixed event handler is not installed for the power button at all.

This should be similar to using a 6.1 version of the button driver (that is,
no crash, but pressing the power button will have no effect).

Please test the patch below and let me know what happens.

---
 drivers/acpi/button.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -628,9 +628,7 @@ static int acpi_button_probe(struct plat
 
 	switch (device->device_type) {
 	case ACPI_BUS_TYPE_POWER_BUTTON:
-		status = acpi_install_fixed_event_handler(ACPI_EVENT_POWER_BUTTON,
-							  acpi_button_event,
-							  button);
+		status = AE_OK;
 		break;
 	case ACPI_BUS_TYPE_SLEEP_BUTTON:
 		status = acpi_install_fixed_event_handler(ACPI_EVENT_SLEEP_BUTTON,




  reply	other threads:[~2026-04-21 20:41 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <184091776095270@mail.yandex.ru>
2026-04-16  8:22 ` Thorsten Leemhuis
     [not found]   ` <186071776359023@mail.yandex.ru>
2026-04-16 17:35     ` Thorsten Leemhuis
     [not found]       ` <26521776666243@mail.yandex.ru>
2026-04-20  6:41         ` Sagatov, Evgeniy
2026-04-20  6:54           ` Thorsten Leemhuis
2026-04-20 19:34             ` Sagatov, Evgeniy
2026-04-20 22:20               ` Sagatov, Evgeniy
2026-04-21  5:01                 ` Thorsten Leemhuis
2026-04-21  9:28                   ` Sagatov, Evgeniy
2026-04-21 15:11 ` Wysocki, Rafael J
2026-04-21 20:41   ` Rafael J. Wysocki [this message]
     [not found]     ` <168591776860440@mail.yandex.ru>
2026-04-22 12:36       ` Evgeny Sagatov
2026-04-22 13:26         ` Rafael J. Wysocki
2026-04-22 13:34           ` Evgeny Sagatov
2026-04-22 14:04             ` Rafael J. Wysocki
2026-04-22 14:48               ` Evgeny Sagatov
2026-04-23 13:17                 ` Rafael J. Wysocki
2026-04-23 14:51                   ` Evgeny Sagatov
2026-04-23 18:21                     ` Rafael J. Wysocki
2026-04-23 20:07                       ` Evgeny Sagatov
2026-04-24 14:40                         ` Rafael J. Wysocki
2026-04-24 17:06                           ` Evgeny Sagatov
2026-04-24 19:45                             ` Rafael J. Wysocki
2026-04-24 21:18                               ` Evgeny Sagatov
2026-04-26 14:50                                 ` Rafael J. Wysocki
2026-04-26 14:54                                   ` Rafael J. Wysocki
2026-04-26 20:45                                     ` Evgeny Sagatov
2026-04-27 18:48                                       ` Rafael J. Wysocki
2026-04-27 20:12                                         ` Evgeny Sagatov
2026-04-27 20:31                                           ` Rafael J. Wysocki
2026-04-27 21:49                                             ` Evgeny Sagatov
2026-04-28 17:40                                               ` Rafael J. Wysocki
2026-04-28 19:11                                                 ` Evgeny Sagatov
2026-04-28 19:58                                                   ` Rafael J. Wysocki
2026-04-28 21:05                                                     ` Evgeny Sagatov
2026-04-29 18:24                                                       ` Pressing the power button causes the device to freeze completely (schedutil involved) Rafael J. Wysocki
2026-04-29 20:22                                                         ` Rafael J. Wysocki
2026-04-29 21:16                                                           ` Evgeny Sagatov
2026-04-30 10:40                                                             ` Rafael J. Wysocki
2026-04-30 10:53                                                               ` Rafael J. Wysocki
2026-04-30 11:41                                                                 ` Evgeny Sagatov
2026-04-30 11:57                                                                   ` Evgeny Sagatov
2026-04-30 14:10                                                                     ` Rafael J. Wysocki
2026-04-30 16:04                                                                       ` Evgeny Sagatov
2026-04-30 13:57                                                                   ` Rafael J. Wysocki
2026-04-30 14:42                                                                     ` Rafael J. Wysocki
2026-04-30 23:05                                                                       ` Evgeny Sagatov
2026-04-30 23:17                                                                       ` Evgeny Sagatov
2026-05-01 12:00                                                                         ` Rafael J. Wysocki

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=12879883.O9o76ZdvQC@rafael.j.wysocki \
    --to=rafael@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=regressions@leemhuis.info \
    --cc=regressions@lists.linux.dev \
    --cc=sagatov@ya.ru \
    /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

all inboxes | Powered by JetHome®