Re: Pressing the power button causes the device to freeze completely
From: Evgeny Sagatov
Date: Thu Apr 23 2026 - 16:08:50 EST
This patch doesn't change anything. The PC remains frozen when
pressing the power button.
чт, 23 апр. 2026 г. в 21:21, Rafael J. Wysocki <rafael@xxxxxxxxxx>:
>
> On Thursday, April 23, 2026 4:51:36 PM CEST Evgeny Sagatov wrote:
> > I removed the previous patch and installed the new one in kernel 7.0.0.
> > schedutil - complete freeze, no messages in the log
> > performance - log message when pressing power button, doesn't reboot
> > ondemand - log message when pressing power button, doesn't reboot
> >
> > Log: apr 23 17:40:04 srv kernel: acpi-button LNXPWRBN:00: ACPI button event
>
> There clearly is some unexpected interaction between the schedutil governor
> (or generally what happens in cpufreq when it is used) and the ACPI power
> button handling. It looks like some memory gets corrupted when schedutil
> runs and it is then tripped over by the power button handling code.
>
> Kind of on a hunch, please see if the appended schedutil patch (either with
> or without the previous patch applied) makes any difference.
>
> ---
> kernel/sched/cpufreq_schedutil.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/kernel/sched/cpufreq_schedutil.c
> +++ b/kernel/sched/cpufreq_schedutil.c
> @@ -158,7 +158,7 @@ unsigned long get_capacity_ref_freq(stru
> if (freq)
> return freq;
>
> - if (arch_scale_freq_invariant())
> + if (arch_scale_freq_invariant() || policy->cur >= policy->cpuinfo.max_freq)
> return policy->cpuinfo.max_freq;
>
> /*
>
>
>