Re: [RFC 1/5] RISC-V: Implement arch_sync_dma* functions

2021-09-11 Thread Guo Ren
On Tue, Jul 27, 2021 at 5:53 AM Atish Patra wrote: > > On Sun, Jul 25, 2021 at 11:57 PM Christoph Hellwig wrote: > > > > > +#ifdef CONFIG_RISCV_DMA_NONCOHERENT > > > +struct riscv_dma_cache_sync { > > > + void (*cache_invalidate)(phys_addr_t paddr, size_t size); > > > + void

Re: [RFC 1/5] RISC-V: Implement arch_sync_dma* functions

2021-08-17 Thread Guo Ren
On Tue, Aug 17, 2021 at 11:24 AM Atish Patra wrote: > > On Mon, Aug 16, 2021 at 6:48 PM Guo Ren wrote: > > > > On Sat, Jul 24, 2021 at 5:40 AM Atish Patra wrote: > > > > > > To facilitate streaming DMA APIs, this patch introduces a set of generic > > > cache operations related dma sync. Any

Re: [RFC 1/5] RISC-V: Implement arch_sync_dma* functions

2021-08-16 Thread Atish Patra
On Mon, Aug 16, 2021 at 6:48 PM Guo Ren wrote: > > On Sat, Jul 24, 2021 at 5:40 AM Atish Patra wrote: > > > > To facilitate streaming DMA APIs, this patch introduces a set of generic > > cache operations related dma sync. Any platform can use the generic ops > > to provide platform specific

Re: [RFC 1/5] RISC-V: Implement arch_sync_dma* functions

2021-08-16 Thread Guo Ren
On Sat, Jul 24, 2021 at 5:40 AM Atish Patra wrote: > > To facilitate streaming DMA APIs, this patch introduces a set of generic > cache operations related dma sync. Any platform can use the generic ops > to provide platform specific cache management operations. Once the > standard RISC-V CMO

Re: [RFC 1/5] RISC-V: Implement arch_sync_dma* functions

2021-07-26 Thread Atish Patra
On Sun, Jul 25, 2021 at 11:57 PM Christoph Hellwig wrote: > > > +#ifdef CONFIG_RISCV_DMA_NONCOHERENT > > +struct riscv_dma_cache_sync { > > + void (*cache_invalidate)(phys_addr_t paddr, size_t size); > > + void (*cache_clean)(phys_addr_t paddr, size_t size); > > + void

Re: [RFC 1/5] RISC-V: Implement arch_sync_dma* functions

2021-07-26 Thread Christoph Hellwig
> +#ifdef CONFIG_RISCV_DMA_NONCOHERENT > +struct riscv_dma_cache_sync { > + void (*cache_invalidate)(phys_addr_t paddr, size_t size); > + void (*cache_clean)(phys_addr_t paddr, size_t size); > + void (*cache_flush)(phys_addr_t paddr, size_t size); > +}; > + > +void

[RFC 1/5] RISC-V: Implement arch_sync_dma* functions

2021-07-23 Thread Atish Patra
To facilitate streaming DMA APIs, this patch introduces a set of generic cache operations related dma sync. Any platform can use the generic ops to provide platform specific cache management operations. Once the standard RISC-V CMO extension is available, it can be built on top of it.