> 2023年2月21日 18:14,Conor Dooley <co...@kernel.org> 写道: > > On Tue, Feb 21, 2023 at 12:46:12PM +0000, 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 non-coherent, we take it to > be DMA coherent. > I think you mean b, but being exact would be appreciated, thanks. Yep I meant option b, thanks for the point. > >> Select ARCH_DMA_DEFAULT_COHERENT to ensure dev->dma_conherent >> is always initialized to true. >> >> Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com> > > Why was this not sent to the riscv list? > When (or if) you send v2, can you please make sure that you do cc it? Will do. Thanks - Jiaxun > > Thanks, > Conor.
- [PATCH 0/7] MIPS DMA coherence fixes Jiaxun Yang
- [PATCH 1/7] MIPS: Remove DMA_PERDEV_COHERENT Jiaxun Yang
- Re: [PATCH 1/7] MIPS: Remove DMA_PERDEV_COHEREN... Christoph Hellwig
- [PATCH 2/7] MIPS: Always select ARCH_HAS_SYNC_DMA_F... Jiaxun Yang
- [PATCH 6/7] riscv: Select ARCH_DMA_DEFAULT_COHERENT Jiaxun Yang
- Re: [PATCH 6/7] riscv: Select ARCH_DMA_DEFAULT_... Conor Dooley
- Re: [PATCH 6/7] riscv: Select ARCH_DMA_DEFA... Jiaxun Yang
- [PATCH 3/7] MIPS: c-r4k: Always install dma flush f... Jiaxun Yang
- [PATCH 7/7] of: address: Use dma_default_coherent t... Jiaxun Yang
- [PATCH 5/7] dma-mapping: Provide CONFIG_ARCH_DMA_DE... Jiaxun Yang
- Re: [PATCH 5/7] dma-mapping: Provide CONFIG_ARC... Christoph Hellwig
- Re: [PATCH 5/7] dma-mapping: Provide CONFIG... Jiaxun Yang
- [PATCH 4/7] dma-mapping: Always provide dma_default... Jiaxun Yang
- Re: [PATCH 4/7] dma-mapping: Always provide dma... Christoph Hellwig
- Re: [PATCH 4/7] dma-mapping: Always provide... Robin Murphy
- Re: [PATCH 4/7] dma-mapping: Always provide... Jiaxun Yang
- Re: [PATCH 0/7] MIPS DMA coherence fixes Christoph Hellwig