drm/i915: don't call free_mmap_offset when purging
authorjsg <jsg@openbsd.org>
Thu, 7 Apr 2022 06:46:27 +0000 (06:46 +0000)
committerjsg <jsg@openbsd.org>
Thu, 7 Apr 2022 06:46:27 +0000 (06:46 +0000)
From Matthew Auld
d3f67ceaeb3f7ddabad1d6e8da29e44fd2634f65 in linux 5.15.y/5.15.27
4c2602ba8d74c35d550ed3d518809c697de08d88 in mainline linux

sys/dev/pci/drm/i915/gem/i915_gem_pages.c

index c3eda20..8a338ba 100644 (file)
@@ -162,7 +162,6 @@ retry:
 /* Immediately discard the backing storage */
 void i915_gem_object_truncate(struct drm_i915_gem_object *obj)
 {
-       drm_gem_free_mmap_offset(&obj->base);
        if (obj->ops->truncate)
                obj->ops->truncate(obj);
 }