Re: [PATCH 6/7] riscv: Select ARCH_DMA_DEFAULT_COHERENT

2023-02-21 Thread Jiaxun Yang
> 2023年2月21日 18:14,Conor Dooley 写道: > > On Tue, Feb 21, 2023 at 12:46:12PM +, Jiaxun Yang wrote: >> For RISCV we always assume devices are DMA coherent. > > "Always assume", I'm not keen on that wording as it is unclear as to > whether you are suggesting that a) we always take devices to

Re: [PATCH 6/7] riscv: Select ARCH_DMA_DEFAULT_COHERENT

2023-02-21 Thread Conor Dooley
On Tue, Feb 21, 2023 at 12:46:12PM +, Jiaxun Yang wrote: > For RISCV we always assume devices are DMA coherent. "Always assume", I'm not keen on that wording as it is unclear as to whether you are suggesting that a) we always take devices to be DMA coherent, or b) unless a device states it is

[PATCH 6/7] riscv: Select ARCH_DMA_DEFAULT_COHERENT

2023-02-21 Thread Jiaxun Yang
For RISCV we always assume devices are DMA coherent. Select ARCH_DMA_DEFAULT_COHERENT to ensure dev->dma_conherent is always initialized to true. Signed-off-by: Jiaxun Yang --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 8b