diff options
author | Yajun Deng <yajun.deng@linux.dev> | 2023-05-12 17:42:10 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-07-31 17:54:28 +0200 |
commit | 22e4a348f87c59df2c02f1efb7ba9a56b622c7b8 (patch) | |
tree | 30ce9c2e09b1991ecff13f8554f908636fc647b9 /kernel/dma/Kconfig | |
parent | 3d6f126b15d9fd8435455fffc912d976973a7a09 (diff) | |
download | linux-22e4a348f87c59df2c02f1efb7ba9a56b622c7b8.tar.gz linux-22e4a348f87c59df2c02f1efb7ba9a56b622c7b8.tar.bz2 linux-22e4a348f87c59df2c02f1efb7ba9a56b622c7b8.zip |
dma-contiguous: support per-numa CMA for all architectures
In the commit b7176c261cdb ("dma-contiguous: provide the ability to
reserve per-numa CMA"), Barry adds DMA_PERNUMA_CMA for ARM64.
But this feature is architecture independent, so support per-numa CMA
for all architectures, and enable it by default if NUMA.
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Tested-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/dma/Kconfig')
-rw-r--r-- | kernel/dma/Kconfig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig index 11d077003205..7afde9bc529f 100644 --- a/kernel/dma/Kconfig +++ b/kernel/dma/Kconfig @@ -147,10 +147,10 @@ if DMA_CMA config DMA_PERNUMA_CMA bool "Enable separate DMA Contiguous Memory Area for each NUMA Node" - default NUMA && ARM64 + default NUMA help - Enable this option to get pernuma CMA areas so that devices like - ARM64 SMMU can get local memory by DMA coherent APIs. + Enable this option to get pernuma CMA areas so that NUMA devices + can get local memory by DMA coherent APIs. You can set the size of pernuma CMA by specifying "cma_pernuma=size" on the kernel's command line. |