[Intel-gfx] [PATCH 1/2] dma-buf: Expand reservation_list to fill allocation
Chris Wilson
chris at chris-wilson.co.uk
Mon Jul 15 11:11:01 UTC 2019
Quoting Chris Wilson (2019-07-12 09:03:13)
> Since kmalloc() will round up the allocation to the next slab size or
> page, it will normally return a pointer to a memory block bigger than we
> asked for. We can query for the actual size of the allocated block using
> ksize() and expand our variable size reservation_list to take advantage
> of that extra space.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Christian König <christian.koenig at amd.com>
> Cc: Michel Dänzer <michel.daenzer at amd.com>
Pushed to drm-misc-next, thanks for the reviews!
Anyone feel brave enough for the second? :)
-Chris
More information about the Intel-gfx
mailing list