Skip to content

Commit 88be9a0

Browse files
committed
drm/i915/ttm: add ttm_buddy_man
Add back our standalone i915_buddy allocator and integrate it into a ttm_resource_manager. This will plug into our ttm backend for managing device local-memory in the next couple of patches. v2(Thomas): - Return -ENOSPC from the buddy; ttm expects this in order to trigger eviction - Drop the unnecessary inline - bo->page_alignment is in page units Signed-off-by: Matthew Auld <[email protected]> Cc: Thomas Hellström <[email protected]> Acked-by: Thomas Hellström <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c865204 commit 88be9a0

File tree

6 files changed

+1640
-0
lines changed

6 files changed

+1640
-0
lines changed

drivers/gpu/drm/i915/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ gem-y += \
162162
i915-y += \
163163
$(gem-y) \
164164
i915_active.o \
165+
i915_buddy.o \
165166
i915_cmd_parser.o \
166167
i915_gem_evict.o \
167168
i915_gem_gtt.o \
@@ -171,6 +172,7 @@ i915-y += \
171172
i915_request.o \
172173
i915_scheduler.o \
173174
i915_trace_points.o \
175+
i915_ttm_buddy_manager.o \
174176
i915_vma.o \
175177
intel_wopcm.o
176178

0 commit comments

Comments
 (0)