diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-04 13:58:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-04 13:58:12 -0400 |
commit | e5a594643a3444d39c1467040e638bf08a4e0db8 (patch) | |
tree | e65c94ef60a51559db467055232ce1021ec263e1 /arch/sh/Kconfig | |
parent | f956d08a56732c61a4d44e8034eeeedfc06fe721 (diff) | |
parent | 2550bbfd495227945e17ed1fa1c05bce4753b86b (diff) |
Merge tag 'dma-mapping-4.18' of git://git.infradead.org/users/hch/dma-mapping
Pull dma-mapping updates from Christoph Hellwig:
- replace the force_dma flag with a dma_configure bus method. (Nipun
Gupta, although one patch is Ñ–ncorrectly attributed to me due to a
git rebase bug)
- use GFP_DMA32 more agressively in dma-direct. (Takashi Iwai)
- remove PCI_DMA_BUS_IS_PHYS and rely on the dma-mapping API to do the
right thing for bounce buffering.
- move dma-debug initialization to common code, and apply a few
cleanups to the dma-debug code.
- cleanup the Kconfig mess around swiotlb selection
- swiotlb comment fixup (Yisheng Xie)
- a trivial swiotlb fix. (Dan Carpenter)
- support swiotlb on RISC-V. (based on a patch from Palmer Dabbelt)
- add a new generic dma-noncoherent dma_map_ops implementation and use
it for arc, c6x and nds32.
- improve scatterlist validity checking in dma-debug. (Robin Murphy)
- add a struct device quirk to limit the dma-mask to 32-bit due to
bridge/system issues, and switch x86 to use it instead of a local
hack for VIA bridges.
- handle devices without a dma_mask more gracefully in the dma-direct
code.
* tag 'dma-mapping-4.18' of git://git.infradead.org/users/hch/dma-mapping: (48 commits)
dma-direct: don't crash on device without dma_mask
nds32: use generic dma_noncoherent_ops
nds32: implement the unmap_sg DMA operation
nds32: consolidate DMA cache maintainance routines
x86/pci-dma: switch the VIA 32-bit DMA quirk to use the struct device flag
x86/pci-dma: remove the explicit nodac and allowdac option
x86/pci-dma: remove the experimental forcesac boot option
Documentation/x86: remove a stray reference to pci-nommu.c
core, dma-direct: add a flag 32-bit dma limits
dma-mapping: remove unused gfp_t parameter to arch_dma_alloc_attrs
dma-debug: check scatterlist segments
c6x: use generic dma_noncoherent_ops
arc: use generic dma_noncoherent_ops
arc: fix arc_dma_{map,unmap}_page
arc: fix arc_dma_sync_sg_for_{cpu,device}
arc: simplify arc_dma_sync_single_for_{cpu,device}
dma-mapping: provide a generic dma-noncoherent implementation
dma-mapping: simplify Kconfig dependencies
riscv: add swiotlb support
riscv: only enable ZONE_DMA32 for 64-bit
...
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 1851eaeee131..a97538b607a4 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -14,7 +14,6 @@ config SUPERH | |||
14 | select HAVE_OPROFILE | 14 | select HAVE_OPROFILE |
15 | select HAVE_GENERIC_DMA_COHERENT | 15 | select HAVE_GENERIC_DMA_COHERENT |
16 | select HAVE_ARCH_TRACEHOOK | 16 | select HAVE_ARCH_TRACEHOOK |
17 | select HAVE_DMA_API_DEBUG | ||
18 | select HAVE_PERF_EVENTS | 17 | select HAVE_PERF_EVENTS |
19 | select HAVE_DEBUG_BUGVERBOSE | 18 | select HAVE_DEBUG_BUGVERBOSE |
20 | select ARCH_HAVE_CUSTOM_GPIO_H | 19 | select ARCH_HAVE_CUSTOM_GPIO_H |
@@ -51,6 +50,9 @@ config SUPERH | |||
51 | select HAVE_ARCH_AUDITSYSCALL | 50 | select HAVE_ARCH_AUDITSYSCALL |
52 | select HAVE_FUTEX_CMPXCHG if FUTEX | 51 | select HAVE_FUTEX_CMPXCHG if FUTEX |
53 | select HAVE_NMI | 52 | select HAVE_NMI |
53 | select NEED_DMA_MAP_STATE | ||
54 | select NEED_SG_DMA_LENGTH | ||
55 | |||
54 | help | 56 | help |
55 | The SuperH is a RISC processor targeted for use in embedded systems | 57 | The SuperH is a RISC processor targeted for use in embedded systems |
56 | and consumer electronics; it was also used in the Sega Dreamcast | 58 | and consumer electronics; it was also used in the Sega Dreamcast |
@@ -161,12 +163,6 @@ config DMA_COHERENT | |||
161 | config DMA_NONCOHERENT | 163 | config DMA_NONCOHERENT |
162 | def_bool !DMA_COHERENT | 164 | def_bool !DMA_COHERENT |
163 | 165 | ||
164 | config NEED_DMA_MAP_STATE | ||
165 | def_bool DMA_NONCOHERENT | ||
166 | |||
167 | config NEED_SG_DMA_LENGTH | ||
168 | def_bool y | ||
169 | |||
170 | config PGTABLE_LEVELS | 166 | config PGTABLE_LEVELS |
171 | default 3 if X2TLB | 167 | default 3 if X2TLB |
172 | default 2 | 168 | default 2 |