diff mbox

[3/3] cpufreq: Enable big.LITTLE cpufreq driver on arm64

Message ID 1399653631-4938-3-git-send-email-broonie@kernel.org
State New
Headers show

Commit Message

Mark Brown May 9, 2014, 4:40 p.m. UTC
From: Mark Brown <broonie@linaro.org>

There are arm64 big.LITTLE systems so enable the big.LITTLE cpufreq driver.
While IKS is not available for these systems the driver is still useful
since it manages clusters with shared frequencies which is the common case
for these systems.

Long term combining the cpufreq-cpu0 and big.LITTLE drivers may be a
more sensible option but that is substantially more complex especially
in the case of IKS.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 drivers/cpufreq/Kconfig.arm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Viresh Kumar May 12, 2014, 4:16 a.m. UTC | #1
On 9 May 2014 22:10, Mark Brown <broonie@kernel.org> wrote:
> From: Mark Brown <broonie@linaro.org>
>
> There are arm64 big.LITTLE systems so enable the big.LITTLE cpufreq driver.
> While IKS is not available for these systems the driver is still useful
> since it manages clusters with shared frequencies which is the common case
> for these systems.
>
> Long term combining the cpufreq-cpu0 and big.LITTLE drivers may be a
> more sensible option but that is substantially more complex especially
> in the case of IKS.

Yeah, it was left separately for IKS specially :(

> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
>  drivers/cpufreq/Kconfig.arm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
> index 6e05a1e18e52..6a7dd3e958d5 100644
> --- a/drivers/cpufreq/Kconfig.arm
> +++ b/drivers/cpufreq/Kconfig.arm
> @@ -5,7 +5,8 @@
>  # big LITTLE core layer and glue drivers
>  config ARM_BIG_LITTLE_CPUFREQ
>         tristate "Generic ARM big LITTLE CPUfreq driver"
> -       depends on ARM && BIG_LITTLE && ARM_CPU_TOPOLOGY && HAVE_CLK
> +       depends on (BIG_LITTLE && ARM_CPU_TOPOLOGY) || (ARM64 && SMP)
> +       depends on HAVE_CLK
>         select PM_OPP
>         help
>           This enables the Generic CPUfreq driver for ARM big.LITTLE platforms.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mark Brown May 19, 2014, 11:07 p.m. UTC | #2
On Tue, May 20, 2014 at 01:19:03AM +0200, Rafael J. Wysocki wrote:

> I've queued this one up for 3.16, thanks!

This will fail to build without patch 1 - it uses the stubs added there.
Rafael J. Wysocki May 19, 2014, 11:19 p.m. UTC | #3
On Monday, May 12, 2014 09:46:01 AM Viresh Kumar wrote:
> On 9 May 2014 22:10, Mark Brown <broonie@kernel.org> wrote:
> > From: Mark Brown <broonie@linaro.org>
> >
> > There are arm64 big.LITTLE systems so enable the big.LITTLE cpufreq driver.
> > While IKS is not available for these systems the driver is still useful
> > since it manages clusters with shared frequencies which is the common case
> > for these systems.
> >
> > Long term combining the cpufreq-cpu0 and big.LITTLE drivers may be a
> > more sensible option but that is substantially more complex especially
> > in the case of IKS.
> 
> Yeah, it was left separately for IKS specially :(
> 
> > Signed-off-by: Mark Brown <broonie@linaro.org>
> > ---
> >  drivers/cpufreq/Kconfig.arm | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
> > index 6e05a1e18e52..6a7dd3e958d5 100644
> > --- a/drivers/cpufreq/Kconfig.arm
> > +++ b/drivers/cpufreq/Kconfig.arm
> > @@ -5,7 +5,8 @@
> >  # big LITTLE core layer and glue drivers
> >  config ARM_BIG_LITTLE_CPUFREQ
> >         tristate "Generic ARM big LITTLE CPUfreq driver"
> > -       depends on ARM && BIG_LITTLE && ARM_CPU_TOPOLOGY && HAVE_CLK
> > +       depends on (BIG_LITTLE && ARM_CPU_TOPOLOGY) || (ARM64 && SMP)
> > +       depends on HAVE_CLK
> >         select PM_OPP
> >         help
> >           This enables the Generic CPUfreq driver for ARM big.LITTLE platforms.
> 
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

I've queued this one up for 3.16, thanks!

> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Rafael J. Wysocki May 19, 2014, 11:36 p.m. UTC | #4
On Tuesday, May 20, 2014 12:07:29 AM Mark Brown wrote:
> 
> --MAH+hnPXVZWQ5cD/
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> 
> On Tue, May 20, 2014 at 01:19:03AM +0200, Rafael J. Wysocki wrote:
> 
> > I've queued this one up for 3.16, thanks!
> 
> This will fail to build without patch 1 - it uses the stubs added there.

OK, dropping then.

Rafael

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Catalin Marinas June 5, 2014, 10:04 a.m. UTC | #5
Hi Rafael,

On Tue, May 20, 2014 at 12:36:56AM +0100, Rafael J. Wysocki wrote:
> On Tuesday, May 20, 2014 12:07:29 AM Mark Brown wrote:
> > 
> > --MAH+hnPXVZWQ5cD/
> > Content-Type: text/plain; charset=us-ascii
> > Content-Disposition: inline
> > 
> > On Tue, May 20, 2014 at 01:19:03AM +0200, Rafael J. Wysocki wrote:
> > 
> > > I've queued this one up for 3.16, thanks!
> > 
> > This will fail to build without patch 1 - it uses the stubs added there.
> 
> OK, dropping then.

This patch still made it as commit 4920ab84979d (cpufreq: Enable
big.LITTLE cpufreq driver on arm64) and fails to build on arm64. Could
you please revert it?

Thanks.
Rafael J. Wysocki June 5, 2014, 12:10 p.m. UTC | #6
On Thursday, June 05, 2014 11:04:16 AM Catalin Marinas wrote:
> Hi Rafael,
> 
> On Tue, May 20, 2014 at 12:36:56AM +0100, Rafael J. Wysocki wrote:
> > On Tuesday, May 20, 2014 12:07:29 AM Mark Brown wrote:
> > > 
> > > --MAH+hnPXVZWQ5cD/
> > > Content-Type: text/plain; charset=us-ascii
> > > Content-Disposition: inline
> > > 
> > > On Tue, May 20, 2014 at 01:19:03AM +0200, Rafael J. Wysocki wrote:
> > > 
> > > > I've queued this one up for 3.16, thanks!
> > > 
> > > This will fail to build without patch 1 - it uses the stubs added there.
> > 
> > OK, dropping then.
> 
> This patch still made it as commit 4920ab84979d (cpufreq: Enable
> big.LITTLE cpufreq driver on arm64) and fails to build on arm64. Could
> you please revert it?

I will.

Rafael

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
index 6e05a1e18e52..6a7dd3e958d5 100644
--- a/drivers/cpufreq/Kconfig.arm
+++ b/drivers/cpufreq/Kconfig.arm
@@ -5,7 +5,8 @@ 
 # big LITTLE core layer and glue drivers
 config ARM_BIG_LITTLE_CPUFREQ
 	tristate "Generic ARM big LITTLE CPUfreq driver"
-	depends on ARM && BIG_LITTLE && ARM_CPU_TOPOLOGY && HAVE_CLK
+	depends on (BIG_LITTLE && ARM_CPU_TOPOLOGY) || (ARM64 && SMP)
+	depends on HAVE_CLK
 	select PM_OPP
 	help
 	  This enables the Generic CPUfreq driver for ARM big.LITTLE platforms.