swiotlb: use depends on for DMA_RESTRICTED_POOL
PATCH 1/1 swiotlb: use depends on for DMA_RESTRICTED_POOL
Use depends on instead of select for DMA_RESTRICTED_POOL; otherwise it will make SWIOTLB user configurable and cause compile errors for some arch (e.g. mips).
--- kernel/dma/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/dma/Kconfig +1 -2
@@ -82,8 +82,7 @@ config SWIOTLB config DMA_RESTRICTED_POOL bool "DMA Restricted Pool" - depends on OF && OF_RESERVED_MEM - select SWIOTLB + depends on OF && OF_RESERVED_MEM && SWIOTLB help This enables support for restricted DMA pools which provide a level of DMA memory protection on systems with limited hardware protection
Signature · 1 line
2.33.0.259.gc128427fd7-goog
Quoted 16 lines · Claire Chang
Use depends on instead of select for
DMA_RESTRICTED_POOL; otherwise it will make SWIOTLB user configurable and cause compile errors for some arch (e.g. mips).Fixes 0b84e4f8b793 ("swiotlb: Add restricted DMA pool initialization")Reported-by Guenter Roeck <[email protected]>Signed-off-by Claire Chang <[email protected]>--- kernel/dma/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)kernel/dma/Kconfig +0
-0
kernel/dma/Kconfig config SWIOTLB · line 88
Quoted 9 lines
kernel/dma/Kconfig +1
-2@@ -82,8 +82,7 @@ config SWIOTLB config DMA_RESTRICTED_POOL bool "DMA Restricted Pool" - depends on OF && OF_RESERVED_MEM - select SWIOTLB + depends on OF && OF_RESERVED_MEM && SWIOTLB help This enables support for restricted DMA pools which provide a level of DMA memory protection on systems with limited hardware protection
Will
Quoted 18 lines · Will Deacon
Quoted 17 lines · Claire Chang
Use depends on instead of select for
DMA_RESTRICTED_POOL; otherwise it will make SWIOTLB user configurable and cause compile errors for some arch (e.g. mips).Fixes 0b84e4f8b793 ("swiotlb: Add restricted DMA pool initialization")Reported-by Guenter Roeck <[email protected]>Signed-off-by Claire Chang <[email protected]>--- kernel/dma/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)kernel/dma/Kconfig +0
-0@@ -82,8 +82,7 @@ config SWIOTLB
Quoted 10 lines
kernel/dma/Kconfig config SWIOTLB · line 88
Quoted 8 lines
kernel/dma/Kconfig +1
-2config DMA_RESTRICTED_POOL bool "DMA Restricted Pool" - depends on OF && OF_RESERVED_MEM - select SWIOTLB + depends on OF && OF_RESERVED_MEM && SWIOTLB help This enables support for restricted DMA pools which provide a level of DMA memory protection on systems with limited hardware protectionAcked-by Will Deacon <[email protected]>
I put it in linux-next and devel/for-linus-5.15.
I will wait a day and see if there are any issues with linux-next and if not will send out a GIT pull.
Thanks!
Quoted 2 lines
Will
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu