Re: [PATCH] drm/etnaviv: fix DMA direction handling for cached read/write buffers

2024-02-07 Thread Sui Jingfeng
Hi, On 2024/1/29 18:29, Daniel Stone wrote: Hi Lucas, On Fri, 26 Jan 2024 at 17:00, Lucas Stach wrote: The dma sync operation needs to be done with DMA_BIDIRECTIONAL when the BO is prepared for both read and write operations. With the current inverted if ladder it would only be synced for

Re: [PATCH] drm/etnaviv: fix DMA direction handling for cached read/write buffers

2024-01-29 Thread Daniel Stone
Hi Lucas, On Fri, 26 Jan 2024 at 17:00, Lucas Stach wrote: > The dma sync operation needs to be done with DMA_BIDIRECTIONAL when > the BO is prepared for both read and write operations. With the > current inverted if ladder it would only be synced for DMA_FROM_DEVICE. > > [...] > > static

[PATCH] drm/etnaviv: fix DMA direction handling for cached read/write buffers

2024-01-26 Thread Lucas Stach
The dma sync operation needs to be done with DMA_BIDIRECTIONAL when the BO is prepared for both read and write operations. With the current inverted if ladder it would only be synced for DMA_FROM_DEVICE. Fixes: a8c21a5451d8 ("drm/etnaviv: add initial etnaviv DRM driver") Signed-off-by: Lucas