diff options
author | Christoph Hellwig <hch@lst.de> | 2018-04-24 09:00:54 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-09 06:58:01 +0200 |
commit | 09230cbc1baba68e0ca1e7c489344ce5d35c6f27 (patch) | |
tree | d125ba685e491df0cfb05660e30ece8a84a10643 /lib/Kconfig | |
parent | mips,unicore32: swiotlb doesn't need sg->dma_length (diff) | |
download | linux-09230cbc1baba68e0ca1e7c489344ce5d35c6f27.tar.xz linux-09230cbc1baba68e0ca1e7c489344ce5d35c6f27.zip |
swiotlb: move the SWIOTLB config symbol to lib/Kconfig
This way we have one central definition of it, and user can select it as
needed. The new option is not user visible, which is the behavior
it had in most architectures, with a few notable exceptions:
- On x86_64 and mips/loongson3 it used to be user selectable, but
defaulted to y. It now is unconditional, which seems like the right
thing for 64-bit architectures without guaranteed availablity of
IOMMUs.
- on powerpc the symbol is user selectable and defaults to n, but
many boards select it. This change assumes no working setup
required a manual selection, but if that turned out to be wrong
we'll have to add another select statement or two for the respective
boards.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 1f12faf03819..1d84e61cccfe 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -451,6 +451,11 @@ config DMA_VIRT_OPS depends on HAS_DMA && (!64BIT || ARCH_DMA_ADDR_T_64BIT) default n +config SWIOTLB + bool + select DMA_DIRECT_OPS + select NEED_DMA_MAP_STATE + config CHECK_SIGNATURE bool |