From: "Rafael J. Wysocki" <rafael@kernel.org>
To: Evgeny Sagatov <evgeny.sagatov@gmail.com>
Cc: Linux regressions mailing list <regressions@lists.linux.dev>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Thorsten Leemhuis <regressions@leemhuis.info>,
LKML <linux-kernel@vger.kernel.org>,
Wysocki Rafael J <rafael.j.wysocki@intel.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Linux PM <linux-pm@vger.kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>
Subject: Re: Pressing the power button causes the device to freeze completely (schedutil involved)
Date: Thu, 30 Apr 2026 16:42:09 +0200 [thread overview]
Message-ID: <12909238.O9o76ZdvQC@rafael.j.wysocki> (raw)
In-Reply-To: <CAJZ5v0ixuF=AQf0_VcPH=4jo5X-HbEB3WvJAnk8_fZes+bjyLg@mail.gmail.com>
On Thursday, April 30, 2026 3:57:41 PM CEST Rafael J. Wysocki wrote:
> On Thu, Apr 30, 2026 at 1:41 PM Evgeny Sagatov <evgeny.sagatov@gmail.com> wrote:
> >
> > I noticed that for powersave mode, I'm getting the following values:
>
> I guess you mean with the powersave governor.
>
> > cat /proc/cpuinfo | grep MHz
> > cpu MHz : 2798.689
> > cpu MHz : 1999.659
> > cpu MHz : 1999.797
> > cpu MHz : 2741.103
> > Also, there's now no difference in the single-core benchmark between
> > schedutil, ondemand, powersave and performance modes. The benchmark
> > always gives a very high result.
> > This wasn't the case before; the modes had different performance levels.
>
> I would expect schedutil, ondemand and performance to give similar
> scores, but for powersave I would expect the score to be lower.
>
> With the same patch applied, can you please switch over to powersave,
> reset the stats and then capture the output of
>
> grep -r . /sys/devices/system/cpu/cpufreq/
>
> Also, I'd still like to see the output of
>
> grep . /sys/firmware/acpi/interrupts/sci*
Additionally, please remove all of the debug patches sent so far, apply
the one below and send a dmesg boot log.
I want to check if all of the CPUs use the same control values when
they write to the frequency scaling control register.
---
drivers/cpufreq/acpi-cpufreq.c | 12 +++++++++---
drivers/cpufreq/cpufreq.c | 1 +
2 files changed, 10 insertions(+), 3 deletions(-)
--- a/drivers/cpufreq/acpi-cpufreq.c
+++ b/drivers/cpufreq/acpi-cpufreq.c
@@ -887,9 +887,14 @@ static int acpi_cpufreq_cpu_init(struct
* unknown and not detectable via IO ports.
*/
policy->cur = acpi_cpufreq_guess_freq(data, policy->cpu);
+ pr_info("CPU%u: Using I/O space for frequency scaling\n", cpu);
+ pr_info("CPU%u: frequency scaling control address: %llu, bit width: %u\n",
+ cpu, perf->control_register.address,
+ perf->control_register.bit_width);
break;
case ACPI_ADR_SPACE_FIXED_HARDWARE:
acpi_cpufreq_driver.get = get_cur_freq_on_cpu;
+ pr_info("CPU%u: Using FFH for frequency scaling\n", cpu);
break;
default:
break;
@@ -898,13 +903,14 @@ static int acpi_cpufreq_cpu_init(struct
/* notify BIOS that we exist */
acpi_processor_notify_smm(THIS_MODULE);
- pr_debug("CPU%u - ACPI performance management activated.\n", cpu);
+ pr_info("CPU%u - ACPI performance management activated.\n", cpu);
for (i = 0; i < perf->state_count; i++)
- pr_debug(" %cP%d: %d MHz, %d mW, %d uS\n",
+ pr_info(" %cP%d: %d MHz, %d mW, %d uS, %u\n",
(i == perf->state ? '*' : ' '), i,
(u32) perf->states[i].core_frequency,
(u32) perf->states[i].power,
- (u32) perf->states[i].transition_latency);
+ (u32) perf->states[i].transition_latency,
+ (u32) perf->states[i].control);
/*
* the first call to ->target() should result in us actually
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -473,6 +473,7 @@ void cpufreq_enable_fast_switch(struct c
if (cpufreq_fast_switch_count >= 0) {
cpufreq_fast_switch_count++;
policy->fast_switch_enabled = true;
+ pr_info("CPU%u: Fast frequency switching enabled\n", policy->cpu);
} else {
pr_warn("CPU%u: Fast frequency switching not enabled\n",
policy->cpu);
next prev parent reply other threads:[~2026-04-30 14:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <12879883.O9o76ZdvQC@rafael.j.wysocki>
[not found] ` <6281827.lOV4Wx5bFT@rafael.j.wysocki>
[not found] ` <CAGAxtY1VBXN_6xY0WiraJt-BQiYp_kSdTt8xbPkgP8xPB26=WQ@mail.gmail.com>
[not found] ` <12904177.O9o76ZdvQC@rafael.j.wysocki>
[not found] ` <CAGAxtY2SEkx7OgMgM5ypA8qsBN0h6pcs111VjnhD-5ZGq7Je6Q@mail.gmail.com>
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 [this message]
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=12909238.O9o76ZdvQC@rafael.j.wysocki \
--to=rafael@kernel.org \
--cc=evgeny.sagatov@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=regressions@leemhuis.info \
--cc=regressions@lists.linux.dev \
--cc=vincent.guittot@linaro.org \
--cc=viresh.kumar@linaro.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