diff options
author | Thomas Hellström <[email protected]> | 2024-09-11 14:18:59 +0200 |
---|---|---|
committer | Thomas Hellström <[email protected]> | 2024-10-09 13:41:30 +0200 |
commit | 4cce1373c17fc527b78ad22ddca3027042aea3a0 (patch) | |
tree | 9359b27b7b6413351358398373a7fc782d9db0be /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | fc5d96670eb2540d2572a14351e82ffe45d5ac11 (diff) |
drm/ttm: Move pinned objects off LRU lists when pinning
The ttm_bo_pin() and ttm_bo_unpin() functions weren't moving their
resources off the LRU list to the unevictable list.
Make sure that happens so that pinned objects don't accidently linger
on the LRU lists, and also make sure to move them back once they
are unpinned.
v2:
- Removing from a bulk move must be done with the pin-count still zero.
v3:
- ttm_resource_move_to_lru_tail must be done after pinning with a non-
NULL resource (Intel CI).
v6:
- Use a TAB instead of space (checkpatch.pl error).
Cc: Christian König <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: <[email protected]>
Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions