linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig
@ 2015-07-10 19:31 Dave Gerlach
  2015-07-10 19:36 ` Stephen Boyd
  2015-07-10 20:18 ` [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM Lina Iyer
  0 siblings, 2 replies; 9+ messages in thread
From: Dave Gerlach @ 2015-07-10 19:31 UTC (permalink / raw)
  To: linux-arm-msm, Linux ARM Kernel List, linux-kernel
  Cc: Lina Iyer, Kumar Gala, sboyd

Hello,
I am seeing the following error when building v4.2-rc1 for arm with
multi_v7_defconfig with CONFIG_SMP=n:

 LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
drivers/built-in.o: In function `qcom_pm_collapse':
:(.text+0xaf44c): undefined reference to `qcom_scm_cpu_power_down'
drivers/built-in.o: In function `qcom_cpuidle_init':
:(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
make: *** [vmlinux] Error 1


It appears the calling functions in drivers/soc/qcom/spm.c get included by
CONFIG_QCOM_PM which is part of multi_v7_defconfig but the missing functions
from drivers/firmware/qcom_scm.c only get included by CONFIG_QCOM_SCM if SMP is
selected. I am not sure if the correct approach is to remove CONFIG_QCOM_PM from
multi_v7_defconfig or to remove 'if SMP' from CONFIG_QCOM_SCM, or something else
entirely. Thoughts?

Regards,
Dave

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig
  2015-07-10 19:31 Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig Dave Gerlach
@ 2015-07-10 19:36 ` Stephen Boyd
  2015-07-10 20:29   ` Dave Gerlach
  2015-07-10 20:18 ` [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM Lina Iyer
  1 sibling, 1 reply; 9+ messages in thread
From: Stephen Boyd @ 2015-07-10 19:36 UTC (permalink / raw)
  To: Dave Gerlach, linux-arm-msm, Linux ARM Kernel List, linux-kernel
  Cc: Lina Iyer, Kumar Gala

On 07/10/2015 12:31 PM, Dave Gerlach wrote:
> Hello,
> I am seeing the following error when building v4.2-rc1 for arm with
> multi_v7_defconfig with CONFIG_SMP=n:
>
>  LINK    vmlinux
>   LD      vmlinux.o
>   MODPOST vmlinux.o
>   GEN     .version
>   CHK     include/generated/compile.h
>   UPD     include/generated/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
> drivers/built-in.o: In function `qcom_pm_collapse':
> :(.text+0xaf44c): undefined reference to `qcom_scm_cpu_power_down'
> drivers/built-in.o: In function `qcom_cpuidle_init':
> :(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
> make: *** [vmlinux] Error 1
>
>
> It appears the calling functions in drivers/soc/qcom/spm.c get included by
> CONFIG_QCOM_PM which is part of multi_v7_defconfig but the missing functions
> from drivers/firmware/qcom_scm.c only get included by CONFIG_QCOM_SCM if SMP is
> selected. I am not sure if the correct approach is to remove CONFIG_QCOM_PM from
> multi_v7_defconfig or to remove 'if SMP' from CONFIG_QCOM_SCM, or something else
> entirely. Thoughts?
>
>

CONFIG_QCOM_PM should select CONFIG_QCOM_SCM unconditionally.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM
  2015-07-10 19:31 Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig Dave Gerlach
  2015-07-10 19:36 ` Stephen Boyd
@ 2015-07-10 20:18 ` Lina Iyer
  2015-07-10 21:09   ` Stephen Boyd
  2015-07-14 21:54   ` Andy Gross
  1 sibling, 2 replies; 9+ messages in thread
From: Lina Iyer @ 2015-07-10 20:18 UTC (permalink / raw)
  To: linux-arm-msm, linux-arm-kernel, linux-kernel, sboyd; +Cc: galak, Lina Iyer

Enable QCOM_SCM for QCOM power management driver

Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
---
 drivers/soc/qcom/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index 5eea374..e9a2c19 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -13,6 +13,7 @@ config QCOM_GSBI
 config QCOM_PM
 	bool "Qualcomm Power Management"
 	depends on ARCH_QCOM && !ARM64
+	select QCOM_SCM
 	help
 	  QCOM Platform specific power driver to manage cores and L2 low power
 	  modes. It interface with various system drivers to put the cores in
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig
  2015-07-10 19:36 ` Stephen Boyd
@ 2015-07-10 20:29   ` Dave Gerlach
  2015-07-10 20:39     ` Lina Iyer
  0 siblings, 1 reply; 9+ messages in thread
From: Dave Gerlach @ 2015-07-10 20:29 UTC (permalink / raw)
  To: Stephen Boyd, linux-arm-msm, Linux ARM Kernel List, linux-kernel
  Cc: Lina Iyer, Kumar Gala

On 07/10/2015 02:36 PM, Stephen Boyd wrote:
> On 07/10/2015 12:31 PM, Dave Gerlach wrote:
>> Hello,
>> I am seeing the following error when building v4.2-rc1 for arm with
>> multi_v7_defconfig with CONFIG_SMP=n:
>>
>>  LINK    vmlinux
>>   LD      vmlinux.o
>>   MODPOST vmlinux.o
>>   GEN     .version
>>   CHK     include/generated/compile.h
>>   UPD     include/generated/compile.h
>>   CC      init/version.o
>>   LD      init/built-in.o
>> drivers/built-in.o: In function `qcom_pm_collapse':
>> :(.text+0xaf44c): undefined reference to `qcom_scm_cpu_power_down'
>> drivers/built-in.o: In function `qcom_cpuidle_init':
>> :(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
>> make: *** [vmlinux] Error 1
>>
>>
>> It appears the calling functions in drivers/soc/qcom/spm.c get included by
>> CONFIG_QCOM_PM which is part of multi_v7_defconfig but the missing functions
>> from drivers/firmware/qcom_scm.c only get included by CONFIG_QCOM_SCM if SMP is
>> selected. I am not sure if the correct approach is to remove CONFIG_QCOM_PM from
>> multi_v7_defconfig or to remove 'if SMP' from CONFIG_QCOM_SCM, or something else
>> entirely. Thoughts?
>>
>>
> 
> CONFIG_QCOM_PM should select CONFIG_QCOM_SCM unconditionally.
> 

Ok thanks, I can send a quick patch.

Regards,
Dave


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig
  2015-07-10 20:29   ` Dave Gerlach
@ 2015-07-10 20:39     ` Lina Iyer
  2015-07-10 20:42       ` Dave Gerlach
  0 siblings, 1 reply; 9+ messages in thread
From: Lina Iyer @ 2015-07-10 20:39 UTC (permalink / raw)
  To: Dave Gerlach
  Cc: Stephen Boyd, linux-arm-msm, Linux ARM Kernel List, linux-kernel,
	Kumar Gala

On Fri, Jul 10 2015 at 14:29 -0600, Dave Gerlach wrote:
>On 07/10/2015 02:36 PM, Stephen Boyd wrote:
>> On 07/10/2015 12:31 PM, Dave Gerlach wrote:
>>> Hello,
>>> I am seeing the following error when building v4.2-rc1 for arm with
>>> multi_v7_defconfig with CONFIG_SMP=n:
>>>
>>>  LINK    vmlinux
>>>   LD      vmlinux.o
>>>   MODPOST vmlinux.o
>>>   GEN     .version
>>>   CHK     include/generated/compile.h
>>>   UPD     include/generated/compile.h
>>>   CC      init/version.o
>>>   LD      init/built-in.o
>>> drivers/built-in.o: In function `qcom_pm_collapse':
>>> :(.text+0xaf44c): undefined reference to `qcom_scm_cpu_power_down'
>>> drivers/built-in.o: In function `qcom_cpuidle_init':
>>> :(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
>>> make: *** [vmlinux] Error 1
>>>
>>>
>>> It appears the calling functions in drivers/soc/qcom/spm.c get included by
>>> CONFIG_QCOM_PM which is part of multi_v7_defconfig but the missing functions
>>> from drivers/firmware/qcom_scm.c only get included by CONFIG_QCOM_SCM if SMP is
>>> selected. I am not sure if the correct approach is to remove CONFIG_QCOM_PM from
>>> multi_v7_defconfig or to remove 'if SMP' from CONFIG_QCOM_SCM, or something else
>>> entirely. Thoughts?
>>>
>>>
>>
>> CONFIG_QCOM_PM should select CONFIG_QCOM_SCM unconditionally.
>>
>
>Ok thanks, I can send a quick patch.
>
I sent one a few minutes ago, in reply to your mail :)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig
  2015-07-10 20:39     ` Lina Iyer
@ 2015-07-10 20:42       ` Dave Gerlach
  0 siblings, 0 replies; 9+ messages in thread
From: Dave Gerlach @ 2015-07-10 20:42 UTC (permalink / raw)
  To: Lina Iyer
  Cc: Stephen Boyd, linux-arm-msm, Linux ARM Kernel List, linux-kernel,
	Kumar Gala

On 07/10/2015 03:39 PM, Lina Iyer wrote:
> On Fri, Jul 10 2015 at 14:29 -0600, Dave Gerlach wrote:
>> On 07/10/2015 02:36 PM, Stephen Boyd wrote:
>>> On 07/10/2015 12:31 PM, Dave Gerlach wrote:
>>>> Hello,
>>>> I am seeing the following error when building v4.2-rc1 for arm with
>>>> multi_v7_defconfig with CONFIG_SMP=n:
>>>>
>>>>  LINK    vmlinux
>>>>   LD      vmlinux.o
>>>>   MODPOST vmlinux.o
>>>>   GEN     .version
>>>>   CHK     include/generated/compile.h
>>>>   UPD     include/generated/compile.h
>>>>   CC      init/version.o
>>>>   LD      init/built-in.o
>>>> drivers/built-in.o: In function `qcom_pm_collapse':
>>>> :(.text+0xaf44c): undefined reference to `qcom_scm_cpu_power_down'
>>>> drivers/built-in.o: In function `qcom_cpuidle_init':
>>>> :(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
>>>> make: *** [vmlinux] Error 1
>>>>
>>>>
>>>> It appears the calling functions in drivers/soc/qcom/spm.c get included by
>>>> CONFIG_QCOM_PM which is part of multi_v7_defconfig but the missing functions
>>>> from drivers/firmware/qcom_scm.c only get included by CONFIG_QCOM_SCM if SMP is
>>>> selected. I am not sure if the correct approach is to remove CONFIG_QCOM_PM
>>>> from
>>>> multi_v7_defconfig or to remove 'if SMP' from CONFIG_QCOM_SCM, or something
>>>> else
>>>> entirely. Thoughts?
>>>>
>>>>
>>>
>>> CONFIG_QCOM_PM should select CONFIG_QCOM_SCM unconditionally.
>>>
>>
>> Ok thanks, I can send a quick patch.
>>
> I sent one a few minutes ago, in reply to your mail :)

Thank you! Does indeed solve the problem.

Regards,
Dave

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM
  2015-07-10 20:18 ` [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM Lina Iyer
@ 2015-07-10 21:09   ` Stephen Boyd
  2015-07-14 21:54   ` Andy Gross
  1 sibling, 0 replies; 9+ messages in thread
From: Stephen Boyd @ 2015-07-10 21:09 UTC (permalink / raw)
  To: Lina Iyer, linux-arm-msm, linux-arm-kernel, linux-kernel; +Cc: galak

On 07/10/2015 01:18 PM, Lina Iyer wrote:
> Enable QCOM_SCM for QCOM power management driver
>
> Signed-off-by: Lina Iyer <lina.iyer@linaro.org>

Acked-by: Stephen Boyd <sboyd@codeaurora.org>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM
  2015-07-10 20:18 ` [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM Lina Iyer
  2015-07-10 21:09   ` Stephen Boyd
@ 2015-07-14 21:54   ` Andy Gross
  2015-07-23 20:07     ` Andy Gross
  1 sibling, 1 reply; 9+ messages in thread
From: Andy Gross @ 2015-07-14 21:54 UTC (permalink / raw)
  To: Lina Iyer; +Cc: linux-arm-msm, linux-arm-kernel, linux-kernel, sboyd, galak

On Fri, Jul 10, 2015 at 02:18:00PM -0600, Lina Iyer wrote:
> Enable QCOM_SCM for QCOM power management driver
> 
> Signed-off-by: Lina Iyer <lina.iyer@linaro.org>

Acked-by: Andy Gross <agross@codeaurora.org>

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM
  2015-07-14 21:54   ` Andy Gross
@ 2015-07-23 20:07     ` Andy Gross
  0 siblings, 0 replies; 9+ messages in thread
From: Andy Gross @ 2015-07-23 20:07 UTC (permalink / raw)
  To: Lina Iyer; +Cc: linux-arm-msm, linux-arm-kernel, linux-kernel, sboyd, galak

On Tue, Jul 14, 2015 at 04:54:12PM -0500, Andy Gross wrote:
> On Fri, Jul 10, 2015 at 02:18:00PM -0600, Lina Iyer wrote:
> > Enable QCOM_SCM for QCOM power management driver
> > 
> > Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
> 
> Acked-by: Andy Gross <agross@codeaurora.org>

Applied.

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-23 20:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-10 19:31 Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig Dave Gerlach
2015-07-10 19:36 ` Stephen Boyd
2015-07-10 20:29   ` Dave Gerlach
2015-07-10 20:39     ` Lina Iyer
2015-07-10 20:42       ` Dave Gerlach
2015-07-10 20:18 ` [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM Lina Iyer
2015-07-10 21:09   ` Stephen Boyd
2015-07-14 21:54   ` Andy Gross
2015-07-23 20:07     ` Andy Gross

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).