Skip to contentSkip to conversation

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

PATCH New Anna Maniscalco 1 participant 1 message Jul 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

Fixes 2e6a8a1fe2b2 ("drm/msm: Add VM_BIND ioctl")

---
Changes in v2:
- Added Fixes tag
- Link to v1: https://patch.msgid.link/[email protected]

To: Rob Clark <[email protected]>
To: Dmitry Baryshkov <[email protected]>
To: Abhinav Kumar <[email protected]>
To: Jessica Zhang <[email protected]>
To: Sean Paul <[email protected]>
To: Marijn Suijten <[email protected]>
To: David Airlie <[email protected]>
To: Simona Vetter <[email protected]>
To: Antonino Maniscalco <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 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]>