[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4214cbfd-b8d2-4eb6-9870-5c74c056e51f@amd.com>
Date: Wed, 26 Jun 2024 12:15:14 +0530
From: Dhananjay Ugwekar <Dhananjay.Ugwekar@....com>
To: "Gautham R.Shenoy" <gautham.shenoy@....com>,
"Meng, Li (Jassmine)" <Li.Meng@....com>,
"rafael@...nel.org" <rafael@...nel.org>,
"viresh.kumar@...aro.org" <viresh.kumar@...aro.org>,
"Limonciello, Mario" <Mario.Limonciello@....com>,
"Yuan, Perry" <Perry.Yuan@....com>,
"skhan@...uxfoundation.org" <skhan@...uxfoundation.org>,
"Huang, Ray" <Ray.Huang@....com>
Cc: "linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] cpufreq/amd-pstate-ut: Handle the inconsistency
Hello Gautham,
On 6/26/2024 10:52 AM, Gautham R.Shenoy wrote:
> "Meng, Li (Jassmine)" <Li.Meng@....com> writes:
>
> Hello Jassmine,
>
>>
>> Hi Dhananjay:
>> Sorry for the delay.
>>
>> I think the correction to this issue should be in function amd_pstae_init_freq() of file amd-pstate.c.
>> The value of norminal_freq should be consistent with other
>> values(max_freq,min_freq etc.).
>
> Perry wanted nominal_freq to be in MHz since it is not exposed to the
> user via any of the cpufreq sysfs interfaces.
>
> IMO, it woyuld be good to to rename the variables to have their units
> for better readability along with a bunch of other
> cleanups/code deduplication. But can it be done separately ?
Yes that could be part of a separate cleanup patchset.
>
>
>>
>>> -----Original Message-----
>>> From: Ugwekar, Dhananjay <Dhananjay.Ugwekar@....com>
>>> Sent: Tuesday, June 25, 2024 9:52 PM
>>> To: rafael@...nel.org; viresh.kumar@...aro.org; Shenoy, Gautham Ranjal
>>> <gautham.shenoy@....com>; Limonciello, Mario
>>> <Mario.Limonciello@....com>; Yuan, Perry <Perry.Yuan@....com>;
>>> skhan@...uxfoundation.org; Meng, Li (Jassmine) <Li.Meng@....com>;
>>> Huang, Ray <Ray.Huang@....com>
>>> Cc: linux-pm@...r.kernel.org; linux-kernel@...r.kernel.org
>>> Subject: Re: [PATCH 1/2] cpufreq/amd-pstate-ut: Handle the inconsistency
>>>
>>> Minor modification, the commit subject is supposed to be
>>> "cpufreq/amd-pstate-ut: Handle the inconsistency between nominal_freq
>>> and other *_freq units"
>
> How about:
>
> "cpufreq/amd-pstate-ut: Convert nominal_freq to khz during comparisons"
Sure, this seems easier to understand and more concise. Will update in v2.
>
> Otherwise the patch looks good to me.
>
> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@....com>
Thanks for reviewing!
Regards,
Dhananjay
>
> --
> Thanks and Regards
> gautham.
>
Powered by blists - more mailing lists