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>,
	Linux PM <linux-pm@vger.kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1] cpufreq: Allow exit latency to exceed target residency
Date: Wed, 17 Jun 2026 17:31:47 +0100	[thread overview]
Message-ID: <bc20f2a1-66ad-4655-99e0-ad59e597f831@arm.com> (raw)
In-Reply-To: <3444162.aeNJFYEL58@rafael.j.wysocki>

On 6/17/26 17:16, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> 
> Commit 76934e495cdc ("cpuidle: Add sanity check for exit latency and
> target residency") had added a check to prevent the exit latency of an
> idle state from exceeding its target residency that later was limited to
> printing a warning message in that case in commit 4bf944f3fcb6 ("cpuidle:
> Warn instead of bailing out if target residency check fails").
> 
> However, a thorough code inspection with that in mind leads to the
> conclusion that actually there are no assumptions in cpuidle regarding
> the relationship between the exit latency and target residency of a
> given idle state.  It is generally assumed that the idle states table
> provided by a cpuidle driver will be sorted by both the target residency
> and exit latency in ascending order, but that's a different matter.
> 
> Accordingly, drop the check in question along with the message printed
> when it triggers and the inaccurate comment preceding it.
> 
> Fixes: 4bf944f3fcb6 ("cpuidle: Warn instead of bailing out if target residency check fails")
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
>  drivers/cpuidle/driver.c           |    8 --------
>  drivers/cpuidle/governors/ladder.c |    2 ++

ladder.c?

>  2 files changed, 2 insertions(+), 8 deletions(-)
> 
> --- a/drivers/cpuidle/driver.c
> +++ b/drivers/cpuidle/driver.c
> @@ -195,14 +195,6 @@ static void __cpuidle_driver_init(struct
>  			s->exit_latency_ns =  0;
>  		else
>  			s->exit_latency = div_u64(s->exit_latency_ns, NSEC_PER_USEC);
> -
> -		/*
> -		 * Warn if the exit latency of a CPU idle state exceeds its
> -		 * target residency which is assumed to never happen in cpuidle
> -		 * in multiple places.
> -		 */
> -		if (s->exit_latency_ns > s->target_residency_ns)
> -			pr_warn("Idle state %d target residency too low\n", i);
>  	}
>  }
>  
> 

Fine with me, but the title is cpufreq: instead of cpuidle.
If you'll fix it when applying:
Reviewed-by: Christian Loehle <christian.loehle@arm.com>

  reply	other threads:[~2026-06-17 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-17 16:16 Rafael J. Wysocki
2026-06-17 16:31 ` Christian Loehle [this message]
2026-06-17 17:09   ` 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=bc20f2a1-66ad-4655-99e0-ad59e597f831@arm.com \
    --to=christian.loehle@arm.com \
    --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®