Re: [PATCH] amdgpu: use dma-resv API instead of manual kmalloc

2020-01-25 Thread Stephen Kitt
And of course I forgot this is an internal API, so this doesn't work without some of other stuff which isn't ready. Please ignore... Regards, Stephen Le 25/01/2020 12:46, Stephen Kitt a écrit : Instead of hand-coding the dma_resv_list allocation, use dma_resv_list_alloc, which masks the sha

[PATCH] amdgpu: use dma-resv API instead of manual kmalloc

2020-01-25 Thread Stephen Kitt
Instead of hand-coding the dma_resv_list allocation, use dma_resv_list_alloc, which masks the shared_max handling. While we're at it, since we only need shared_count fences, allocate shared_count fences rather than shared_max. (This is the only place in the kernel, outside of dma-resv.c, which tou