提交 86596f0a 编写于 作者: C Christoph Hellwig

scatterlist: move the NEED_SG_DMA_LENGTH config symbol to lib/Kconfig

This way we have one central definition of it, and user can select it as
needed.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NAnshuman Khandual <khandual@linux.vnet.ibm.com>
上级 a4ce5a48
...@@ -10,6 +10,7 @@ config ALPHA ...@@ -10,6 +10,7 @@ config ALPHA
select HAVE_OPROFILE select HAVE_OPROFILE
select HAVE_PCSPKR_PLATFORM select HAVE_PCSPKR_PLATFORM
select HAVE_PERF_EVENTS select HAVE_PERF_EVENTS
select NEED_SG_DMA_LENGTH
select VIRT_TO_BUS select VIRT_TO_BUS
select GENERIC_IRQ_PROBE select GENERIC_IRQ_PROBE
select AUTO_IRQ_AFFINITY if SMP select AUTO_IRQ_AFFINITY if SMP
...@@ -70,9 +71,6 @@ config ARCH_DMA_ADDR_T_64BIT ...@@ -70,9 +71,6 @@ config ARCH_DMA_ADDR_T_64BIT
config NEED_DMA_MAP_STATE config NEED_DMA_MAP_STATE
def_bool y def_bool y
config NEED_SG_DMA_LENGTH
def_bool y
config GENERIC_ISA_DMA config GENERIC_ISA_DMA
bool bool
default y default y
......
...@@ -118,9 +118,6 @@ config ARM_HAS_SG_CHAIN ...@@ -118,9 +118,6 @@ config ARM_HAS_SG_CHAIN
select ARCH_HAS_SG_CHAIN select ARCH_HAS_SG_CHAIN
bool bool
config NEED_SG_DMA_LENGTH
bool
config ARM_DMA_USE_IOMMU config ARM_DMA_USE_IOMMU
bool bool
select ARM_HAS_SG_CHAIN select ARM_HAS_SG_CHAIN
......
...@@ -132,6 +132,7 @@ config ARM64 ...@@ -132,6 +132,7 @@ config ARM64
select IRQ_FORCED_THREADING select IRQ_FORCED_THREADING
select MODULES_USE_ELF_RELA select MODULES_USE_ELF_RELA
select MULTI_IRQ_HANDLER select MULTI_IRQ_HANDLER
select NEED_SG_DMA_LENGTH
select NO_BOOTMEM select NO_BOOTMEM
select OF select OF
select OF_EARLY_FLATTREE select OF_EARLY_FLATTREE
...@@ -242,9 +243,6 @@ config ARCH_DMA_ADDR_T_64BIT ...@@ -242,9 +243,6 @@ config ARCH_DMA_ADDR_T_64BIT
config NEED_DMA_MAP_STATE config NEED_DMA_MAP_STATE
def_bool y def_bool y
config NEED_SG_DMA_LENGTH
def_bool y
config SMP config SMP
def_bool y def_bool y
......
...@@ -19,6 +19,7 @@ config HEXAGON ...@@ -19,6 +19,7 @@ config HEXAGON
select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW
select HAVE_ARCH_KGDB select HAVE_ARCH_KGDB
select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRACEHOOK
select NEED_SG_DMA_LENGTH
select NO_IOPORT_MAP select NO_IOPORT_MAP
select GENERIC_IOMAP select GENERIC_IOMAP
select GENERIC_SMP_IDLE_THREAD select GENERIC_SMP_IDLE_THREAD
...@@ -63,9 +64,6 @@ config GENERIC_CSUM ...@@ -63,9 +64,6 @@ config GENERIC_CSUM
config GENERIC_IRQ_PROBE config GENERIC_IRQ_PROBE
def_bool y def_bool y
config NEED_SG_DMA_LENGTH
def_bool y
config RWSEM_GENERIC_SPINLOCK config RWSEM_GENERIC_SPINLOCK
def_bool n def_bool n
......
...@@ -53,6 +53,7 @@ config IA64 ...@@ -53,6 +53,7 @@ config IA64
select MODULES_USE_ELF_RELA select MODULES_USE_ELF_RELA
select ARCH_USE_CMPXCHG_LOCKREF select ARCH_USE_CMPXCHG_LOCKREF
select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_AUDITSYSCALL
select NEED_SG_DMA_LENGTH
default y default y
help help
The Itanium Processor Family is Intel's 64-bit successor to The Itanium Processor Family is Intel's 64-bit successor to
...@@ -83,9 +84,6 @@ config ARCH_DMA_ADDR_T_64BIT ...@@ -83,9 +84,6 @@ config ARCH_DMA_ADDR_T_64BIT
config NEED_DMA_MAP_STATE config NEED_DMA_MAP_STATE
def_bool y def_bool y
config NEED_SG_DMA_LENGTH
def_bool y
config SWIOTLB config SWIOTLB
bool bool
......
...@@ -67,9 +67,6 @@ config CAVIUM_OCTEON_LOCK_L2_MEMCPY ...@@ -67,9 +67,6 @@ config CAVIUM_OCTEON_LOCK_L2_MEMCPY
help help
Lock the kernel's implementation of memcpy() into L2. Lock the kernel's implementation of memcpy() into L2.
config NEED_SG_DMA_LENGTH
bool
config SWIOTLB config SWIOTLB
def_bool y def_bool y
select DMA_DIRECT_OPS select DMA_DIRECT_OPS
......
...@@ -130,9 +130,6 @@ config LOONGSON_UART_BASE ...@@ -130,9 +130,6 @@ config LOONGSON_UART_BASE
default y default y
depends on EARLY_PRINTK || SERIAL_8250 depends on EARLY_PRINTK || SERIAL_8250
config NEED_SG_DMA_LENGTH
bool
config SWIOTLB config SWIOTLB
bool "Soft IOMMU Support for All-Memory DMA" bool "Soft IOMMU Support for All-Memory DMA"
default y default y
......
...@@ -83,7 +83,4 @@ endif ...@@ -83,7 +83,4 @@ endif
config NLM_COMMON config NLM_COMMON
bool bool
config NEED_SG_DMA_LENGTH
bool
endif endif
...@@ -51,6 +51,7 @@ config PARISC ...@@ -51,6 +51,7 @@ config PARISC
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select ARCH_NO_COHERENT_DMA_MMAP select ARCH_NO_COHERENT_DMA_MMAP
select CPU_NO_EFFICIENT_FFS select CPU_NO_EFFICIENT_FFS
select NEED_SG_DMA_LENGTH
help help
The PA-RISC microprocessor is designed by Hewlett-Packard and used The PA-RISC microprocessor is designed by Hewlett-Packard and used
...@@ -114,9 +115,6 @@ config STACKTRACE_SUPPORT ...@@ -114,9 +115,6 @@ config STACKTRACE_SUPPORT
config NEED_DMA_MAP_STATE config NEED_DMA_MAP_STATE
def_bool y def_bool y
config NEED_SG_DMA_LENGTH
def_bool y
config ISA_DMA_API config ISA_DMA_API
bool bool
......
...@@ -226,6 +226,7 @@ config PPC ...@@ -226,6 +226,7 @@ config PPC
select IRQ_DOMAIN select IRQ_DOMAIN
select IRQ_FORCED_THREADING select IRQ_FORCED_THREADING
select MODULES_USE_ELF_RELA select MODULES_USE_ELF_RELA
select NEED_SG_DMA_LENGTH
select NO_BOOTMEM select NO_BOOTMEM
select OF select OF
select OF_EARLY_FLATTREE select OF_EARLY_FLATTREE
...@@ -909,9 +910,6 @@ config ZONE_DMA ...@@ -909,9 +910,6 @@ config ZONE_DMA
config NEED_DMA_MAP_STATE config NEED_DMA_MAP_STATE
def_bool (PPC64 || NOT_COHERENT_CACHE) def_bool (PPC64 || NOT_COHERENT_CACHE)
config NEED_SG_DMA_LENGTH
def_bool y
config GENERIC_ISA_DMA config GENERIC_ISA_DMA
bool bool
depends on ISA_DMA_API depends on ISA_DMA_API
......
...@@ -710,6 +710,7 @@ menuconfig PCI ...@@ -710,6 +710,7 @@ menuconfig PCI
select PCI_MSI select PCI_MSI
select IOMMU_HELPER select IOMMU_HELPER
select IOMMU_SUPPORT select IOMMU_SUPPORT
select NEED_SG_DMA_LENGTH
help help
Enable PCI support. Enable PCI support.
...@@ -734,9 +735,6 @@ config PCI_DOMAINS ...@@ -734,9 +735,6 @@ config PCI_DOMAINS
config HAS_IOMEM config HAS_IOMEM
def_bool PCI def_bool PCI
config NEED_SG_DMA_LENGTH
def_bool PCI
config NEED_DMA_MAP_STATE config NEED_DMA_MAP_STATE
def_bool PCI def_bool PCI
......
...@@ -49,6 +49,8 @@ config SUPERH ...@@ -49,6 +49,8 @@ config SUPERH
select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_AUDITSYSCALL
select HAVE_FUTEX_CMPXCHG if FUTEX select HAVE_FUTEX_CMPXCHG if FUTEX
select HAVE_NMI select HAVE_NMI
select NEED_SG_DMA_LENGTH
help help
The SuperH is a RISC processor targeted for use in embedded systems The SuperH is a RISC processor targeted for use in embedded systems
and consumer electronics; it was also used in the Sega Dreamcast and consumer electronics; it was also used in the Sega Dreamcast
...@@ -162,9 +164,6 @@ config DMA_NONCOHERENT ...@@ -162,9 +164,6 @@ config DMA_NONCOHERENT
config NEED_DMA_MAP_STATE config NEED_DMA_MAP_STATE
def_bool DMA_NONCOHERENT def_bool DMA_NONCOHERENT
config NEED_SG_DMA_LENGTH
def_bool y
config PGTABLE_LEVELS config PGTABLE_LEVELS
default 3 if X2TLB default 3 if X2TLB
default 2 default 2
......
...@@ -43,6 +43,7 @@ config SPARC ...@@ -43,6 +43,7 @@ config SPARC
select ARCH_HAS_SG_CHAIN select ARCH_HAS_SG_CHAIN
select CPU_NO_EFFICIENT_FFS select CPU_NO_EFFICIENT_FFS
select LOCKDEP_SMALL if LOCKDEP select LOCKDEP_SMALL if LOCKDEP
select NEED_SG_DMA_LENGTH
config SPARC32 config SPARC32
def_bool !64BIT def_bool !64BIT
...@@ -145,9 +146,6 @@ config ZONE_DMA ...@@ -145,9 +146,6 @@ config ZONE_DMA
config NEED_DMA_MAP_STATE config NEED_DMA_MAP_STATE
def_bool y def_bool y
config NEED_SG_DMA_LENGTH
def_bool y
config GENERIC_ISA_DMA config GENERIC_ISA_DMA
bool bool
default y if SPARC32 default y if SPARC32
......
...@@ -43,7 +43,4 @@ config CPU_TLB_SINGLE_ENTRY_DISABLE ...@@ -43,7 +43,4 @@ config CPU_TLB_SINGLE_ENTRY_DISABLE
config SWIOTLB config SWIOTLB
def_bool y def_bool y
select DMA_DIRECT_OPS select DMA_DIRECT_OPS
select NEED_SG_DMA_LENGTH
config NEED_SG_DMA_LENGTH
def_bool SWIOTLB
...@@ -183,6 +183,7 @@ config X86 ...@@ -183,6 +183,7 @@ config X86
select HAVE_UNSTABLE_SCHED_CLOCK select HAVE_UNSTABLE_SCHED_CLOCK
select HAVE_USER_RETURN_NOTIFIER select HAVE_USER_RETURN_NOTIFIER
select IRQ_FORCED_THREADING select IRQ_FORCED_THREADING
select NEED_SG_DMA_LENGTH
select PCI_LOCKLESS_CONFIG select PCI_LOCKLESS_CONFIG
select PERF_EVENTS select PERF_EVENTS
select RTC_LIB select RTC_LIB
...@@ -239,9 +240,6 @@ config NEED_DMA_MAP_STATE ...@@ -239,9 +240,6 @@ config NEED_DMA_MAP_STATE
def_bool y def_bool y
depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG || SWIOTLB depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG || SWIOTLB
config NEED_SG_DMA_LENGTH
def_bool y
config GENERIC_ISA_DMA config GENERIC_ISA_DMA
def_bool y def_bool y
depends on ISA_DMA_API depends on ISA_DMA_API
......
...@@ -429,6 +429,9 @@ config SGL_ALLOC ...@@ -429,6 +429,9 @@ config SGL_ALLOC
bool bool
default n default n
config NEED_SG_DMA_LENGTH
bool
config IOMMU_HELPER config IOMMU_HELPER
bool bool
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册