Re: [PATCH 2/3] riscv: Set dma_default_coherent to true

2023-02-22 Thread Conor Dooley
On Wed, Feb 22, 2023 at 04:20:16PM +, Jiaxun Yang wrote: > > 2023年2月22日 16:02,Conor Dooley 写道: > > On Wed, Feb 22, 2023 at 03:55:19PM +, Jiaxun Yang wrote: > >>> 2023年2月22日 14:50,Conor Dooley 写道: > >>> On Wed, Feb 22, 2023 at 01:37:11PM +, Jiaxun Yang wrote: > For riscv our assum

Re: [PATCH 2/3] riscv: Set dma_default_coherent to true

2023-02-22 Thread Jiaxun Yang
> 2023年2月22日 16:02,Conor Dooley 写道: > > On Wed, Feb 22, 2023 at 03:55:19PM +, Jiaxun Yang wrote: >> >> >>> 2023年2月22日 14:50,Conor Dooley 写道: >>> >>> On Wed, Feb 22, 2023 at 01:37:11PM +, Jiaxun Yang wrote: For riscv our assumption is unless a device states it is non-coherent,

Re: [PATCH 2/3] riscv: Set dma_default_coherent to true

2023-02-22 Thread Conor Dooley
On Wed, Feb 22, 2023 at 03:55:19PM +, Jiaxun Yang wrote: > > > > 2023年2月22日 14:50,Conor Dooley 写道: > > > > On Wed, Feb 22, 2023 at 01:37:11PM +, Jiaxun Yang wrote: > >> For riscv our assumption is unless a device states it is non-coherent, > >> we take it to be DMA coherent. > >> > >>

Re: [PATCH 2/3] riscv: Set dma_default_coherent to true

2023-02-22 Thread Jiaxun Yang
> 2023年2月22日 14:50,Conor Dooley 写道: > > On Wed, Feb 22, 2023 at 01:37:11PM +, Jiaxun Yang wrote: >> For riscv our assumption is unless a device states it is non-coherent, >> we take it to be DMA coherent. >> >> For devicetree probed devices that have been true since very begining >> with

Re: [PATCH 2/3] riscv: Set dma_default_coherent to true

2023-02-22 Thread Conor Dooley
On Wed, Feb 22, 2023 at 01:37:11PM +, Jiaxun Yang wrote: > For riscv our assumption is unless a device states it is non-coherent, > we take it to be DMA coherent. > > For devicetree probed devices that have been true since very begining > with OF_DMA_DEFAULT_COHERENT selected. > > Signed-off-

[PATCH 2/3] riscv: Set dma_default_coherent to true

2023-02-22 Thread Jiaxun Yang
For riscv our assumption is unless a device states it is non-coherent, we take it to be DMA coherent. For devicetree probed devices that have been true since very begining with OF_DMA_DEFAULT_COHERENT selected. Signed-off-by: Jiaxun Yang --- arch/riscv/kernel/setup.c | 3 +++ 1 file changed, 3