From: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: gautham.shenoy@amd.com, mario.limonciello@amd.com,
perry.yuan@amd.com, ray.huang@amd.com, rafael@kernel.org,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] cpufreq: Add a callback to update the min_freq_req from drivers
Date: Thu, 10 Oct 2024 15:24:51 +0530 [thread overview]
Message-ID: <1a38d478-6e34-4041-9169-ba34996d573c@amd.com> (raw)
In-Reply-To: <20241010073541.nxsftik6g3tche7n@vireshk-i7>
Hello Viresh,
On 10/10/2024 1:05 PM, Viresh Kumar wrote:
> On 03-10-24, 08:39, Dhananjay Ugwekar wrote:
>> diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
>> index e0e19d9c1323..b20488b55f6c 100644
>> --- a/include/linux/cpufreq.h
>> +++ b/include/linux/cpufreq.h
>> @@ -414,6 +414,12 @@ struct cpufreq_driver {
>> * policy is properly initialized, but before the governor is started.
>> */
>> void (*register_em)(struct cpufreq_policy *policy);
>> +
>> + /*
>> + * Set by drivers that want to initialize the policy->min_freq_req with
>> + * a value different from the default value (0) in cpufreq core.
>> + */
>> + int (*get_init_min_freq)(struct cpufreq_policy *policy);
>> };
>
> Apart from Rafael's concern, I don't see why you need to define a callback for
> something this basic. If we are going to make this change, why can't we just add
> another u64 field in policy's structure which gives you the freq directly ?
Sure, that also works for us, if it is okay with you and Rafael, I can add the
u64 field in policy struct.
Thanks,
Dhananjay
>
next prev parent reply other threads:[~2024-10-10 9:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-03 8:39 [PATCH 0/3] cpufreq/amd-pstate: Set initial min_freq to lowest_nonlinear_freq Dhananjay Ugwekar
2024-10-03 8:39 ` [PATCH 1/3] cpufreq: Add a callback to update the min_freq_req from drivers Dhananjay Ugwekar
2024-10-04 6:41 ` Gautham R. Shenoy
2024-10-04 18:17 ` Rafael J. Wysocki
2024-10-07 4:40 ` Dhananjay Ugwekar
2024-10-07 15:46 ` Rafael J. Wysocki
2024-10-07 15:48 ` Rafael J. Wysocki
2024-10-08 6:32 ` Dhananjay Ugwekar
2024-10-10 17:57 ` Rafael J. Wysocki
2024-10-10 7:35 ` Viresh Kumar
2024-10-10 9:54 ` Dhananjay Ugwekar [this message]
2024-10-10 10:07 ` Viresh Kumar
2024-10-03 8:39 ` [PATCH 2/3] cpufreq/amd-pstate: Set the initial min_freq to lowest_nonlinear_freq Dhananjay Ugwekar
2024-10-04 8:47 ` Gautham R. Shenoy
2024-10-03 8:39 ` [PATCH 3/3] cpufreq/amd-pstate: Cleanup the old min_freq qos request remnants Dhananjay Ugwekar
2024-10-03 19:23 ` [PATCH 0/3] cpufreq/amd-pstate: Set initial min_freq to lowest_nonlinear_freq Mario Limonciello
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=1a38d478-6e34-4041-9169-ba34996d573c@amd.com \
--to=dhananjay.ugwekar@amd.com \
--cc=gautham.shenoy@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--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
all inboxes | Powered by JetHome®