Skip to contentSkip to conversation

drm/msm: remove objects from evit list after pinning them

PATCH Superseded Anna Maniscalco 2 participants 2 messages Jul 23

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: remove objects from evit list after pinning them

Once objects are pinned they should not be kept in the evict list as that will cause drm_gpuvm_validate to keep ieterating a growing list of objects needlessly.

Once an object is pinned remove it from the list.

---
 drivers/gpu/drm/msm/msm_gem_vma.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/msm/msm_gem_vma.c +2 -0
index 1a952b171ed7..4422677f095c 100644
@@ -458,6 +458,8 @@ msm_gem_vm_bo_validate(struct drm_gpuvm_bo *vm_bo, struct drm_exec *exec)
 			return ret;
 	}
 
+	drm_gpuvm_bo_evict(vm_bo, false);
+
 	return 0;
 }
 

---
base-commit: 9a967125427e03c7ebc24d7ad26e9307e8403d4e
change-id: 20260723-evict_list_fix-1da92b2627aa

Best regards,

Signature · 1 line
Anna Maniscalco <[email protected]>
#1 lore raw
Quoted 7 lines · Anna Maniscalco

Once objects are pinned they should not be kept in the evict list as that will cause drm_gpuvm_validate to keep ieterating a growing list of objects needlessly.

Once an object is pinned remove it from the list.

Fixes 2e6a8a1fe2b2 ("drm/msm: Add VM_BIND ioctl")
Quoted 27 lines
---
 drivers/gpu/drm/msm/msm_gem_vma.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/msm/msm_gem_vma.c +2 -1
index 1a952b171ed7..4422677f095c 100644
@@ -458,6 +458,8 @@ msm_gem_vm_bo_validate(struct drm_gpuvm_bo *vm_bo, struct drm_exec *exec)
                        return ret;
        }
 
+       drm_gpuvm_bo_evict(vm_bo, false);
+
        return 0;
 }
 
 
---

base-commit: 9a967125427e03c7ebc24d7ad26e9307e8403d4e
change-id: 20260723-evict_list_fix-1da92b2627aa

Best regards,
--
Anna Maniscalco <[email protected]>