Message ID | 20220511134559.1466925-5-pierre.gondois@arm.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers | show |
Series | [v1,1/5] ACPI: CPPC: Check _OSC for flexible address space | expand |
On Wed, May 11, 2022 at 03:45:59PM +0200, Pierre Gondois wrote: > From: Pierre Gondois <Pierre.Gondois@arm.com> > > The communication mean of the _CPC desired performance can be > PCC, System Memory, System IO, or Functional Fixed Hardware (FFH). > > PCC, SystemMemory and SystemIo address spaces are available from any > CPU. Thus, dvfs_possible_from_any_cpu should be enabled in such case. > For FFH, let the FFH implementation do smp_call_function_*() calls. > Fair enough. I just thought it would be good to check if this is already taken care for Arm platforms and found that we don't support it yet. So all is fine :). > Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> > --- > drivers/cpufreq/cppc_cpufreq.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c > index 000a0c610c30..ad1535fbf389 100644 > --- a/drivers/cpufreq/cppc_cpufreq.c > +++ b/drivers/cpufreq/cppc_cpufreq.c > @@ -558,6 +558,7 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) > } > > policy->fast_switch_possible = cppc_allow_fast_switch(); > + policy->dvfs_possible_from_any_cpu = true; > Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
On 11-05-22, 15:45, Pierre Gondois wrote: > From: Pierre Gondois <Pierre.Gondois@arm.com> > > The communication mean of the _CPC desired performance can be > PCC, System Memory, System IO, or Functional Fixed Hardware (FFH). > > PCC, SystemMemory and SystemIo address spaces are available from any > CPU. Thus, dvfs_possible_from_any_cpu should be enabled in such case. > For FFH, let the FFH implementation do smp_call_function_*() calls. > > Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> > --- > drivers/cpufreq/cppc_cpufreq.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c > index 000a0c610c30..ad1535fbf389 100644 > --- a/drivers/cpufreq/cppc_cpufreq.c > +++ b/drivers/cpufreq/cppc_cpufreq.c > @@ -558,6 +558,7 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) > } > > policy->fast_switch_possible = cppc_allow_fast_switch(); > + policy->dvfs_possible_from_any_cpu = true; > > /* > * If 'highest_perf' is greater than 'nominal_perf', we assume CPU Boost Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 000a0c610c30..ad1535fbf389 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c @@ -558,6 +558,7 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) } policy->fast_switch_possible = cppc_allow_fast_switch(); + policy->dvfs_possible_from_any_cpu = true; /* * If 'highest_perf' is greater than 'nominal_perf', we assume CPU Boost