From 011eb4c8178644b373fe50a7b583942a036a3429 Mon Sep 17 00:00:00 2001 From: Chen Pei Date: Thu, 4 Jul 2024 20:22:32 +0800 Subject: [PATCH] arch:rsicv:select ARCH_HAS_DMA_WRITE_COMBINE c910 support bufferable, enable DMA_WRITE_COMBINE, let dma_alloc_* memory can be map WRITE_COMBINE. otherwise dma_alloc_* memory be strong order prot to user space. Signed-off-by: Huaming Signed-off-by: Chen Pei --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 70a4726846cb9..ba5d73bfc5c9d 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -291,6 +291,7 @@ config RISCV_DMA_NONCOHERENT select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_DEVICE select DMA_BOUNCE_UNALIGNED_KMALLOC if SWIOTLB + select ARCH_HAS_DMA_WRITE_COMBINE config RISCV_NONSTANDARD_CACHE_OPS bool