Skip to content

Commit 609d8b1

Browse files
author
Andi Shyti
committed
drm/i915/gem: Do not look for the exact address in node
In preparation for the upcoming partial memory mapping feature, we want to make sure that when looking for a node we consider also the offset and not just the starting address of the virtual memory node. Signed-off-by: Andi Shyti <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0523374 commit 609d8b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/i915/gem/i915_gem_mman.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,9 +1079,9 @@ int i915_gem_mmap(struct file *filp, struct vm_area_struct *vma)
10791079

10801080
rcu_read_lock();
10811081
drm_vma_offset_lock_lookup(dev->vma_offset_manager);
1082-
node = drm_vma_offset_exact_lookup_locked(dev->vma_offset_manager,
1083-
vma->vm_pgoff,
1084-
vma_pages(vma));
1082+
node = drm_vma_offset_lookup_locked(dev->vma_offset_manager,
1083+
vma->vm_pgoff,
1084+
vma_pages(vma));
10851085
if (node && drm_vma_node_is_allowed(node, priv)) {
10861086
/*
10871087
* Skip 0-refcnted objects as it is in the process of being

0 commit comments

Comments
 (0)