Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"
Subsystems (3)
PATCH 1/1 Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"
This reverts commit 674dc7f61aefea81901c21402946074927e63f1a.
The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!drivers/iommu/Kconfig:14: symbol IOMMU_SUPPORT is selected by DRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbol DRM_PANTHOR depends on PMkernel/power/Kconfig:183: symbol PM is selected by PM_SLEEPkernel/power/Kconfig:117: symbol PM_SLEEP depends on HIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbol HIBERNATE_CALLBACKS is selected by XEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbol XEN_SAVE_RESTORE depends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends on X86_LOCAL_APICarch/x86/Kconfig:1106: symbol X86_LOCAL_APIC depends on X86_UP_APICarch/x86/Kconfig:1081: symbol X86_UP_APIC prompt is visible depending on PCI_MSIdrivers/pci/Kconfig:39: symbol PCI_MSI is selected by AMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbol AMD_IOMMU depends on IOMMU_SUPPORT
For a resolution refer to Documentation/kbuild/kconfig-language.rst subsection "Kconfig recursive dependency limitations"
--- drivers/gpu/drm/panthor/Kconfig | 1 - drivers/gpu/drm/panthor/panthor_device.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/panthor/Kconfig +0 -1
@@ -6,7 +6,6 @@ config DRM_PANTHOR depends on ARM || ARM64 || COMPILE_TEST depends on !GENERIC_ATOMIC64 # for IOMMU_IO_PGTABLE_LPAE depends on MMU - depends on PM select DEVFREQ_GOV_SIMPLE_ONDEMAND select DRM_EXEC select DRM_GEM_SHMEM_HELPER
drivers/gpu/drm/panthor/panthor_device.c +2 -0
@@ -402,6 +402,7 @@ int panthor_device_mmap_io(struct panthor_device *ptdev, struct vm_area_struct *return 0 ; } +#ifdef CONFIG_PM int panthor_device_resume (struct device *dev) {struct panthor_device *ptdev =dev_get_drvdata (dev);
@@ -546,3 +547,4 @@ int panthor_device_suspend(struct device *dev)mutex_unlock (&ptdev->pm.mmio_lock); return ret; } +#endif
Signature · 1 line
2.39.2
Quoted 21 lines · On Mon, 11 Mar 2024 13:16:19 +0200 Jani Nikula <[email protected]> wrote:
This reverts commit
674dc7f61aefea81901c21402946074927e63f1a.The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!
drivers/iommu/Kconfig:14: symbolIOMMU_SUPPORTis selected byDRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbolDRM_PANTHORdepends on PMkernel/power/Kconfig:183: symbol PM is selected byPM_SLEEPkernel/power/Kconfig:117: symbolPM_SLEEPdepends onHIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbolHIBERNATE_CALLBACKSis selected byXEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbolXEN_SAVE_RESTOREdepends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends onX86_LOCAL_APICarch/x86/Kconfig:1106: symbolX86_LOCAL_APICdepends onX86_UP_APICarch/x86/Kconfig:1081: symbolX86_UP_APICprompt is visible depending onPCI_MSIdrivers/pci/Kconfig:39: symbolPCI_MSIis selected byAMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbolAMD_IOMMUdepends onIOMMU_SUPPORT
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"
Quoted 5 lines
Fixes 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue")Cc Boris Brezillon <[email protected]>Cc Liviu Dudau <[email protected]>Cc Steven Price <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 34 lines
--- drivers/gpu/drm/panthor/Kconfig | 1 - drivers/gpu/drm/panthor/panthor_device.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/panthor/Kconfig +0
-1@@ -6,7 +6,6 @@ config DRM_PANTHOR depends on ARM || ARM64 || COMPILE_TEST depends on !GENERIC_ATOMIC64 # for IOMMU_IO_PGTABLE_LPAE depends on MMU - depends on PM select DEVFREQ_GOV_SIMPLE_ONDEMAND select DRM_EXEC select DRM_GEM_SHMEM_HELPERdrivers/gpu/drm/panthor/panthor_device.c +2
-0@@ -402,6 +402,7 @@ int panthor_device_mmap_io(struct panthor_device *ptdev, struct vm_area_struct *return 0 ; } +#ifdef CONFIG_PM int panthor_device_resume (struct device *dev) {struct panthor_device *ptdev =dev_get_drvdata (dev);@@ -546,3 +547,4 @@ int panthor_device_suspend(struct device *dev)mutex_unlock (&ptdev->pm.mmio_lock); return ret; } +#endif
Quoted 24 lines · Boris Brezillon
Quoted 21 lines · On Mon, 11 Mar 2024 13:16:19 +0200 Jani Nikula <[email protected]> wrote:
This reverts commit
674dc7f61aefea81901c21402946074927e63f1a.The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!
drivers/iommu/Kconfig:14: symbolIOMMU_SUPPORTis selected byDRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbolDRM_PANTHORdepends on PMkernel/power/Kconfig:183: symbol PM is selected byPM_SLEEPkernel/power/Kconfig:117: symbolPM_SLEEPdepends onHIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbolHIBERNATE_CALLBACKSis selected byXEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbolXEN_SAVE_RESTOREdepends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends onX86_LOCAL_APICarch/x86/Kconfig:1106: symbolX86_LOCAL_APICdepends onX86_UP_APICarch/x86/Kconfig:1081: symbolX86_UP_APICprompt is visible depending onPCI_MSIdrivers/pci/Kconfig:39: symbolPCI_MSIis selected byAMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbolAMD_IOMMUdepends onIOMMU_SUPPORT
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"
Quoted 7 lines
Quoted 5 lines
Fixes 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue")Cc Boris Brezillon <[email protected]>Cc Liviu Dudau <[email protected]>Cc Steven Price <[email protected]>Signed-off-by Jani Nikula <[email protected]>Acked-by Boris Brezillon <[email protected]>
Your suggestion select -> depends on IOMMU_SUPPORT seems to also work, at least for me. Want to send a patch for that instead of me merging the revert?
BR,
Jani.
Quoted 36 lines
Quoted 35 lines
--- drivers/gpu/drm/panthor/Kconfig | 1 - drivers/gpu/drm/panthor/panthor_device.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/panthor/Kconfig +0
-1@@ -6,7 +6,6 @@ config DRM_PANTHOR depends on ARM || ARM64 || COMPILE_TEST depends on !GENERIC_ATOMIC64 # for IOMMU_IO_PGTABLE_LPAE depends on MMU - depends on PM select DEVFREQ_GOV_SIMPLE_ONDEMAND select DRM_EXEC select DRM_GEM_SHMEM_HELPERdrivers/gpu/drm/panthor/panthor_device.c +2
-0@@ -402,6 +402,7 @@ int panthor_device_mmap_io(struct panthor_device *ptdev, struct vm_area_struct *return 0 ; } +#ifdef CONFIG_PM int panthor_device_resume (struct device *dev) {struct panthor_device *ptdev =dev_get_drvdata (dev);@@ -546,3 +547,4 @@ int panthor_device_suspend(struct device *dev)mutex_unlock (&ptdev->pm.mmio_lock); return ret; } +#endif
Signature · 1 line
Jani Nikula, Intel
Boris Brezillon
maintainerQuoted 31 lines · On Mon, 11 Mar 2024 13:51:46 +0200 Jani Nikula <[email protected]> wrote:
Quoted 30 lines · Boris Brezillon
Quoted 26 lines · On Mon, 11 Mar 2024 13:16:19 +0200 Jani Nikula <[email protected]> wrote:
This reverts commit
674dc7f61aefea81901c21402946074927e63f1a.The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!
drivers/iommu/Kconfig:14: symbolIOMMU_SUPPORTis selected byDRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbolDRM_PANTHORdepends on PMkernel/power/Kconfig:183: symbol PM is selected byPM_SLEEPkernel/power/Kconfig:117: symbolPM_SLEEPdepends onHIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbolHIBERNATE_CALLBACKSis selected byXEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbolXEN_SAVE_RESTOREdepends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends onX86_LOCAL_APICarch/x86/Kconfig:1106: symbolX86_LOCAL_APICdepends onX86_UP_APICarch/x86/Kconfig:1081: symbolX86_UP_APICprompt is visible depending onPCI_MSIdrivers/pci/Kconfig:39: symbolPCI_MSIis selected byAMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbolAMD_IOMMUdepends onIOMMU_SUPPORT
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"Fixes 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue")Cc Boris Brezillon <[email protected]>Cc Liviu Dudau <[email protected]>Cc Steven Price <[email protected]>Signed-off-by Jani Nikula <[email protected]>
Quoted 5 lines
Quoted 1 line
Acked-by Boris Brezillon <[email protected]>Your suggestion select -> depends on
IOMMU_SUPPORTseems to also work, at least for me. Want to send a patch for that instead of me merging the revert?
I replied on the other thread :-). I think we're better off reverting the faulty commit, so we can discuss how to fix the original issue properly without blocking the build.
Thanks;
Boris
Quoted 36 lines · Boris Brezillon
Quoted 33 lines · On Mon, 11 Mar 2024 13:51:46 +0200 Jani Nikula <[email protected]> wrote:
Quoted 31 lines · Boris Brezillon
Quoted 21 lines · On Mon, 11 Mar 2024 13:16:19 +0200 Jani Nikula <[email protected]> wrote:
This reverts commit
674dc7f61aefea81901c21402946074927e63f1a.The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!
drivers/iommu/Kconfig:14: symbolIOMMU_SUPPORTis selected byDRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbolDRM_PANTHORdepends on PMkernel/power/Kconfig:183: symbol PM is selected byPM_SLEEPkernel/power/Kconfig:117: symbolPM_SLEEPdepends onHIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbolHIBERNATE_CALLBACKSis selected byXEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbolXEN_SAVE_RESTOREdepends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends onX86_LOCAL_APICarch/x86/Kconfig:1106: symbolX86_LOCAL_APICdepends onX86_UP_APICarch/x86/Kconfig:1081: symbolX86_UP_APICprompt is visible depending onPCI_MSIdrivers/pci/Kconfig:39: symbolPCI_MSIis selected byAMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbolAMD_IOMMUdepends onIOMMU_SUPPORT
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"Quoted 5 lines
Fixes 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue")Cc Boris Brezillon <[email protected]>Cc Liviu Dudau <[email protected]>Cc Steven Price <[email protected]>Signed-off-by Jani Nikula <[email protected]>Acked-by Boris Brezillon <[email protected]>
Quoted 7 lines
Quoted 3 lines
Your suggestion select -> depends on
IOMMU_SUPPORTseems to also work, at least for me. Want to send a patch for that instead of me merging the revert?I replied on the other thread :-). I think we're better off reverting the faulty commit, so we can discuss how to fix the original issue properly without blocking the build.
Thanks, pushed to drm-misc-next.
BR,
Jani.
Signature · 1 line
Jani Nikula, Intel
Liviu Dudau
maintainerQuoted 41 lines · Jani Nikula
Quoted 40 lines · Boris Brezillon
Quoted 36 lines · On Mon, 11 Mar 2024 13:51:46 +0200 Jani Nikula <[email protected]> wrote:
Quoted 24 lines · Boris Brezillon
Quoted 21 lines · On Mon, 11 Mar 2024 13:16:19 +0200 Jani Nikula <[email protected]> wrote:
This reverts commit
674dc7f61aefea81901c21402946074927e63f1a.The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!
drivers/iommu/Kconfig:14: symbolIOMMU_SUPPORTis selected byDRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbolDRM_PANTHORdepends on PMkernel/power/Kconfig:183: symbol PM is selected byPM_SLEEPkernel/power/Kconfig:117: symbolPM_SLEEPdepends onHIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbolHIBERNATE_CALLBACKSis selected byXEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbolXEN_SAVE_RESTOREdepends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends onX86_LOCAL_APICarch/x86/Kconfig:1106: symbolX86_LOCAL_APICdepends onX86_UP_APICarch/x86/Kconfig:1081: symbolX86_UP_APICprompt is visible depending onPCI_MSIdrivers/pci/Kconfig:39: symbolPCI_MSIis selected byAMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbolAMD_IOMMUdepends onIOMMU_SUPPORT
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"Quoted 7 lines
Quoted 5 lines
Fixes 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue")Cc Boris Brezillon <[email protected]>Cc Liviu Dudau <[email protected]>Cc Steven Price <[email protected]>Signed-off-by Jani Nikula <[email protected]>Acked-by Boris Brezillon <[email protected]>Your suggestion select -> depends on
IOMMU_SUPPORTseems to also work, at least for me. Want to send a patch for that instead of me merging the revert?
Quoted 5 lines
Quoted 3 lines
I replied on the other thread :-). I think we're better off reverting the faulty commit, so we can discuss how to fix the original issue properly without blocking the build.
Thanks, pushed to drm-misc-next.
So with this revert we're OK with an undefined symbol if !CONFIG_PM, but we're not happy with a recursive dependency that is only triggered for COMPILE_TEST? I would've thought IOMMU_SUPPORT options is a better one.
Best regards,
Liviu
Quoted 7 lines
BR,
Jani.Signature · 1 line
Jani Nikula, Intel
Signature · 8 lines
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯Quoted 46 lines · Liviu Dudau
Quoted 45 lines · Jani Nikula
Quoted 43 lines · Boris Brezillon
Quoted 31 lines · On Mon, 11 Mar 2024 13:51:46 +0200 Jani Nikula <[email protected]> wrote:
Quoted 30 lines · Boris Brezillon
Quoted 26 lines · On Mon, 11 Mar 2024 13:16:19 +0200 Jani Nikula <[email protected]> wrote:
This reverts commit
674dc7f61aefea81901c21402946074927e63f1a.The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!
drivers/iommu/Kconfig:14: symbolIOMMU_SUPPORTis selected byDRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbolDRM_PANTHORdepends on PMkernel/power/Kconfig:183: symbol PM is selected byPM_SLEEPkernel/power/Kconfig:117: symbolPM_SLEEPdepends onHIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbolHIBERNATE_CALLBACKSis selected byXEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbolXEN_SAVE_RESTOREdepends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends onX86_LOCAL_APICarch/x86/Kconfig:1106: symbolX86_LOCAL_APICdepends onX86_UP_APICarch/x86/Kconfig:1081: symbolX86_UP_APICprompt is visible depending onPCI_MSIdrivers/pci/Kconfig:39: symbolPCI_MSIis selected byAMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbolAMD_IOMMUdepends onIOMMU_SUPPORT
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"Fixes 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue")Cc Boris Brezillon <[email protected]>Cc Liviu Dudau <[email protected]>Cc Steven Price <[email protected]>Signed-off-by Jani Nikula <[email protected]>Quoted 5 lines
Quoted 1 line
Acked-by Boris Brezillon <[email protected]>Your suggestion select -> depends on
IOMMU_SUPPORTseems to also work, at least for me. Want to send a patch for that instead of me merging the revert?I replied on the other thread :-). I think we're better off reverting the faulty commit, so we can discuss how to fix the original issue properly without blocking the build.
Quoted 5 lines
Quoted 1 line
Thanks, pushed to drm-misc-next.
So with this revert we're OK with an undefined symbol if !CONFIG_PM, but we're not happy with a recursive dependency that is only triggered for
COMPILE_TEST? I would've thoughtIOMMU_SUPPORToptions is a better one.
It's a real config.
# CONFIG_COMPILE_TEST is not set
BR,
Jani.
Quoted 11 lines
Best regards,
LiviuQuoted 7 lines
BR,
Jani.Signature · 1 line
Jani Nikula, Intel
Signature · 1 line
Jani Nikula, Intel
Liviu Dudau
maintainerQuoted 49 lines · Jani Nikula
Quoted 48 lines · Liviu Dudau
Quoted 46 lines · Jani Nikula
Quoted 36 lines · Boris Brezillon
Quoted 33 lines · On Mon, 11 Mar 2024 13:51:46 +0200 Jani Nikula <[email protected]> wrote:
Quoted 31 lines · Boris Brezillon
Quoted 21 lines · On Mon, 11 Mar 2024 13:16:19 +0200 Jani Nikula <[email protected]> wrote:
This reverts commit
674dc7f61aefea81901c21402946074927e63f1a.The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!
drivers/iommu/Kconfig:14: symbolIOMMU_SUPPORTis selected byDRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbolDRM_PANTHORdepends on PMkernel/power/Kconfig:183: symbol PM is selected byPM_SLEEPkernel/power/Kconfig:117: symbolPM_SLEEPdepends onHIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbolHIBERNATE_CALLBACKSis selected byXEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbolXEN_SAVE_RESTOREdepends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends onX86_LOCAL_APICarch/x86/Kconfig:1106: symbolX86_LOCAL_APICdepends onX86_UP_APICarch/x86/Kconfig:1081: symbolX86_UP_APICprompt is visible depending onPCI_MSIdrivers/pci/Kconfig:39: symbolPCI_MSIis selected byAMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbolAMD_IOMMUdepends onIOMMU_SUPPORT
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"Quoted 5 lines
Fixes 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue")Cc Boris Brezillon <[email protected]>Cc Liviu Dudau <[email protected]>Cc Steven Price <[email protected]>Signed-off-by Jani Nikula <[email protected]>Acked-by Boris Brezillon <[email protected]>Quoted 7 lines
Quoted 3 lines
Your suggestion select -> depends on
IOMMU_SUPPORTseems to also work, at least for me. Want to send a patch for that instead of me merging the revert?I replied on the other thread :-). I think we're better off reverting the faulty commit, so we can discuss how to fix the original issue properly without blocking the build.
Thanks, pushed to drm-misc-next.
Quoted 7 lines
Quoted 3 lines
So with this revert we're OK with an undefined symbol if !CONFIG_PM, but we're not happy with a recursive dependency that is only triggered for
COMPILE_TEST? I would've thoughtIOMMU_SUPPORToptions is a better one.It's a real config.
#
CONFIG_COMPILE_TESTis not set
So I can select CONFIG_ARM64 and CONFIG_X86_LOCAL_APIC at the same time? DRM_PANTHOR depends on ARM || ARM64 and X86_LOCAL_APIC depends on X86_64. At some moment the recursive dependency detector should've stopped as there are no common dependencies between DRM_PANTHOR and X86_LOCAL_APIC and going further just triggers false positives. I'm curious how you've created your config now.
Best regards,
Liviu
Quoted 18 lines
BR,
Jani.Quoted 11 lines
Best regards,
LiviuQuoted 7 lines
BR,
Jani.Signature · 1 line
Jani Nikula, IntelSignature · 1 line
Jani Nikula, Intel
Signature · 8 lines
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯Quoted 6 lines · Liviu Dudau
Quoted 5 lines · Jani Nikula
Quoted 3 lines · Liviu Dudau
So with this revert we're OK with an undefined symbol if !CONFIG_PM, but we're not happy with a recursive dependency that is only triggered for
COMPILE_TEST? I would've thoughtIOMMU_SUPPORToptions is a better one.
Quoted 8 lines
Quoted 3 lines
It's a real config.
#
CONFIG_COMPILE_TESTis not setSo I can select
CONFIG_ARM64andCONFIG_X86_LOCAL_APICat the same time?DRM_PANTHORdepends on ARM || ARM64 andX86_LOCAL_APICdepends onX86_64. At some moment the recursive dependency detector should've stopped as there are no common dependencies betweenDRM_PANTHORandX86_LOCAL_APICand going further just triggers false positives. I'm curious how you've created your config now.
The thing is, I don't have *any* of the dependencies ARM || ARM64 || COMPILE_TEST set in the config that triggered this. I don't have DRM_PANTHOR set. But make olddefconfig detects a circular dependency nonetheless.
It's possible the issue is in kconfig. I don't know. But not being able to even dodge the warning makes it a show stopper. I wouldn't even know what to change in the config.
BR,
Jani.
Signature · 1 line
Jani Nikula, Intel
Liviu Dudau
maintainerQuoted 16 lines · Jani Nikula
Quoted 6 lines · Liviu Dudau
Quoted 5 lines · Jani Nikula
Quoted 3 lines · Liviu Dudau
So with this revert we're OK with an undefined symbol if !CONFIG_PM, but we're not happy with a recursive dependency that is only triggered for
COMPILE_TEST? I would've thoughtIOMMU_SUPPORToptions is a better one.Quoted 8 lines
Quoted 3 lines
It's a real config.
#
CONFIG_COMPILE_TESTis not setSo I can select
CONFIG_ARM64andCONFIG_X86_LOCAL_APICat the same time?DRM_PANTHORdepends on ARM || ARM64 andX86_LOCAL_APICdepends onX86_64. At some moment the recursive dependency detector should've stopped as there are no common dependencies betweenDRM_PANTHORandX86_LOCAL_APICand going further just triggers false positives. I'm curious how you've created your config now.
Quoted 8 lines
The thing is, I don't have *any* of the dependencies ARM || ARM64 ||
COMPILE_TESTset in the config that triggered this. I don't haveDRM_PANTHORset. But make olddefconfig detects a circular dependency nonetheless.It's possible the issue is in kconfig. I don't know. But not being able to even dodge the warning makes it a show stopper. I wouldn't even know what to change in the config.
Understood, thanks for clarifying the condition under which you've discovered the issue. I assumed (appologies!) that you were generating or using a crafted .config for testing new drivers.
Reverting is then a better option for olddefconfig case, thanks for the patch and the quick merge.
Best regards,
Liviu
Quoted 8 lines
BR,
Jani.Signature · 1 line
Jani Nikula, Intel
Signature · 8 lines
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯Boris Brezillon
maintainerQuoted 46 lines · On Mon, 11 Mar 2024 14:41:42 +0000 Liviu Dudau <[email protected]> wrote:
Quoted 45 lines · Jani Nikula
Quoted 43 lines · Boris Brezillon
Quoted 31 lines · On Mon, 11 Mar 2024 13:51:46 +0200 Jani Nikula <[email protected]> wrote:
Quoted 30 lines · Boris Brezillon
Quoted 26 lines · On Mon, 11 Mar 2024 13:16:19 +0200 Jani Nikula <[email protected]> wrote:
This reverts commit
674dc7f61aefea81901c21402946074927e63f1a.The commit causes a recursive dependency in kconfig:
drivers/iommu/Kconfig:14:error: recursive dependency detected!
drivers/iommu/Kconfig:14: symbolIOMMU_SUPPORTis selected byDRM_PANTHORdrivers/gpu/drm/panthor/Kconfig:3: symbolDRM_PANTHORdepends on PMkernel/power/Kconfig:183: symbol PM is selected byPM_SLEEPkernel/power/Kconfig:117: symbolPM_SLEEPdepends onHIBERNATE_CALLBACKSkernel/power/Kconfig:35: symbolHIBERNATE_CALLBACKSis selected byXEN_SAVE_RESTOREarch/x86/xen/Kconfig:67: symbolXEN_SAVE_RESTOREdepends on XENarch/x86/xen/Kconfig:6: symbol XEN depends on PARAVIRTarch/x86/Kconfig:781: symbol PARAVIRT is selected by HYPERVdrivers/hv/Kconfig:5: symbol HYPERV depends onX86_LOCAL_APICarch/x86/Kconfig:1106: symbolX86_LOCAL_APICdepends onX86_UP_APICarch/x86/Kconfig:1081: symbolX86_UP_APICprompt is visible depending onPCI_MSIdrivers/pci/Kconfig:39: symbolPCI_MSIis selected byAMD_IOMMUdrivers/iommu/amd/Kconfig:3: symbolAMD_IOMMUdepends onIOMMU_SUPPORT
For a resolution refer toDocumentation/kbuild/kconfig-language.rstsubsection "Kconfigrecursive dependency limitations"Fixes 674dc7f61aef ("drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue")Cc Boris Brezillon <[email protected]>Cc Liviu Dudau <[email protected]>Cc Steven Price <[email protected]>Signed-off-by Jani Nikula <[email protected]>Quoted 5 lines
Quoted 1 line
Acked-by Boris Brezillon <[email protected]>Your suggestion select -> depends on
IOMMU_SUPPORTseems to also work, at least for me. Want to send a patch for that instead of me merging the revert?I replied on the other thread :-). I think we're better off reverting the faulty commit, so we can discuss how to fix the original issue properly without blocking the build.
Quoted 5 lines
Quoted 1 line
Thanks, pushed to drm-misc-next.
So with this revert we're OK with an undefined symbol if !CONFIG_PM, but we're not happy with a recursive dependency that is only triggered for
COMPILE_TEST? I would've thoughtIOMMU_SUPPORToptions is a better one.
No worries, we have plenty of time to fix this. Just didn't want to rush a fix before discussing it with you and Steve.