Skip to content

Commit 6437a54

Browse files
arndbSteven Price
authored and
Steven Price
committed
drm/panfrost: fix GENERIC_ATOMIC64 dependency
On ARMv5 and earlier, a randconfig build can still run into WARNING: unmet direct dependencies detected for IOMMU_IO_PGTABLE_LPAE Depends on [n]: IOMMU_SUPPORT [=y] && (ARM [=y] || ARM64 || COMPILE_TEST [=y]) && !GENERIC_ATOMIC64 [=y] Selected by [y]: - DRM_PANFROST [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARM [=y] || ARM64 || COMPILE_TEST [=y] && !GENERIC_ATOMIC64 [=y]) && MMU [=y] Rework the dependencies to always require a working cmpxchg64. Fixes: db594ba ("drm/panfrost: depend on !GENERIC_ATOMIC64 when using COMPILE_TEST") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Steven Price <[email protected]> Signed-off-by: Steven Price <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 83a7f8e commit 6437a54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/panfrost/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
config DRM_PANFROST
44
tristate "Panfrost (DRM support for ARM Mali Midgard/Bifrost GPUs)"
55
depends on DRM
6-
depends on ARM || ARM64 || (COMPILE_TEST && !GENERIC_ATOMIC64)
6+
depends on ARM || ARM64 || COMPILE_TEST
7+
depends on !GENERIC_ATOMIC64 # for IOMMU_IO_PGTABLE_LPAE
78
depends on MMU
89
select DRM_SCHED
910
select IOMMU_SUPPORT

0 commit comments

Comments
 (0)