Re: [RFC PATCH 1/4] dma-buf: heaps: restricted_heap: add no_map attribute

2024-09-05 Thread Christian König
Am 05.09.24 um 08:56 schrieb Jens Wiklander: On Fri, Aug 30, 2024 at 10:47 AM Christian König wrote: Am 30.08.24 um 09:03 schrieb Jens Wiklander: Add a no_map attribute to struct restricted_heap_attachment and struct restricted_heap to skip the call to dma_map_sgtable() if set. This avoids try

Re: [RFC PATCH 1/4] dma-buf: heaps: restricted_heap: add no_map attribute

2024-09-04 Thread Jens Wiklander
On Fri, Aug 30, 2024 at 10:47 AM Christian König wrote: > > Am 30.08.24 um 09:03 schrieb Jens Wiklander: > > Add a no_map attribute to struct restricted_heap_attachment and struct > > restricted_heap to skip the call to dma_map_sgtable() if set. This > > avoids trying to map a dma-buf that doens't

Re: [RFC PATCH 1/4] dma-buf: heaps: restricted_heap: add no_map attribute

2024-08-30 Thread Christian König
Am 30.08.24 um 09:03 schrieb Jens Wiklander: Add a no_map attribute to struct restricted_heap_attachment and struct restricted_heap to skip the call to dma_map_sgtable() if set. This avoids trying to map a dma-buf that doens't refer to memory accessible by the kernel. You seem to have a misunde