Re: [PATCH 21/21] dma-mapping: replace custom code with generic implementation

2023-06-27 Thread Geert Uytterhoeven
On Thu, Apr 13, 2023 at 2:52 PM Arnd Bergmann wrote: > On Thu, Apr 13, 2023, at 14:13, Biju Das wrote: > > FYI, this patch breaks on RZ/G2L SMARC EVK board and Arnd will send V2 > > for fixing this issue. > > > > [10:53] [3.384408] Unable to handle kernel paging request at > > virtual

RE: [PATCH 21/21] dma-mapping: replace custom code with generic implementation

2023-04-13 Thread Biju Das
linux-m...@vger.kernel.org; linux- > openr...@vger.kernel.org; linux-par...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-ri...@lists.infradead.org; linux- > s...@vger.kernel.org; sparcli...@vger.kernel.org; linux-xtensa@linux- > xtensa.org > Subject: [PATCH 21/21] dm

Re: [PATCH 21/21] dma-mapping: replace custom code with generic implementation

2023-04-13 Thread Arnd Bergmann
On Thu, Apr 13, 2023, at 14:13, Biju Das wrote: > Hi all, > > FYI, this patch breaks on RZ/G2L SMARC EVK board and Arnd will send V2 > for fixing this issue. > > [10:53] [3.384408] Unable to handle kernel paging request at > virtual address 4afb0080 Right, sorry about this, I

Re: [PATCH 21/21] dma-mapping: replace custom code with generic implementation

2023-03-31 Thread Arnd Bergmann
On Tue, Mar 28, 2023, at 00:25, Christoph Hellwig wrote: >> +static inline void arch_dma_cache_wback(phys_addr_t paddr, size_t size) >> { >> +dma_cache_wback(paddr, size); >> +} >> >> +static inline void arch_dma_cache_inv(phys_addr_t paddr, size_t size) >> +{ >> +dma_cache_inv(paddr,

Re: [PATCH 21/21] dma-mapping: replace custom code with generic implementation

2023-03-30 Thread Lad, Prabhakar
On Mon, Mar 27, 2023 at 1:20 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > Now that all of these have consistent behavior, replace them with > a single shared implementation of arch_sync_dma_for_device() and > arch_sync_dma_for_cpu() and three parameters to pick how they should > operate:

Re: [PATCH 21/21] dma-mapping: replace custom code with generic implementation

2023-03-27 Thread Christoph Hellwig
> +static inline void arch_dma_cache_wback(phys_addr_t paddr, size_t size) > { > + dma_cache_wback(paddr, size); > +} > > +static inline void arch_dma_cache_inv(phys_addr_t paddr, size_t size) > +{ > + dma_cache_inv(paddr, size); > } > +static inline void

[PATCH 21/21] dma-mapping: replace custom code with generic implementation

2023-03-27 Thread Arnd Bergmann
From: Arnd Bergmann Now that all of these have consistent behavior, replace them with a single shared implementation of arch_sync_dma_for_device() and arch_sync_dma_for_cpu() and three parameters to pick how they should operate: - If the CPU has speculative prefetching, then the cache has