Re: [PATCH] dma-buf: system_heap: No separate allocation for attachment sg_tables

2025-04-29 Thread T.J. Mercier
On Tue, Apr 22, 2025 at 9:17 AM T.J. Mercier wrote: > > On Tue, Apr 22, 2025 at 1:24 AM Christian König > wrote: > > > > Am 17.04.25 um 20:09 schrieb T.J. Mercier: > > > struct dma_heap_attachment is a separate allocation from the struct > > > sg_table it contains, but there is no reason for this

Re: [PATCH] dma-buf: system_heap: No separate allocation for attachment sg_tables

2025-04-22 Thread T.J. Mercier
On Tue, Apr 22, 2025 at 1:24 AM Christian König wrote: > > Am 17.04.25 um 20:09 schrieb T.J. Mercier: > > struct dma_heap_attachment is a separate allocation from the struct > > sg_table it contains, but there is no reason for this. Let's use the > > slab allocator just once instead of twice for d

Re: [PATCH] dma-buf: system_heap: No separate allocation for attachment sg_tables

2025-04-22 Thread Christian König
Am 17.04.25 um 20:09 schrieb T.J. Mercier: > struct dma_heap_attachment is a separate allocation from the struct > sg_table it contains, but there is no reason for this. Let's use the > slab allocator just once instead of twice for dma_heap_attachment. > > Signed-off-by: T.J. Mercier I'm not *tha

[PATCH] dma-buf: system_heap: No separate allocation for attachment sg_tables

2025-04-17 Thread T.J. Mercier
struct dma_heap_attachment is a separate allocation from the struct sg_table it contains, but there is no reason for this. Let's use the slab allocator just once instead of twice for dma_heap_attachment. Signed-off-by: T.J. Mercier --- drivers/dma-buf/heaps/system_heap.c | 43 ---