drm/msm/a6xx: add CONFIG_QCOM_LLCC dependency
PATCH 1/1 drm/msm/a6xx: add CONFIG_QCOM_LLCC dependency
From: Arnd Bergmann <[email protected]>
When LLCC support is in a loadable module, the adreno support cannot be built-in:
aarch64-linux-ld: drivers/gpu/drm/msm/adreno/a6xx_gpu.o: in function `a6xx_gpu_init':
a6xx_gpu.c:(.text+0xe0): undefined reference to `llcc_slice_getd'
a6xx_gpu.c:(.text+0xe0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `llcc_slice_getd'
aarch64-linux-ld: a6xx_gpu.c:(.text+0xec): undefined reference to llcc_slice_getd' a6xx_gpu.c:(.text+0xec): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol llcc_slice_getd'
aarch64-linux-ld: drivers/gpu/drm/msm/adreno/a6xx_gpu.o: in function `a6xx_destroy':
a6xx_gpu.c:(.text+0x274): undefined reference to `llcc_slice_putd'
a6xx_gpu.c:(.text+0x274): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `llcc_slice_putd'
aarch64-linux-ld: a6xx_gpu.c:(.text+0x27c): undefined reference to `llcc_slice_putd'
Add a Kconfig dependency that disallows the broken configuration but allows all working ones.
--- drivers/gpu/drm/msm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/msm/Kconfig +2 -1
@@ -7,6 +7,8 @@ config DRM_MSM depends on IOMMU_SUPPORT depends on OF && COMMON_CLK depends on QCOM_OCMEM || QCOM_OCMEM=n + depends on QCOM_LLCC || QCOM_LLCC=n + depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n select IOMMU_IO_PGTABLE select QCOM_MDT_LOADER if ARCH_QCOM select REGULATOR
@@ -15,7 +17,6 @@ config DRM_MSM select SHMEM select TMPFS select QCOM_SCM if ARCH_QCOM - select QCOM_COMMAND_DB if ARCH_QCOM select WANT_DEV_COREDUMP select SND_SOC_HDMI_CODEC if SND_SOC select SYNC_FILE
Signature · 6 lines
2.29.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
kernel test robot
build botI love your patch! Yet something to improve:
Hi Arnd,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.11-rc1 next-20201223]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/drm-msm-a6xx-add-CONFIG_QCOM_LLCC-dependency/20210103-220704 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3516bd729358a2a9b090c1905bd2a3fa926e24c6 config: i386-randconfig-m021-20210103 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/7d8b8d7954012e210a5e6c77103e52382c6b5503 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Arnd-Bergmann/drm-msm-a6xx-add-CONFIG_QCOM_LLCC-dependency/20210103-220704 git checkout 7d8b8d7954012e210a5e6c77103e52382c6b5503 # save the attached .config to linux build tree make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/Kconfig:74:error: recursive dependency detected!
drivers/gpu/drm/Kconfig:74: symbol DRM_KMS_HELPER is selected by DRM_MSM drivers/gpu/drm/msm/Kconfig:3: symbol DRM_MSM depends on QCOM_COMMAND_DB drivers/soc/qcom/Kconfig:19: symbol QCOM_COMMAND_DB depends on OF_RESERVED_MEM drivers/of/Kconfig:80: symbol OF_RESERVED_MEM default is visible depending on DMA_CMA kernel/dma/Kconfig:109: symbol DMA_CMA is selected by FB_HYPERV drivers/video/fbdev/Kconfig:2182: symbol FB_HYPERV depends on FB drivers/video/fbdev/Kconfig:12: symbol FB is selected by DRM_KMS_FB_HELPER drivers/gpu/drm/Kconfig:80: symbol DRM_KMS_FB_HELPER depends on DRM_KMS_HELPER For a resolution refer to Documentation/kbuild/kconfig-language.rst subsection "Kconfig recursive dependency limitations"
vim +74 drivers/gpu/drm/Kconfig
6fcefd56f5060ca Dave Airlie 2009-09-08 @74 config DRM_KMS_HELPER 13a8195b148615b Dave Airlie 2009-09-07 75 tristate 13a8195b148615b Dave Airlie 2009-09-07 76 depends on DRM 92b6f89f6b85f43 Daniel Vetter 2013-10-08 77 help 92b6f89f6b85f43 Daniel Vetter 2013-10-08 78 CRTC helpers for KMS drivers.
92b6f89f6b85f43 Daniel Vetter 2013-10-08 79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
Quoted 29 lines · kernel test robot
Hi Arnd,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.11-rc1 next-20201223]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/drm-msm-a6xx-add-CONFIG_QCOM_LLCC-dependency/20210103-220704 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3516bd729358a2a9b090c1905bd2a3fa926e24c6 config: i386-randconfig-m021-20210103 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/7d8b8d7954012e210a5e6c77103e52382c6b5503 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Arnd-Bergmann/drm-msm-a6xx-add-CONFIG_QCOM_LLCC-dependency/20210103-220704 git checkout 7d8b8d7954012e210a5e6c77103e52382c6b5503 # save the attached .config to linux build tree make W=1 ARCH=i386If you fix the issue, kindly add following tag as appropriate
Reported-by kernel test robot <[email protected]>All errors (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/Kconfig:74:error: recursive dependency detected!
Quoted 10 lines
drivers/gpu/drm/Kconfig:74: symbolDRM_KMS_HELPERis selected byDRM_MSMdrivers/gpu/drm/msm/Kconfig:3: symbolDRM_MSMdepends onQCOM_COMMAND_DBdrivers/soc/qcom/Kconfig:19: symbolQCOM_COMMAND_DBdepends onOF_RESERVED_MEMdrivers/of/Kconfig:80: symbolOF_RESERVED_MEMdefault is visible depending onDMA_CMAkernel/dma/Kconfig:109: symbolDMA_CMAis selected byFB_HYPERVdrivers/video/fbdev/Kconfig:2182: symbolFB_HYPERVdepends on FBdrivers/video/fbdev/Kconfig:12: symbol FB is selected byDRM_KMS_FB_HELPERdrivers/gpu/drm/Kconfig:80: symbolDRM_KMS_FB_HELPERdepends onDRM_KMS_HELPERFor a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"
Ah, this depends on another patch of mine that I have in my randconfig tree, to replace the 'select FB' in DRM_KMS_FB_HELPER with 'depends on FB'.
Should I resend that patch, or would someone suggest a different fix for the CONFIG_QCOM_LLCC dependency issue?
Arnd
Sai Prakash Ranjan
Reviewed-byHi Arnd,
Quoted 53 lines · Arnd Bergmann
Quoted 35 lines · kernel test robot
Hi Arnd,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.11-rc1 next-20201223]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]url:
https://github.com/0day-ci/linux/commits/Arnd-Bergmann/drm-msm-a6xx-add-CONFIG_QCOM_LLCC-dependency/20210103-220704
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git3516bd729358a2a9b090c1905bd2a3fa926e24c6
config: i386-randconfig-m021-20210103 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):#https://github.com/0day-ci/linux/commit/7d8b8d7954012e210a5e6c77103e52382c6b5503
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Arnd-Bergmann/drm-msm-a6xx-add-CONFIG_QCOM_LLCC-dependency/20210103-220704git checkout 7d8b8d7954012e210a5e6c77103e52382c6b5503 # save the attached .config to linux build tree make W=1 ARCH=i386If you fix the issue, kindly add following tag as appropriate
Reported-by kernel test robot <[email protected]>All errors (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/Kconfig:74:error: recursive dependency detected!
Quoted 16 lines
drivers/gpu/drm/Kconfig:74: symbolDRM_KMS_HELPERis selected byDRM_MSM
drivers/gpu/drm/msm/Kconfig:3: symbolDRM_MSMdepends onQCOM_COMMAND_DB
drivers/soc/qcom/Kconfig:19: symbolQCOM_COMMAND_DBdepends onOF_RESERVED_MEM
drivers/of/Kconfig:80: symbolOF_RESERVED_MEMdefault is visible
depending onDMA_CMA
kernel/dma/Kconfig:109: symbolDMA_CMAis selected byFB_HYPERVdrivers/video/fbdev/Kconfig:2182: symbolFB_HYPERVdepends on FBdrivers/video/fbdev/Kconfig:12: symbol FB is selected byDRM_KMS_FB_HELPER
drivers/gpu/drm/Kconfig:80: symbolDRM_KMS_FB_HELPERdepends onDRM_KMS_HELPER
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"
Quoted 8 lines
Ah, this depends on another patch of mine that I have in my randconfig tree, to
replace the 'select FB' inDRM_KMS_FB_HELPERwith 'depends on FB'.Should I resend that patch, or would someone suggest a different fix for
theCONFIG_QCOM_LLCCdependency issue?
Thanks, your patch looks good to me unless Rob has some other idea. Once the recursive
dependency thing is sorted,
Thanks,
Sai
Signature · 3 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
kernel test robot
build botI love your patch! Yet something to improve:
Hi Arnd,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.11-rc1 next-20201223]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/drm-msm-a6xx-add-CONFIG_QCOM_LLCC-dependency/20210103-220704 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3516bd729358a2a9b090c1905bd2a3fa926e24c6 config: x86_64-rhel (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/7d8b8d7954012e210a5e6c77103e52382c6b5503 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Arnd-Bergmann/drm-msm-a6xx-add-CONFIG_QCOM_LLCC-dependency/20210103-220704 git checkout 7d8b8d7954012e210a5e6c77103e52382c6b5503 # save the attached .config to linux build tree make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
>> Error: kernelrelease not valid - run 'make prepare' to update it -- >> drivers/gpu/drm/Kconfig:74:error: recursive dependency detected!
drivers/gpu/drm/Kconfig:74: symbol DRM_KMS_HELPER is selected by DRM_MSM drivers/gpu/drm/msm/Kconfig:3: symbol DRM_MSM depends on QCOM_COMMAND_DB drivers/soc/qcom/Kconfig:19: symbol QCOM_COMMAND_DB depends on OF_RESERVED_MEM drivers/of/Kconfig:80: symbol OF_RESERVED_MEM default is visible depending on DMA_CMA kernel/dma/Kconfig:109: symbol DMA_CMA is selected by FB_HYPERV drivers/video/fbdev/Kconfig:2182: symbol FB_HYPERV depends on FB drivers/video/fbdev/Kconfig:12: symbol FB is selected by DRM_KMS_FB_HELPER drivers/gpu/drm/Kconfig:80: symbol DRM_KMS_FB_HELPER depends on DRM_KMS_HELPER
For a resolution refer to Documentation/kbuild/kconfig-language.rst
subsection "Kconfig recursive dependency limitations"
--
Makefile arch drivers include scripts source usr [scripts/kconfig/Makefile:71: syncconfig] Error 1 Makefile arch drivers include scripts source usr [Makefile:602: syncconfig] Error 2 Makefile arch drivers include scripts source usr [Makefile:710: include/config/auto.conf.cmd] Error 2 Failed to remake makefile 'include/config/auto.conf.cmd'.
Failed to remake makefile 'include/config/auto.conf'.
Makefile arch drivers include scripts source usr [arch/x86/Makefile:278: checkbin] Error 1
>> Error: kernelrelease not valid - run 'make prepare' to update it
Target 'prepare' not remade because of errors.
make: Makefile arch drivers include scripts source usr [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org