Re: [PATCH] media: videobuf2: sync caches for dmabuf memory

2024-07-11 Thread Tomasz Figa
On Thu, Jun 20, 2024 at 3:52 PM Hans Verkuil wrote: > > On 19/06/2024 06:19, Tomasz Figa wrote: > > On Wed, Jun 19, 2024 at 1:24 AM Nicolas Dufresne > > wrote: > >> > >> Le mardi 18 juin 2024 à 16:47 +0900, Tomasz Figa a écrit : > >>> Hi TaoJiang, > >>> > >>> On Tue, Jun 18, 2024 at 4:30 PM TaoJ

Re: [PATCH] media: videobuf2: sync caches for dmabuf memory

2024-06-19 Thread Hans Verkuil
On 19/06/2024 06:19, Tomasz Figa wrote: > On Wed, Jun 19, 2024 at 1:24 AM Nicolas Dufresne wrote: >> >> Le mardi 18 juin 2024 à 16:47 +0900, Tomasz Figa a écrit : >>> Hi TaoJiang, >>> >>> On Tue, Jun 18, 2024 at 4:30 PM TaoJiang wrote: From: Ming Qian When the memory type is

Re: [PATCH] media: videobuf2: sync caches for dmabuf memory

2024-06-18 Thread Tomasz Figa
On Wed, Jun 19, 2024 at 1:24 AM Nicolas Dufresne wrote: > > Le mardi 18 juin 2024 à 16:47 +0900, Tomasz Figa a écrit : > > Hi TaoJiang, > > > > On Tue, Jun 18, 2024 at 4:30 PM TaoJiang wrote: > > > > > > From: Ming Qian > > > > > > When the memory type is VB2_MEMORY_DMABUF, the v4l2 device can't

[PATCH] media: videobuf2: sync caches for dmabuf memory

2024-06-18 Thread TaoJiang
From: Ming Qian When the memory type is VB2_MEMORY_DMABUF, the v4l2 device can't know whether the dma buffer is coherent or synchronized. The videobuf2-core will skip cache syncs as it think the DMA exporter should take care of cache syncs But in fact it's likely that the client doesn't synchro

Re: [PATCH] media: videobuf2: sync caches for dmabuf memory

2024-06-18 Thread ming qian
Hi TaoJiang, On Tue, Jun 18, 2024 at 4:30 PM TaoJiang wrote: From: Ming Qian When the memory type is VB2_MEMORY_DMABUF, the v4l2 device can't know whether the dma buffer is coherent or synchronized. The videobuf2-core will skip cache syncs as it think the DMA exporter should take care o

Re: [PATCH] media: videobuf2: sync caches for dmabuf memory

2024-06-18 Thread Nicolas Dufresne
Le mardi 18 juin 2024 à 16:47 +0900, Tomasz Figa a écrit : > Hi TaoJiang, > > On Tue, Jun 18, 2024 at 4:30 PM TaoJiang wrote: > > > > From: Ming Qian > > > > When the memory type is VB2_MEMORY_DMABUF, the v4l2 device can't know > > whether the dma buffer is coherent or synchronized. > > > > T

Re: [PATCH] media: videobuf2: sync caches for dmabuf memory

2024-06-18 Thread Tomasz Figa
Hi TaoJiang, On Tue, Jun 18, 2024 at 4:30 PM TaoJiang wrote: > > From: Ming Qian > > When the memory type is VB2_MEMORY_DMABUF, the v4l2 device can't know > whether the dma buffer is coherent or synchronized. > > The videobuf2-core will skip cache syncs as it think the DMA exporter > should take