From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796423224; b=48sHtHsp7XoG4JX17FVaSeDGnQEbiYDxnErsWeG3cq3hgk9G6G5Ge7fqtxD9MOjqwCrh RNCfp1h6wwKnkr+ekxsXk4Y7a7CUCUVo29sFWzKb3Zi8XTZOeD0N+EWHYMSjt1ER/ur5x izYj2ZxW7UUoujMkGZ70H9bgk2hNPPtXX2R0BDgS6r9kzGtNRwDGMwpQYn4ezOLQ6FsnT b9i5W9NU74ZmWYFyoKK8h70GObM0mS5EoSjmY7B8H4Ut//C3CcWE5ax5mXGY+Rvx5rQGj 58p5Woa6GGTfXVF7UUXLrjB0rpyOPX5052mCfPvX4j4ylZBqWDre/QLchc9KjLGZLBg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796423224; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=BWeI1nhTRX32VWBWqmR2TQ1CfCT28vnj1JAB+otBB4g=; b=yh5PR8nz/LLGlnA68TfEjpr6IKJSIu2pUTdeXtrGIeq1WF/yx8fVRGwXZ2QqD/hLiEiM dMOSOqiw9jeGzyB+lHVFglmUAXnGLcT9vAnzcVCCE48H88m45UEYi87VFH/wECsQ9/COK LrQ92mLtGZiVRWj30/TicdmV8n7KFSgjQ4WsjrtcNDhd2qHTVKMzaMEO/zPcHuERbNpo9 hH2vtNV1VinISN/FG2LIGqOZspbKxM/0GMGEJnRIPje4Ma5V5bnZvEAbQ6lBd/2giNK58 0KVdKN2kuqtUVli54+/mHMlqnqrCc+LgiuX8gLPe+jQ1o+z7Z1J3UhZhsQHMfi39VeQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lWEnJ0qm; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BB0B606A322; Fri, 4 Dec 2026 22:27:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lWEnJ0qm Received: by smtp.kernel.org (Postfix) with ESMTPSA id 701401F00936; Fri, 4 Dec 2026 22:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796423224; bh=BWeI1nhTRX32VWBWqmR2TQ1CfCT28vnj1JAB+otBB4g=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=lWEnJ0qmX4r26t4z4MaLvmYgI1LqYnq7UkYl786Sku7gknoT58qaH8CQ6Xne0utBV GJ5hD5rg9XY+s4ENFugWc/6AJ1J7yESEZXk4yU+0QanyvNbetCCUADntsoyimvvpTx COh98rV7A9+hlyYsOuc7Ag/iYguPv1NtaA2i+Ge/+iHY0yV2t6FqrghmX+d+aFyIG6 Pq95V7LeLRiimcIrZ3LNc6ZIyLfKkEmW6e8uUF2tKx7tP6CZOQPV8iT7znUUzySzyY 5ddIHysf1Z/EHjvZFhjWY5JA32YNS/H3IVqP2a2Pyp5Z6lpn3f+QlMA8wFWH/GVIWL 2v4WQSek+hgoQ== Message-ID: <6c062f90-446a-4dea-8cba-7606576bd6f2@kernel.org> Date: Fri, 4 Dec 2026 16:27:02 -0600 X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] cpufreq/amd-pstate: Drop refresh_frequency_limits() from set_boost Content-Language: en-US To: Farrukh Seyer Hasan , Huang Rui , "Rafael J . Wysocki" , Viresh Kumar Cc: Perry Yuan , K Prateek Nayak , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261203130758.38506-2-farrukh13hasan31@gmail.com> From: Mario Limonciello In-Reply-To: <20261203130758.38506-2-farrukh13hasan31@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Reviewed-by: Mario Limonciello (AMD) 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)