On Mon, 2021-09-27 at 12:41 +0100, Matthew Auld wrote: > Turn on the shmem tt backend, and enable shrinking. > > Signed-off-by: Matthew Auld <matthew.auld@xxxxxxxxx> > Cc: Thomas Hellström <thomas.hellstrom@xxxxxxxxxxxxxxx> > --- > drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > index 46d57541c0b2..4ae630fbc5cd 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > @@ -1093,6 +1093,7 @@ 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_IS_SHRINKABLE, > > .get_pages = i915_ttm_get_pages, > .put_pages = i915_ttm_put_pages, Reviewed-by: Thomas Hellström <thomas.hellstrom@xxxxxxxxxxxxxxx> Now that BAT is running a DG1 again, it might be worth to give the series a rerun. Perhaps with the "rework object initialization slightly" as a HAX patch to unblock the mman + following selftest. /Thomas