mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Loehle <christian.loehle@arm.com>
To: "Rafael J . Wysocki" <rafael@kernel.org>,
	Daniel Lezcano <daniel.lezcano@kernel.org>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] cpuidle: idle_miss accounting fixes
Date: Thu, 5 Nov 2026 08:11:01 +0000	[thread overview]
Message-ID: <be158e9a-a4f8-4ce4-8183-85c747af2129@arm.com> (raw)
In-Reply-To: <20261030083633.1699270-1-christian.loehle@arm.com>

On 10/30/26 08:36, Christian Loehle wrote:
> These two fixes exclude timer-broadcast fallbacks from governor miss
> accounting and respect the entry-time latency constraint when looking for
> a better deeper state.
> No functional change outside of sysfs above/below and tracing.
> 
> Patch 1: Exclude timer-broadcast fallbacks
> 
> When tick_broadcast_enter() fails, the core forces a shallower state.
> Exclude these entries from governor miss accounting while retaining
> residency, usage and governor feedback.
> 
> On Orion O6, traces with menu and TEO running schbench, tbench and hackbench
> recorded 6930 cpu_idle_miss events on 8172 broadcast fallbacks before the
> fix, and none on 7763 fallbacks with patch 1. All matched fallbacks entered
> WFI.
> 
> Patch 2: Respect latency constraints for below misses
> 
> An enabled deeper state may violate the latency QoS constraint, causing a
> false below miss. Save the governor latency limit at entry and exclude
> states exceeding it, without an additional state-table walk. Disable flags
> continue to be checked at exit as they are expected to change less frequently.
> 
> Christian Loehle (2):
>   cpuidle: Skip miss accounting for timer broadcast fallbacks
>   cpuidle: Respect latency constraints when accounting below misses
> 
>  drivers/cpuidle/cpuidle.c | 16 +++++++++++++++-
>  1 file changed, 15 insertions(+), 1 deletion(-)
> 

Rafael, any opinions?

  parent reply	other threads:[~2026-11-05  8:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30  8:36 Christian Loehle
2026-10-30  8:36 ` [PATCH 1/2] cpuidle: Skip miss accounting for timer broadcast fallbacks Christian Loehle
2026-10-30  8:36 ` [PATCH 2/2] cpuidle: Respect latency constraints when accounting below misses Christian Loehle
2026-11-05  8:11 ` Christian Loehle [this message]
2026-11-05 12:17   ` [PATCH 0/2] cpuidle: idle_miss accounting fixes Rafael J. Wysocki (Intel)

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=be158e9a-a4f8-4ce4-8183-85c747af2129@arm.com \
    --to=christian.loehle@arm.com \
    --cc=daniel.lezcano@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@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 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®