Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig
Subsystems (2)
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
Quoted 19 lines · Dave Gerlach
Hello,
I am seeing the following error when building v4.2-rc1 for arm withmulti_v7_defconfigwithCONFIG_SMP=n:LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.oGEN .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 toqcom_scm_cpu_power_down' drivers/built-in.o: In functionqcom_cpuidle_init':
:(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
make: *** [vmlinux] Error 1
Quoted 8 lines
It appears the calling functions in
drivers/soc/qcom/spm.cget included byCONFIG_QCOM_PMwhich is part ofmulti_v7_defconfigbut the missing functions fromdrivers/firmware/qcom_scm.conly get included byCONFIG_QCOM_SCMif SMP is selected. I am not sure if the correct approach is to removeCONFIG_QCOM_PMfrommulti_v7_defconfigor to remove 'if SMP' fromCONFIG_QCOM_SCM, or something else entirely. Thoughts?
CONFIG_QCOM_PM should select CONFIG_QCOM_SCM unconditionally.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 29 lines · Stephen Boyd
Quoted 19 lines · Dave Gerlach
Hello,
I am seeing the following error when building v4.2-rc1 for arm withmulti_v7_defconfigwithCONFIG_SMP=n:LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.oGEN .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 toqcom_scm_cpu_power_down' drivers/built-in.o: In functionqcom_cpuidle_init':
:(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
make: *** [vmlinux] Error 1Quoted 8 lines
It appears the calling functions in
drivers/soc/qcom/spm.cget included byCONFIG_QCOM_PMwhich is part ofmulti_v7_defconfigbut the missing functions fromdrivers/firmware/qcom_scm.conly get included byCONFIG_QCOM_SCMif SMP is selected. I am not sure if the correct approach is to removeCONFIG_QCOM_PMfrommulti_v7_defconfigor to remove 'if SMP' fromCONFIG_QCOM_SCM, or something else entirely. Thoughts?
Quoted 2 lines
CONFIG_QCOM_PMshould selectCONFIG_QCOM_SCMunconditionally.
Ok thanks, I can send a quick patch.
Regards,
Dave
Quoted 30 lines · Dave Gerlach
Quoted 29 lines · Stephen Boyd
Quoted 27 lines · Dave Gerlach
Hello,
I am seeing the following error when building v4.2-rc1 for arm withmulti_v7_defconfigwithCONFIG_SMP=n:LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.oGEN .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 toqcom_scm_cpu_power_down' drivers/built-in.o: In functionqcom_cpuidle_init':
:(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
make: *** [vmlinux] Error 1It appears the calling functions in
drivers/soc/qcom/spm.cget included byCONFIG_QCOM_PMwhich is part ofmulti_v7_defconfigbut the missing functions fromdrivers/firmware/qcom_scm.conly get included byCONFIG_QCOM_SCMif SMP is selected. I am not sure if the correct approach is to removeCONFIG_QCOM_PMfrommulti_v7_defconfigor to remove 'if SMP' fromCONFIG_QCOM_SCM, or something else entirely. Thoughts?
Quoted 5 lines
Quoted 2 lines
CONFIG_QCOM_PMshould selectCONFIG_QCOM_SCMunconditionally.Ok thanks, I can send a quick patch.
I sent one a few minutes ago, in reply to your mail :)
Quoted 33 lines · Lina Iyer
Quoted 32 lines · Dave Gerlach
Quoted 31 lines · Stephen Boyd
Quoted 29 lines · Dave Gerlach
Hello,
I am seeing the following error when building v4.2-rc1 for arm withmulti_v7_defconfigwithCONFIG_SMP=n:LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.oGEN .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 toqcom_scm_cpu_power_down' drivers/built-in.o: In functionqcom_cpuidle_init':
:(.init.text+0x9508): undefined reference to `qcom_scm_set_warm_boot_addr'
make: *** [vmlinux] Error 1It appears the calling functions in
drivers/soc/qcom/spm.cget included byCONFIG_QCOM_PMwhich is part ofmulti_v7_defconfigbut the missing functions fromdrivers/firmware/qcom_scm.conly get included byCONFIG_QCOM_SCMif SMP is selected. I am not sure if the correct approach is to removeCONFIG_QCOM_PMfrommulti_v7_defconfigor to remove 'if SMP' fromCONFIG_QCOM_SCM, or something else
entirely. Thoughts?
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
CONFIG_QCOM_PMshould selectCONFIG_QCOM_SCMunconditionally.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
PATCH 1/1 drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM
In reply to Dave GerlachEnable QCOM_SCM for QCOM power management driver
--- drivers/soc/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/soc/qcom/Kconfig +1 -0
@@ -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
Signature · 1 line
2.1.4
Re: [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM
Quoted 3 lines · Lina Iyer
Enable
QCOM_SCMfor QCOM power management driverSigned-off-by Lina Iyer <[email protected]>
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM
In reply to Lina IyerQuoted 3 lines · Lina Iyer
Enable
QCOM_SCMfor QCOM power management driverSigned-off-by Lina Iyer <[email protected]>
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Andy Gross
AppliedRe: [PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM
Quoted 6 lines · Andy Gross
Quoted 3 lines · Lina Iyer
Enable
QCOM_SCMfor QCOM power management driverSigned-off-by Lina Iyer <[email protected]>Acked-by Andy Gross <[email protected]>
Applied.
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project