Skip to contentSkip to conversation

iommu/io-pgtable-arm: Add built time dependency

PATCH New Jean Delvare 3 participants 3 messages Feb 23, 2015 – Mar 3, 2015 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 iommu/io-pgtable-arm: Add built time dependency

If io-pgtable-arm is an ARM-specific driver then configuration option IOMMU_IO_PGTABLE_LPAE should not be presented to the user by default for non-ARM kernels.

Cc Will Deacon <[email protected]>
Cc Joerg Roedel <[email protected]>

---
Changes since v1:
* Added ARM64 as suggested by Will Deacon.

 drivers/iommu/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/iommu/Kconfig +1 -0
@@ -23,6 +23,7 @@ config IOMMU_IO_PGTABLE
 config IOMMU_IO_PGTABLE_LPAE
 	bool "ARMv7/v8 Long Descriptor Format"
 	select IOMMU_IO_PGTABLE
+	depends on ARM || ARM64 || COMPILE_TEST
 	help
 	  Enable support for the ARM long descriptor pagetable format.
 	  This allocator supports 4K/2M/1G, 16K/32M and 64K/512M page
Signature · 2 lines
Jean Delvare
SUSE L3 Support
#1 lore raw

PATCH v2 1/1 iommu/io-pgtable-arm: Add built time dependency

Quoted 10 lines · Jean Delvare

If io-pgtable-arm is an ARM-specific driver then configuration option IOMMU_IO_PGTABLE_LPAE should not be presented to the user by default for non-ARM kernels.

Cc Will Deacon <[email protected]>
Cc Joerg Roedel <[email protected]>

---
Changes since v1:
* Added ARM64 as suggested by Will Deacon.

Joerg, you may as well pick this on up directly too :)

Cheers,

Will

Quoted 19 lines
 drivers/iommu/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/iommu/Kconfig +1 -0
@@ -23,6 +23,7 @@ config IOMMU_IO_PGTABLE
 config IOMMU_IO_PGTABLE_LPAE
 	bool "ARMv7/v8 Long Descriptor Format"
 	select IOMMU_IO_PGTABLE
+	depends on ARM || ARM64 || COMPILE_TEST
 	help
 	  Enable support for the ARM long descriptor pagetable format.
 	  This allocator supports 4K/2M/1G, 16K/32M and 64K/512M page
Signature · 3 lines
-- 
Jean Delvare
SUSE L3 Support
maintainer Applied
#2 lore raw

PATCH v2 1/1 iommu/io-pgtable-arm: Add built time dependency

In reply to Jean Delvare
Quoted 17 lines · Jean Delvare

If io-pgtable-arm is an ARM-specific driver then configuration option IOMMU_IO_PGTABLE_LPAE should not be presented to the user by default for non-ARM kernels.

Cc Will Deacon <[email protected]>
Cc Joerg Roedel <[email protected]>

---
Changes since v1:
* Added ARM64 as suggested by Will Deacon.

 drivers/iommu/Kconfig |    1 +
 1 file changed, 1 insertion(+)

drivers/iommu/Kconfig config IOMMU_IO_PGTABLE · line 29

Quoted 7 lines
drivers/iommu/Kconfig +1 -0
@@ -23,6 +23,7 @@ config IOMMU_IO_PGTABLE
 config IOMMU_IO_PGTABLE_LPAE
 	bool "ARMv7/v8 Long Descriptor Format"
 	select IOMMU_IO_PGTABLE
+	depends on ARM || ARM64 || COMPILE_TEST
 	help
 	  Enable support for the ARM long descriptor pagetable format.
 	  This allocator supports 4K/2M/1G, 16K/32M and 64K/512M page

Applied, thanks.