config IOMMU_IO_PGTABLE_LPAE
        bool "ARMv7/v8 Long Descriptor Format"
        select IOMMU_IO_PGTABLE
-       depends on ARM || ARM64 || (COMPILE_TEST && !GENERIC_ATOMIC64)
+       depends on ARM || ARM64 || COMPILE_TEST
+       depends on !GENERIC_ATOMIC64    # for cpmxchg64()
        help
          Enable support for the ARM long descriptor pagetable format.
          This allocator supports 4K/2M/1G, 16K/32M and 64K/512M page
 config IOMMU_IO_PGTABLE_DART
        bool "Apple DART Formats"
        select IOMMU_IO_PGTABLE
-       depends on ARM64 || (COMPILE_TEST && !GENERIC_ATOMIC64)
+       depends on ARM64 || COMPILE_TEST
+       depends on !GENERIC_ATOMIC64    # for cpmxchg64()
        help
          Enable support for the Apple DART pagetable formats. These include
          the t8020 and t6000/t8110 DART formats used in Apple M1/M2 family
 
 config IPMMU_VMSA
        bool "Renesas VMSA-compatible IPMMU"
-       depends on ARCH_RENESAS || (COMPILE_TEST && !GENERIC_ATOMIC64)
+       depends on ARCH_RENESAS || COMPILE_TEST
+       depends on !GENERIC_ATOMIC64    # for IOMMU_IO_PGTABLE_LPAE
        select IOMMU_API
        select IOMMU_IO_PGTABLE_LPAE
        select ARM_DMA_USE_IOMMU
 
 config APPLE_DART
        tristate "Apple DART IOMMU Support"
-       depends on ARCH_APPLE || (COMPILE_TEST && !GENERIC_ATOMIC64)
+       depends on ARCH_APPLE || COMPILE_TEST
+       depends on !GENERIC_ATOMIC64    # for IOMMU_IO_PGTABLE_DART
        select IOMMU_API
        select IOMMU_IO_PGTABLE_DART
        default ARCH_APPLE
 # ARM IOMMU support
 config ARM_SMMU
        tristate "ARM Ltd. System MMU (SMMU) Support"
-       depends on ARM64 || ARM || (COMPILE_TEST && !GENERIC_ATOMIC64)
+       depends on ARM64 || ARM || COMPILE_TEST
+       depends on !GENERIC_ATOMIC64    # for IOMMU_IO_PGTABLE_LPAE
        select IOMMU_API
        select IOMMU_IO_PGTABLE_LPAE
        select ARM_DMA_USE_IOMMU if ARM
 config QCOM_IOMMU
        # Note: iommu drivers cannot (yet?) be built as modules
        bool "Qualcomm IOMMU Support"
-       depends on ARCH_QCOM || (COMPILE_TEST && !GENERIC_ATOMIC64)
+       depends on ARCH_QCOM || COMPILE_TEST
+       depends on !GENERIC_ATOMIC64    # for IOMMU_IO_PGTABLE_LPAE
        select QCOM_SCM
        select IOMMU_API
        select IOMMU_IO_PGTABLE_LPAE