LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v1] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag
@ 2021-08-11 1:38 Taniya Das
2021-08-11 3:57 ` Viresh Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Taniya Das @ 2021-08-11 1:38 UTC (permalink / raw)
To: Rafael J . Wysocki, Viresh Kumar, linux-pm
Cc: linux-arm-msm, linux-kernel, Douglas Anderson, Rajendra Nayak,
Stephen Boyd, Taniya Das
As remote cpufreq updates are supported on QCOM platforms, set
dvfs_possible_from_any_cpu cpufreq driver flag.
Signed-off-by: Taniya Das <tdas@codeaurora.org>
---
drivers/cpufreq/qcom-cpufreq-hw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
index f86859b..20455aa 100644
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@ -161,6 +161,7 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev,
return ret;
} else {
policy->fast_switch_possible = true;
+ policy->dvfs_possible_from_any_cpu = true;
icc_scaling_enabled = false;
}
--
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member
of the Code Aurora Forum, hosted by the Linux Foundation.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag
2021-08-11 1:38 [PATCH v1] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag Taniya Das
@ 2021-08-11 3:57 ` Viresh Kumar
2021-08-12 7:51 ` Taniya Das
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2021-08-11 3:57 UTC (permalink / raw)
To: Taniya Das
Cc: Rafael J . Wysocki, linux-pm, linux-arm-msm, linux-kernel,
Douglas Anderson, Rajendra Nayak, Stephen Boyd
On 11-08-21, 07:08, Taniya Das wrote:
> As remote cpufreq updates are supported on QCOM platforms, set
> dvfs_possible_from_any_cpu cpufreq driver flag.
>
> Signed-off-by: Taniya Das <tdas@codeaurora.org>
> ---
> drivers/cpufreq/qcom-cpufreq-hw.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
> index f86859b..20455aa 100644
> --- a/drivers/cpufreq/qcom-cpufreq-hw.c
> +++ b/drivers/cpufreq/qcom-cpufreq-hw.c
> @@ -161,6 +161,7 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev,
> return ret;
> } else {
> policy->fast_switch_possible = true;
> + policy->dvfs_possible_from_any_cpu = true;
> icc_scaling_enabled = false;
> }
Why don't you set it always ?
>
> --
> Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member
> of the Code Aurora Forum, hosted by the Linux Foundation.
--
viresh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag
2021-08-11 3:57 ` Viresh Kumar
@ 2021-08-12 7:51 ` Taniya Das
0 siblings, 0 replies; 3+ messages in thread
From: Taniya Das @ 2021-08-12 7:51 UTC (permalink / raw)
To: Viresh Kumar
Cc: Rafael J . Wysocki, linux-pm, linux-arm-msm, linux-kernel,
Douglas Anderson, Rajendra Nayak, Stephen Boyd
Thanks Viresh for the review.
On 8/11/2021 9:27 AM, Viresh Kumar wrote:
> On 11-08-21, 07:08, Taniya Das wrote:
>> As remote cpufreq updates are supported on QCOM platforms, set
>> dvfs_possible_from_any_cpu cpufreq driver flag.
>>
>> Signed-off-by: Taniya Das <tdas@codeaurora.org>
>> ---
>> drivers/cpufreq/qcom-cpufreq-hw.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
>> index f86859b..20455aa 100644
>> --- a/drivers/cpufreq/qcom-cpufreq-hw.c
>> +++ b/drivers/cpufreq/qcom-cpufreq-hw.c
>> @@ -161,6 +161,7 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev,
>> return ret;
>> } else {
>> policy->fast_switch_possible = true;
>> + policy->dvfs_possible_from_any_cpu = true;
>> icc_scaling_enabled = false;
>> }
>
> Why don't you set it always ?
>
Sure, will move it outside.
>>
>> --
>> Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member
>> of the Code Aurora Forum, hosted by the Linux Foundation.
>
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation.
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-12 7:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 1:38 [PATCH v1] cpufreq: qcom-hw: Set dvfs_possible_from_any_cpu cpufreq driver flag Taniya Das
2021-08-11 3:57 ` Viresh Kumar
2021-08-12 7:51 ` Taniya Das
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).