Re: [PATCH v4 4/7] dma-buf: heaps: restricted_heap: Add dma_ops

2024-05-14 Thread 吴勇
On Fri, 2024-01-12 at 10:49 +0100, Daniel Vetter wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On Fri, Jan 12, 2024 at 10:41:14AM +0100, Daniel Vetter wrote: > > On Fri, Jan 12, 2024 at 05:20:11PM +0800, Yon

Re: [PATCH v4 4/7] dma-buf: heaps: restricted_heap: Add dma_ops

2024-01-12 Thread Daniel Vetter
On Fri, Jan 12, 2024 at 10:41:14AM +0100, Daniel Vetter wrote: > On Fri, Jan 12, 2024 at 05:20:11PM +0800, Yong Wu wrote: > > Add the dma_ops for this restricted heap. For restricted buffer, > > cache_ops/mmap are not allowed, thus return EPERM for them. > > > > Signed-off-by: Yong Wu > > --- > >

Re: [PATCH v4 4/7] dma-buf: heaps: restricted_heap: Add dma_ops

2024-01-12 Thread Daniel Vetter
On Fri, Jan 12, 2024 at 05:20:11PM +0800, Yong Wu wrote: > Add the dma_ops for this restricted heap. For restricted buffer, > cache_ops/mmap are not allowed, thus return EPERM for them. > > Signed-off-by: Yong Wu > --- > drivers/dma-buf/heaps/restricted_heap.c | 103 > 1

[PATCH v4 4/7] dma-buf: heaps: restricted_heap: Add dma_ops

2024-01-12 Thread Yong Wu
Add the dma_ops for this restricted heap. For restricted buffer, cache_ops/mmap are not allowed, thus return EPERM for them. Signed-off-by: Yong Wu --- drivers/dma-buf/heaps/restricted_heap.c | 103 1 file changed, 103 insertions(+) diff --git a/drivers/dma-buf/heaps/re