mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
f5ff79fddf
CONFIG_DMA_REMAP is used to build a few helpers around the core vmalloc code, and to use them in case there is a highmem page in dma-direct, and to make dma coherent allocations be able to use non-contiguous pages allocations for DMA allocations in the dma-iommu layer. Right now it needs to be explicitly selected by architectures, and is only done so by architectures that require remapping to deal with devices that are not DMA coherent. Make it unconditional for builds with CONFIG_MMU as it is very little extra code, but makes it much more likely that large DMA allocations succeed on x86. This fixes hot plugging a NVMe thunderbolt SSD for me, which tries to allocate a 1MB buffer that is otherwise hard to obtain due to memory fragmentation on a heavily used laptop. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
13 lines
450 B
Makefile
13 lines
450 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_HAS_DMA) += mapping.o direct.o
|
|
obj-$(CONFIG_DMA_OPS) += ops_helpers.o
|
|
obj-$(CONFIG_DMA_OPS) += dummy.o
|
|
obj-$(CONFIG_DMA_CMA) += contiguous.o
|
|
obj-$(CONFIG_DMA_DECLARE_COHERENT) += coherent.o
|
|
obj-$(CONFIG_DMA_API_DEBUG) += debug.o
|
|
obj-$(CONFIG_SWIOTLB) += swiotlb.o
|
|
obj-$(CONFIG_DMA_COHERENT_POOL) += pool.o
|
|
obj-$(CONFIG_MMU) += remap.o
|
|
obj-$(CONFIG_DMA_MAP_BENCHMARK) += map_benchmark.o
|