diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-08-15 03:18:57 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-08-15 03:18:57 +0000 |
commit | 64d2d804d48d7a18a740e1f8b43e531504a68f4f (patch) | |
tree | 51a4b58c944d07c55e9745e4974e41723fe36c3c /sys | |
parent | 289a335e14516c150587c3073a714640251d83b3 (diff) |
drm/i915/gem: Adjust vma offset for framebuffer mmap offset
From Andi Shyti
d73de3c6447644c65ed0e9a368328713dc28fb18 in linux-6.6.y/6.6.46
1ac5167b3a90c9820daa64cc65e319b2d958d686 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/i915/gem/i915_gem_mman.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c index 983f22fad67..dcbb86323e0 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c @@ -1590,6 +1590,8 @@ int i915_gem_fb_mmap(struct drm_i915_gem_object *obj, struct vm_area_struct *vma mmo = mmap_offset_attach(obj, mmap_type, NULL); if (IS_ERR(mmo)) return PTR_ERR(mmo); + + vma->vm_pgoff += drm_vma_node_start(&mmo->vma_node); } /* |