Re: [Intel-gfx] [PATCH 1/3] drm/i915: buddy allocator

2019-08-10 Thread Chris Wilson
Quoting Matthew Auld (2019-08-09 21:29:24) > Simple buddy allocator. We want to allocate properly aligned > power-of-two blocks to promote usage of huge-pages for the GTT, so 64K, > 2M and possibly even 1G. While we do support allocating stuff at a > specific offset, it is more intended for

Re: [Intel-gfx] [PATCH 1/3] drm/i915: buddy allocator

2019-08-09 Thread Chris Wilson
Quoting Matthew Auld (2019-08-09 21:29:24) > +int i915_buddy_alloc_range(struct i915_buddy_mm *mm, > + struct list_head *blocks, > + u64 start, u64 size) > +{ > + struct i915_buddy_block *block; > + struct i915_buddy_block *buddy; > +

[Intel-gfx] [PATCH 1/3] drm/i915: buddy allocator

2019-08-09 Thread Matthew Auld
Simple buddy allocator. We want to allocate properly aligned power-of-two blocks to promote usage of huge-pages for the GTT, so 64K, 2M and possibly even 1G. While we do support allocating stuff at a specific offset, it is more intended for preallocating portions of the address space, say for an