From: Mario Limonciello <superm1@kernel.org>
To: Farrukh Seyer Hasan <farrukh13hasan31@gmail.com>,
Huang Rui <ray.huang@amd.com>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>
Cc: Perry Yuan <perry.yuan@amd.com>,
K Prateek Nayak <kprateek.nayak@amd.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cpufreq/amd-pstate: Drop refresh_frequency_limits() from set_boost
Date: Fri, 4 Dec 2026 16:27:02 -0600 [thread overview]
Message-ID: <6c062f90-446a-4dea-8cba-7606576bd6f2@kernel.org> (raw)
In-Reply-To: <20261203130758.38506-2-farrukh13hasan31@gmail.com>
On 12/3/26 07:07, Farrukh Seyer Hasan wrote:
> Commit 6e39ba4e5a82 ("cpufreq: Add boost_freq_req QoS request") moved
> the boost QoS update into policy_set_boost() after calling ->set_boost().
>
> Because amd_pstate_set_boost() still calls refresh_frequency_limits(),
> it evaluates policy limits before policy->boost_freq_req is updated.
> Drop the redundant call, matching cppc_cpufreq_set_boost().
>
> Fixes: 6e39ba4e5a82 ("cpufreq: Add boost_freq_req QoS request")
> Signed-off-by: Farrukh Seyer Hasan <farrukh13hasan31@gmail.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
I'll pick this up.
> ---
> drivers/cpufreq/amd-pstate.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
> index 69bfeb923a53..03444a81855e 100644
> --- a/drivers/cpufreq/amd-pstate.c
> +++ b/drivers/cpufreq/amd-pstate.c
> @@ -899,17 +899,13 @@ static int amd_pstate_cpu_boost_update(struct cpufreq_policy *policy, bool on)
> static int amd_pstate_set_boost(struct cpufreq_policy *policy, int state)
> {
> struct amd_cpudata *cpudata = policy->driver_data;
> - int ret;
>
> if (!cpudata->boost_supported) {
> pr_err("Boost mode is not supported by this processor or SBIOS\n");
> return -EOPNOTSUPP;
> }
>
> - ret = amd_pstate_cpu_boost_update(policy, state);
> - refresh_frequency_limits(policy);
> -
> - return ret;
> + return amd_pstate_cpu_boost_update(policy, state);
> }
>
> static int amd_pstate_init_boost_support(struct amd_cpudata *cpudata)
prev parent reply other threads:[~2026-12-04 22:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 13:07 [PATCH] cpufreq/amd-pstate: Drop refresh_frequency_limits() from set_boost Farrukh Seyer Hasan
2026-12-04 22:27 ` Mario Limonciello [this message]
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=6c062f90-446a-4dea-8cba-7606576bd6f2@kernel.org \
--to=superm1@kernel.org \
--cc=farrukh13hasan31@gmail.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=perry.yuan@amd.com \
--cc=rafael@kernel.org \
--cc=ray.huang@amd.com \
--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