diff options
author | Matthew Auld <matthew.auld@intel.com> | 2021-10-18 10:10:55 +0100 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2021-10-22 13:19:30 +0100 |
commit | 5d12ffe6bedb0e86b22dd436bb2245fdc540f780 (patch) | |
tree | a13217a4ab0d075c156ca79440ef6322c19cc852 | |
parent | 2eda4fc6d005b51271642ebfae4ac00e15618a23 (diff) |
drm/i915/ttm: enable shmem tt backend
Turn on the shmem tt backend, and enable shrinking.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211018091055.1998191-8-matthew.auld@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c index d37581d9194c..4fd2edb20dd9 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c @@ -1113,7 +1113,8 @@ static u64 i915_ttm_mmap_offset(struct drm_i915_gem_object *obj) static const struct drm_i915_gem_object_ops i915_gem_ttm_obj_ops = { .name = "i915_gem_object_ttm", - .flags = I915_GEM_OBJECT_SELF_MANAGED_SHRINK_LIST, + .flags = I915_GEM_OBJECT_IS_SHRINKABLE | + I915_GEM_OBJECT_SELF_MANAGED_SHRINK_LIST, .get_pages = i915_ttm_get_pages, .put_pages = i915_ttm_put_pages, |