projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eda4fc
)
drm/i915/ttm: enable shmem tt backend
author
Matthew Auld
<matthew.auld@intel.com>
Mon, 18 Oct 2021 09:10:55 +0000
(10:10 +0100)
committer
Matthew Auld
<matthew.auld@intel.com>
Fri, 22 Oct 2021 12:19:30 +0000
(13:19 +0100)
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
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
index
d37581d
..
4fd2edb
100644
(file)
--- 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,