All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] riscv: add ARCH_DMA_MINALIGN support
@ 2021-08-07 14:55 ` Xianting Tian
  0 siblings, 0 replies; 16+ messages in thread
From: Xianting Tian @ 2021-08-07 14:55 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou; +Cc: linux-riscv, linux-kernel, Xianting Tian

Introduce ARCH_DMA_MINALIGN to riscv arch.

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
---
 arch/riscv/include/asm/cache.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/riscv/include/asm/cache.h b/arch/riscv/include/asm/cache.h
index 9b58b1045..2945bbe2b 100644
--- a/arch/riscv/include/asm/cache.h
+++ b/arch/riscv/include/asm/cache.h
@@ -11,6 +11,8 @@
 
 #define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
 
+#define ARCH_DMA_MINALIGN	L1_CACHE_BYTES
+
 /*
  * RISC-V requires the stack pointer to be 16-byte aligned, so ensure that
  * the flat loader aligns it accordingly.
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-08-10  1:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-07 14:55 [PATCH] riscv: add ARCH_DMA_MINALIGN support Xianting Tian
2021-08-07 14:55 ` Xianting Tian
2021-08-08 16:30 ` Jisheng Zhang
2021-08-08 16:30   ` Jisheng Zhang
2021-08-09  1:55   ` Xianting TIan
2021-08-09  1:55     ` Xianting TIan
2021-08-10  1:30     ` Guo Ren
2021-08-10  1:30       ` Guo Ren
2021-08-09  6:20   ` Xianting TIan
2021-08-09  6:20     ` Xianting TIan
2021-08-09  7:49     ` Arnd Bergmann
2021-08-09  7:49       ` Arnd Bergmann
2021-08-09  9:00       ` Xianting TIan
2021-08-09  9:00         ` Xianting TIan
2021-08-09 19:19       ` Atish Patra
2021-08-09 19:19         ` Atish Patra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.