Thomas Hellström
d2ce8fcd77
drm/xe: Bump LRU for external objects on exec and rebind
...
The VM's private BOs get their LRU position refreshed in bulk via
ttm_lru_bulk_move_tail() on vm->lru_bulk_move, both after a successful
non-LR exec and after the LR preempt-fence rebind worker runs. External
objects (BOs potentially shared across VMs) are never added to that
per-VM bulk move list, so their LRU position is never refreshed by
either path. This makes external objects in active use look more
evictable than they are.
Add xe_vm_bump_lru(), which, under a single lru_lock critical section,
performs the bulk move of the VM's private BOs and bumps each external
object locked by the drm_exec transaction. Use it from both the non-LR
exec path and the LR rebind worker, replacing the open-coded bulk move.
Fixes: d490ecf577 ("drm/xe: Rework xe_exec and the VM rebind worker to use the drm_exec helper")
Cc: Matthew Auld <[email protected] >
Cc: Matthew Brost <[email protected] >
Cc: <[email protected] > # v6.8+
Assisted-by: LLM
Signed-off-by: Thomas Hellström <[email protected] >
Reviewed-by: Matthew Brost <[email protected] >
Reviewed-by: Matthew Auld <[email protected] >
Link: https://patch.msgid.link/[email protected]
(cherry picked from commit 324ba30cca180c2e1d02090743dd78ccb15b9e4a)
Signed-off-by: Rodrigo Vivi <[email protected] >
2026-10-13 09:57:13 -04:00
..
2026-07-11 16:15:27 +02:00
2026-10-05 17:47:35 -04:00
2026-09-09 11:20:39 -04:00
2026-09-21 08:58:56 -04:00
2026-08-17 15:45:21 -04:00
2026-07-09 10:38:03 +03:00
2026-07-09 10:38:03 +03:00
2026-07-30 08:49:34 +05:30
2026-08-27 12:00:16 -04:00
2026-09-04 21:37:00 -07:00
2026-08-27 12:00:16 -04:00
2026-07-16 16:32:19 +02:00
2026-10-13 09:56:52 -04:00
2026-10-05 17:47:35 -04:00
2026-07-10 08:08:47 -07:00
2026-07-10 08:08:47 -07:00
2026-07-30 08:49:34 +05:30
2026-07-16 10:15:25 +05:30
2026-08-11 17:34:00 +01:00
2026-07-30 08:49:34 +05:30
2026-08-27 09:17:06 -07:00
2026-07-30 08:49:34 +05:30
2026-07-16 16:32:19 +02:00
2026-07-02 12:29:43 +02:00
2026-08-13 08:32:13 -04:00
2026-07-24 14:07:28 -07:00
2026-07-13 13:29:26 -07:00
2026-08-20 10:58:44 +10:00
2026-10-13 09:57:13 -04:00
2026-08-20 10:58:44 +10:00
2026-08-11 17:34:00 +01:00
2026-07-02 12:29:42 +02:00
2026-08-27 09:23:07 -04:00
2026-08-13 09:08:07 -04:00
2026-07-10 12:50:15 +01:00
2026-07-10 12:50:15 +01:00
2026-07-10 12:50:19 +01:00
2026-07-10 12:50:19 +01:00
2026-07-10 12:50:19 +01:00
2026-09-21 08:58:56 -04:00
2026-07-10 12:50:12 +01:00
2026-07-16 10:15:25 +05:30
2026-07-16 10:15:25 +05:30
2026-08-13 14:56:33 +02:00
2026-09-22 15:42:09 -04:00
2026-07-10 12:50:08 +01:00
2026-07-10 12:50:08 +01:00
2026-07-09 10:03:12 -07:00
2026-07-10 12:50:15 +01:00
2026-07-16 16:33:02 +02:00
2026-07-10 08:08:47 -07:00
2026-07-11 16:15:29 +02:00
2026-07-11 16:15:25 +02:00
2026-08-13 14:56:34 +02:00
2026-07-02 12:29:43 +02:00
2026-08-20 09:30:03 -04:00
2026-07-09 10:03:12 -07:00
2026-06-30 08:14:22 -07:00
2026-07-16 16:33:08 +02:00
2026-08-13 14:56:33 +02:00
2026-07-10 12:50:15 +01:00
2026-07-13 13:29:24 -07:00
2026-07-10 12:50:15 +01:00
2026-09-22 15:42:09 -04:00
2026-07-16 10:15:25 +05:30
2026-10-07 09:22:03 -04:00
2026-08-28 16:37:55 -07:00
2026-10-05 17:47:26 -04:00
2026-08-13 14:56:33 +02:00
2026-07-22 08:59:26 +02:00
2026-07-22 08:59:26 +02:00
2026-09-14 09:09:01 -04:00
2026-09-14 09:09:01 -04:00
2026-10-05 17:47:17 -04:00
2026-07-16 16:33:08 +02:00
2026-07-16 16:33:08 +02:00
2026-07-16 16:32:40 +02:00
2026-07-02 12:29:43 +02:00
2026-10-13 09:57:02 -04:00
2026-09-09 11:18:54 -04:00
2026-09-09 11:18:54 -04:00
2026-07-17 18:34:00 -07:00
2026-07-15 10:56:21 +05:30
2026-07-02 13:39:38 +05:30
2026-09-28 10:19:35 -04:00
2026-07-09 10:03:12 -07:00
2026-07-22 23:20:48 -03:00
2026-07-06 08:55:48 -07:00
2026-07-06 08:55:48 -07:00
2026-07-03 15:35:15 +03:00
2026-07-13 13:29:20 -07:00
2026-08-01 07:06:36 +10:00
2026-08-13 14:56:33 +02:00
2026-08-20 10:58:44 +10:00
2026-07-20 10:13:17 +05:30
2026-08-13 08:32:13 -04:00
2026-07-15 10:56:21 +05:30
2026-07-02 12:29:44 +02:00
2026-07-02 12:29:43 +02:00
2026-09-09 11:20:39 -04:00
2026-07-01 21:48:36 +02:00
2026-07-01 21:48:36 +02:00
2026-07-02 12:28:02 +02:00
2026-07-01 16:52:48 +02:00
2026-09-14 09:09:01 -04:00
2026-07-11 16:15:35 +02:00
2026-07-22 08:59:26 +02:00
2026-07-16 16:32:45 +02:00
2026-07-02 18:41:52 -03:00
2026-07-02 18:41:52 -03:00
2026-07-20 09:59:33 +05:30
2026-07-09 04:12:49 -07:00
2026-07-09 04:12:49 -07:00
2026-07-15 10:56:21 +05:30
2026-07-15 10:56:21 +05:30
2026-07-17 10:18:12 +05:30
2026-10-06 09:11:11 -04:00
2026-08-27 12:00:17 -04:00
2026-08-27 12:00:17 -04:00
2026-08-27 12:00:17 -04:00
2026-09-21 08:59:06 -04:00
2026-07-09 10:03:12 -07:00
2026-07-14 15:18:51 +02:00
2026-08-06 23:38:04 +02:00
2026-07-01 21:48:36 +02:00
2026-07-09 17:23:49 -04:00
2026-08-04 13:52:23 -04:00
2026-07-09 04:12:45 -07:00
2026-07-20 18:18:41 +02:00
2026-10-13 09:57:13 -04:00
2026-10-13 09:57:13 -04:00
2026-09-03 15:50:27 -04:00
2026-09-22 15:42:09 -04:00
2026-07-01 21:48:36 +02:00
2026-07-16 16:32:51 +02:00