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 address

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

2023-04-13 Thread Biju Das
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 [10:53] [3.392755] Mem abort info: [10:53] [3.395883] ESR = 0x96000144 [10

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 accide

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, si

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 arch_dma_cache_wback_inv(phys_