* [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
@ 2014-11-13 5:38 ` Pankaj Dubey
0 siblings, 0 replies; 12+ messages in thread
From: Pankaj Dubey @ 2014-11-13 5:38 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel; +Cc: linux, nico, Pankaj Dubey
If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
we are getting following config warning.
warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
dependencies (SUSPEND || CPU_IDLE)
So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
CPU_IDLE is selected.
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
arch/arm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9d580d0..fe3d969 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1417,7 +1417,7 @@ config BL_SWITCHER
bool "big.LITTLE switcher support"
depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
select ARM_CPU_SUSPEND
- select CPU_PM
+ select CPU_PM if (SUSPEND || CPU_IDLE)
help
The big.LITTLE "switcher" provides the core functionality to
transparently handle transition between a cluster of A15's
--
1.7.9.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
@ 2014-11-13 5:38 ` Pankaj Dubey
0 siblings, 0 replies; 12+ messages in thread
From: Pankaj Dubey @ 2014-11-13 5:38 UTC (permalink / raw)
To: linux-arm-kernel
If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
we are getting following config warning.
warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
dependencies (SUSPEND || CPU_IDLE)
So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
CPU_IDLE is selected.
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
arch/arm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9d580d0..fe3d969 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1417,7 +1417,7 @@ config BL_SWITCHER
bool "big.LITTLE switcher support"
depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
select ARM_CPU_SUSPEND
- select CPU_PM
+ select CPU_PM if (SUSPEND || CPU_IDLE)
help
The big.LITTLE "switcher" provides the core functionality to
transparently handle transition between a cluster of A15's
--
1.7.9.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
2014-11-13 5:38 ` Pankaj Dubey
@ 2014-11-13 17:44 ` Nicolas Pitre
-1 siblings, 0 replies; 12+ messages in thread
From: Nicolas Pitre @ 2014-11-13 17:44 UTC (permalink / raw)
To: Pankaj Dubey; +Cc: linux-arm-kernel, linux-kernel, Russell King - ARM Linux
On Thu, 13 Nov 2014, Pankaj Dubey wrote:
> If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
> we are getting following config warning.
>
> warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
> dependencies (SUSPEND || CPU_IDLE)
>
> So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
> CPU_IDLE is selected.
>
> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> ---
> arch/arm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 9d580d0..fe3d969 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1417,7 +1417,7 @@ config BL_SWITCHER
> bool "big.LITTLE switcher support"
> depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
> select ARM_CPU_SUSPEND
> - select CPU_PM
> + select CPU_PM if (SUSPEND || CPU_IDLE)
NAK. You just broke the code by doing this. CPU_PM is a requirement
here. The dependencies for CPU_PM is lacking.
Nicolas
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
@ 2014-11-13 17:44 ` Nicolas Pitre
0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Pitre @ 2014-11-13 17:44 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, 13 Nov 2014, Pankaj Dubey wrote:
> If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
> we are getting following config warning.
>
> warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
> dependencies (SUSPEND || CPU_IDLE)
>
> So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
> CPU_IDLE is selected.
>
> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> ---
> arch/arm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 9d580d0..fe3d969 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1417,7 +1417,7 @@ config BL_SWITCHER
> bool "big.LITTLE switcher support"
> depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
> select ARM_CPU_SUSPEND
> - select CPU_PM
> + select CPU_PM if (SUSPEND || CPU_IDLE)
NAK. You just broke the code by doing this. CPU_PM is a requirement
here. The dependencies for CPU_PM is lacking.
Nicolas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
2014-11-13 17:44 ` Nicolas Pitre
@ 2014-11-13 17:48 ` Russell King - ARM Linux
-1 siblings, 0 replies; 12+ messages in thread
From: Russell King - ARM Linux @ 2014-11-13 17:48 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: Pankaj Dubey, linux-arm-kernel, linux-kernel
On Thu, Nov 13, 2014 at 12:44:22PM -0500, Nicolas Pitre wrote:
> On Thu, 13 Nov 2014, Pankaj Dubey wrote:
>
> > If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
> > we are getting following config warning.
> >
> > warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
> > dependencies (SUSPEND || CPU_IDLE)
> >
> > So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
> > CPU_IDLE is selected.
> >
> > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> > ---
> > arch/arm/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > index 9d580d0..fe3d969 100644
> > --- a/arch/arm/Kconfig
> > +++ b/arch/arm/Kconfig
> > @@ -1417,7 +1417,7 @@ config BL_SWITCHER
> > bool "big.LITTLE switcher support"
> > depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
> > select ARM_CPU_SUSPEND
> > - select CPU_PM
> > + select CPU_PM if (SUSPEND || CPU_IDLE)
>
> NAK. You just broke the code by doing this. CPU_PM is a requirement
> here. The dependencies for CPU_PM is lacking.
Is there any real technical reason that CPU_PM depends on SUSPEND ||
CPU_IDLE ? If not, those dependencies should be killed.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
@ 2014-11-13 17:48 ` Russell King - ARM Linux
0 siblings, 0 replies; 12+ messages in thread
From: Russell King - ARM Linux @ 2014-11-13 17:48 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 13, 2014 at 12:44:22PM -0500, Nicolas Pitre wrote:
> On Thu, 13 Nov 2014, Pankaj Dubey wrote:
>
> > If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
> > we are getting following config warning.
> >
> > warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
> > dependencies (SUSPEND || CPU_IDLE)
> >
> > So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
> > CPU_IDLE is selected.
> >
> > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> > ---
> > arch/arm/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > index 9d580d0..fe3d969 100644
> > --- a/arch/arm/Kconfig
> > +++ b/arch/arm/Kconfig
> > @@ -1417,7 +1417,7 @@ config BL_SWITCHER
> > bool "big.LITTLE switcher support"
> > depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
> > select ARM_CPU_SUSPEND
> > - select CPU_PM
> > + select CPU_PM if (SUSPEND || CPU_IDLE)
>
> NAK. You just broke the code by doing this. CPU_PM is a requirement
> here. The dependencies for CPU_PM is lacking.
Is there any real technical reason that CPU_PM depends on SUSPEND ||
CPU_IDLE ? If not, those dependencies should be killed.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
2014-11-13 17:48 ` Russell King - ARM Linux
@ 2014-11-13 18:00 ` Nicolas Pitre
-1 siblings, 0 replies; 12+ messages in thread
From: Nicolas Pitre @ 2014-11-13 18:00 UTC (permalink / raw)
To: Russell King - ARM Linux; +Cc: Pankaj Dubey, linux-arm-kernel, linux-kernel
On Thu, 13 Nov 2014, Russell King - ARM Linux wrote:
> On Thu, Nov 13, 2014 at 12:44:22PM -0500, Nicolas Pitre wrote:
> > On Thu, 13 Nov 2014, Pankaj Dubey wrote:
> >
> > > If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
> > > we are getting following config warning.
> > >
> > > warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
> > > dependencies (SUSPEND || CPU_IDLE)
> > >
> > > So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
> > > CPU_IDLE is selected.
> > >
> > > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> > > ---
> > > arch/arm/Kconfig | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > > index 9d580d0..fe3d969 100644
> > > --- a/arch/arm/Kconfig
> > > +++ b/arch/arm/Kconfig
> > > @@ -1417,7 +1417,7 @@ config BL_SWITCHER
> > > bool "big.LITTLE switcher support"
> > > depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
> > > select ARM_CPU_SUSPEND
> > > - select CPU_PM
> > > + select CPU_PM if (SUSPEND || CPU_IDLE)
> >
> > NAK. You just broke the code by doing this. CPU_PM is a requirement
> > here. The dependencies for CPU_PM is lacking.
>
> Is there any real technical reason that CPU_PM depends on SUSPEND ||
> CPU_IDLE ? If not, those dependencies should be killed.
Those dependencies look artificial to me.
Nicolas
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
@ 2014-11-13 18:00 ` Nicolas Pitre
0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Pitre @ 2014-11-13 18:00 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, 13 Nov 2014, Russell King - ARM Linux wrote:
> On Thu, Nov 13, 2014 at 12:44:22PM -0500, Nicolas Pitre wrote:
> > On Thu, 13 Nov 2014, Pankaj Dubey wrote:
> >
> > > If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
> > > we are getting following config warning.
> > >
> > > warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
> > > dependencies (SUSPEND || CPU_IDLE)
> > >
> > > So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
> > > CPU_IDLE is selected.
> > >
> > > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> > > ---
> > > arch/arm/Kconfig | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > > index 9d580d0..fe3d969 100644
> > > --- a/arch/arm/Kconfig
> > > +++ b/arch/arm/Kconfig
> > > @@ -1417,7 +1417,7 @@ config BL_SWITCHER
> > > bool "big.LITTLE switcher support"
> > > depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
> > > select ARM_CPU_SUSPEND
> > > - select CPU_PM
> > > + select CPU_PM if (SUSPEND || CPU_IDLE)
> >
> > NAK. You just broke the code by doing this. CPU_PM is a requirement
> > here. The dependencies for CPU_PM is lacking.
>
> Is there any real technical reason that CPU_PM depends on SUSPEND ||
> CPU_IDLE ? If not, those dependencies should be killed.
Those dependencies look artificial to me.
Nicolas
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
2014-11-13 18:00 ` Nicolas Pitre
@ 2014-11-14 6:10 ` Pankaj Dubey
-1 siblings, 0 replies; 12+ messages in thread
From: Pankaj Dubey @ 2014-11-14 6:10 UTC (permalink / raw)
To: 'Nicolas Pitre', 'Russell King - ARM Linux'
Cc: linux-arm-kernel, linux-kernel, james.hogan, ccross
+CC: Colin Cross, James Hogan
On Thursday, November 13, 2014 11:30 PM, Nicolas Pitre wrote:
> To: Russell King - ARM Linux
> Cc: Pankaj Dubey; linux-arm-kernel@lists.infradead.org; linux-
> kernel@vger.kernel.org
> Subject: Re: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
>
> On Thu, 13 Nov 2014, Russell King - ARM Linux wrote:
>
> > On Thu, Nov 13, 2014 at 12:44:22PM -0500, Nicolas Pitre wrote:
> > > On Thu, 13 Nov 2014, Pankaj Dubey wrote:
> > >
> > > > If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
> > > > we are getting following config warning.
> > > >
> > > > warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
> > > > dependencies (SUSPEND || CPU_IDLE)
> > > >
> > > > So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
> > > > CPU_IDLE is selected.
> > > >
> > > > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> > > > ---
> > > > arch/arm/Kconfig | 2 +-
> > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index
> > > > 9d580d0..fe3d969 100644
> > > > --- a/arch/arm/Kconfig
> > > > +++ b/arch/arm/Kconfig
> > > > @@ -1417,7 +1417,7 @@ config BL_SWITCHER
> > > > bool "big.LITTLE switcher support"
> > > > depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
> > > > select ARM_CPU_SUSPEND
> > > > - select CPU_PM
> > > > + select CPU_PM if (SUSPEND || CPU_IDLE)
> > >
> > > NAK. You just broke the code by doing this. CPU_PM is a requirement
> > > here. The dependencies for CPU_PM is lacking.
> >
OK, got it. Even though compilation worked, but as you mentioned by doing
this way
bL_switcher functionality may broke.
> > Is there any real technical reason that CPU_PM depends on SUSPEND ||
> > CPU_IDLE ? If not, those dependencies should be killed.
>
> Those dependencies look artificial to me.
>
For me also it looks like these dependencies are artificial.
As far as I can see CONFIG_CPU_PM compiles following two files
1: kernel/cpu_pm.c - I can't see any dependency of SUSPEND or CPU_IDLE in
this file.
2: arch/mips/kernel/pm.c: A quick look does not show any dependency of
SUSPEND or
CPU_IDLE here too.
So for me it looks like it is OK to kill these dependencies of CPU_PM.
Still safer side I am CCing this to author of these files for confirmation.
Thanks,
Pankaj Dubey
>
> Nicolas
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
@ 2014-11-14 6:10 ` Pankaj Dubey
0 siblings, 0 replies; 12+ messages in thread
From: Pankaj Dubey @ 2014-11-14 6:10 UTC (permalink / raw)
To: linux-arm-kernel
+CC: Colin Cross, James Hogan
On Thursday, November 13, 2014 11:30 PM, Nicolas Pitre wrote:
> To: Russell King - ARM Linux
> Cc: Pankaj Dubey; linux-arm-kernel at lists.infradead.org; linux-
> kernel at vger.kernel.org
> Subject: Re: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
>
> On Thu, 13 Nov 2014, Russell King - ARM Linux wrote:
>
> > On Thu, Nov 13, 2014 at 12:44:22PM -0500, Nicolas Pitre wrote:
> > > On Thu, 13 Nov 2014, Pankaj Dubey wrote:
> > >
> > > > If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
> > > > we are getting following config warning.
> > > >
> > > > warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
> > > > dependencies (SUSPEND || CPU_IDLE)
> > > >
> > > > So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
> > > > CPU_IDLE is selected.
> > > >
> > > > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> > > > ---
> > > > arch/arm/Kconfig | 2 +-
> > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index
> > > > 9d580d0..fe3d969 100644
> > > > --- a/arch/arm/Kconfig
> > > > +++ b/arch/arm/Kconfig
> > > > @@ -1417,7 +1417,7 @@ config BL_SWITCHER
> > > > bool "big.LITTLE switcher support"
> > > > depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
> > > > select ARM_CPU_SUSPEND
> > > > - select CPU_PM
> > > > + select CPU_PM if (SUSPEND || CPU_IDLE)
> > >
> > > NAK. You just broke the code by doing this. CPU_PM is a requirement
> > > here. The dependencies for CPU_PM is lacking.
> >
OK, got it. Even though compilation worked, but as you mentioned by doing
this way
bL_switcher functionality may broke.
> > Is there any real technical reason that CPU_PM depends on SUSPEND ||
> > CPU_IDLE ? If not, those dependencies should be killed.
>
> Those dependencies look artificial to me.
>
For me also it looks like these dependencies are artificial.
As far as I can see CONFIG_CPU_PM compiles following two files
1: kernel/cpu_pm.c - I can't see any dependency of SUSPEND or CPU_IDLE in
this file.
2: arch/mips/kernel/pm.c: A quick look does not show any dependency of
SUSPEND or
CPU_IDLE here too.
So for me it looks like it is OK to kill these dependencies of CPU_PM.
Still safer side I am CCing this to author of these files for confirmation.
Thanks,
Pankaj Dubey
>
> Nicolas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
2014-11-14 6:10 ` Pankaj Dubey
@ 2014-11-14 22:06 ` Colin Cross
-1 siblings, 0 replies; 12+ messages in thread
From: Colin Cross @ 2014-11-14 22:06 UTC (permalink / raw)
To: Pankaj Dubey
Cc: Nicolas Pitre, Russell King - ARM Linux, linux-arm-kernel, lkml,
james.hogan
On Thu, Nov 13, 2014 at 10:10 PM, Pankaj Dubey <pankaj.dubey@samsung.com> wrote:
> +CC: Colin Cross, James Hogan
>
> On Thursday, November 13, 2014 11:30 PM, Nicolas Pitre wrote:
>> To: Russell King - ARM Linux
>> Cc: Pankaj Dubey; linux-arm-kernel@lists.infradead.org; linux-
>> kernel@vger.kernel.org
>> Subject: Re: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
>>
>> On Thu, 13 Nov 2014, Russell King - ARM Linux wrote:
>>
>> > On Thu, Nov 13, 2014 at 12:44:22PM -0500, Nicolas Pitre wrote:
>> > > On Thu, 13 Nov 2014, Pankaj Dubey wrote:
>> > >
>> > > > If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
>> > > > we are getting following config warning.
>> > > >
>> > > > warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
>> > > > dependencies (SUSPEND || CPU_IDLE)
>> > > >
>> > > > So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
>> > > > CPU_IDLE is selected.
>> > > >
>> > > > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
>> > > > ---
>> > > > arch/arm/Kconfig | 2 +-
>> > > > 1 file changed, 1 insertion(+), 1 deletion(-)
>> > > >
>> > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index
>> > > > 9d580d0..fe3d969 100644
>> > > > --- a/arch/arm/Kconfig
>> > > > +++ b/arch/arm/Kconfig
>> > > > @@ -1417,7 +1417,7 @@ config BL_SWITCHER
>> > > > bool "big.LITTLE switcher support"
>> > > > depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
>> > > > select ARM_CPU_SUSPEND
>> > > > - select CPU_PM
>> > > > + select CPU_PM if (SUSPEND || CPU_IDLE)
>> > >
>> > > NAK. You just broke the code by doing this. CPU_PM is a requirement
>> > > here. The dependencies for CPU_PM is lacking.
>> >
>
> OK, got it. Even though compilation worked, but as you mentioned by doing
> this way
> bL_switcher functionality may broke.
>
>> > Is there any real technical reason that CPU_PM depends on SUSPEND ||
>> > CPU_IDLE ? If not, those dependencies should be killed.
>>
>> Those dependencies look artificial to me.
>>
>
> For me also it looks like these dependencies are artificial.
> As far as I can see CONFIG_CPU_PM compiles following two files
> 1: kernel/cpu_pm.c - I can't see any dependency of SUSPEND or CPU_IDLE in
> this file.
> 2: arch/mips/kernel/pm.c: A quick look does not show any dependency of
> SUSPEND or
> CPU_IDLE here too.
>
> So for me it looks like it is OK to kill these dependencies of CPU_PM.
> Still safer side I am CCing this to author of these files for confirmation.
>
> Thanks,
> Pankaj Dubey
>>
>> Nicolas
>
I agree, the dependencies in kernel/power/Kconfig should be removed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
@ 2014-11-14 22:06 ` Colin Cross
0 siblings, 0 replies; 12+ messages in thread
From: Colin Cross @ 2014-11-14 22:06 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 13, 2014 at 10:10 PM, Pankaj Dubey <pankaj.dubey@samsung.com> wrote:
> +CC: Colin Cross, James Hogan
>
> On Thursday, November 13, 2014 11:30 PM, Nicolas Pitre wrote:
>> To: Russell King - ARM Linux
>> Cc: Pankaj Dubey; linux-arm-kernel at lists.infradead.org; linux-
>> kernel at vger.kernel.org
>> Subject: Re: [PATCH] ARM: b.L: fix unmet dependency for CPU_PM
>>
>> On Thu, 13 Nov 2014, Russell King - ARM Linux wrote:
>>
>> > On Thu, Nov 13, 2014 at 12:44:22PM -0500, Nicolas Pitre wrote:
>> > > On Thu, 13 Nov 2014, Pankaj Dubey wrote:
>> > >
>> > > > If BL_SWITCHER is enabled but SUSPEND and CPU_IDLE is not enabled
>> > > > we are getting following config warning.
>> > > >
>> > > > warning: (BL_SWITCHER) selects CPU_PM which has unmet direct
>> > > > dependencies (SUSPEND || CPU_IDLE)
>> > > >
>> > > > So BL_SWITCHER should enable CPU_PM only if either of SUSPEND or
>> > > > CPU_IDLE is selected.
>> > > >
>> > > > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
>> > > > ---
>> > > > arch/arm/Kconfig | 2 +-
>> > > > 1 file changed, 1 insertion(+), 1 deletion(-)
>> > > >
>> > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index
>> > > > 9d580d0..fe3d969 100644
>> > > > --- a/arch/arm/Kconfig
>> > > > +++ b/arch/arm/Kconfig
>> > > > @@ -1417,7 +1417,7 @@ config BL_SWITCHER
>> > > > bool "big.LITTLE switcher support"
>> > > > depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
>> > > > select ARM_CPU_SUSPEND
>> > > > - select CPU_PM
>> > > > + select CPU_PM if (SUSPEND || CPU_IDLE)
>> > >
>> > > NAK. You just broke the code by doing this. CPU_PM is a requirement
>> > > here. The dependencies for CPU_PM is lacking.
>> >
>
> OK, got it. Even though compilation worked, but as you mentioned by doing
> this way
> bL_switcher functionality may broke.
>
>> > Is there any real technical reason that CPU_PM depends on SUSPEND ||
>> > CPU_IDLE ? If not, those dependencies should be killed.
>>
>> Those dependencies look artificial to me.
>>
>
> For me also it looks like these dependencies are artificial.
> As far as I can see CONFIG_CPU_PM compiles following two files
> 1: kernel/cpu_pm.c - I can't see any dependency of SUSPEND or CPU_IDLE in
> this file.
> 2: arch/mips/kernel/pm.c: A quick look does not show any dependency of
> SUSPEND or
> CPU_IDLE here too.
>
> So for me it looks like it is OK to kill these dependencies of CPU_PM.
> Still safer side I am CCing this to author of these files for confirmation.
>
> Thanks,
> Pankaj Dubey
>>
>> Nicolas
>
I agree, the dependencies in kernel/power/Kconfig should be removed.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-11-14 22:07 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-13 5:38 [PATCH] ARM: b.L: fix unmet dependency for CPU_PM Pankaj Dubey
2014-11-13 5:38 ` Pankaj Dubey
2014-11-13 17:44 ` Nicolas Pitre
2014-11-13 17:44 ` Nicolas Pitre
2014-11-13 17:48 ` Russell King - ARM Linux
2014-11-13 17:48 ` Russell King - ARM Linux
2014-11-13 18:00 ` Nicolas Pitre
2014-11-13 18:00 ` Nicolas Pitre
2014-11-14 6:10 ` Pankaj Dubey
2014-11-14 6:10 ` Pankaj Dubey
2014-11-14 22:06 ` Colin Cross
2014-11-14 22:06 ` Colin Cross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.