linux_dsm_epyc7002/drivers/gpu/drm/ttm
Thomas Hellstrom 15205fbcbe drm/ttm: Make NO_EVICT bos available to shrinkers pending destruction
NO_EVICT bos that are not idle when all references are dropped are put on
the delayed destroy list. However, since they are not on LRU lists, they
are not available to shrinkers at that point, and buffers on the delayed
destroy list are not checked very often for idle.

So when these buffers are put on the delayed destroy list, clear the
NO_EVICT flag and put them on the right LRU list. This way they are
immediately available for eviction or shrinkers and will not cause false
OOMS.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2013-11-06 04:21:50 -08:00
..
Makefile drm/ttm: provide dma aware ttm page pool code V9 2011-12-06 10:39:33 +00:00
ttm_agp_backend.c UAPI: (Scripted) Convert #include "..." to #include <path/...> in drivers/gpu/ 2012-10-02 18:01:07 +01:00
ttm_bo_manager.c drm/ttm: replace drm_mm_pre_get() by direct alloc 2013-08-07 10:15:29 +10:00
ttm_bo_util.c drm/ttm: convert to unified vma offset manager 2013-07-25 20:47:07 +10:00
ttm_bo_vm.c drm/ttm: Allow vm fault retries 2013-11-06 04:14:43 -08:00
ttm_bo.c drm/ttm: Make NO_EVICT bos available to shrinkers pending destruction 2013-11-06 04:21:50 -08:00
ttm_execbuf_util.c drm/ttm: inline ttm_bo_reserve and related calls 2013-06-28 12:04:09 +10:00
ttm_lock.c UAPI: (Scripted) Convert #include "..." to #include <path/...> in drivers/gpu/ 2012-10-02 18:01:07 +01:00
ttm_memory.c drm/ttm: remove ttm_mem_global->queue 2012-11-20 16:06:22 +10:00
ttm_module.c UAPI: (Scripted) Convert #include "..." to #include <path/...> in drivers/gpu/ 2012-10-02 18:01:07 +01:00
ttm_object.c drm, ttm Fix uninitialized warning 2013-09-19 11:51:51 +10:00
ttm_page_alloc_dma.c drivers: convert shrinkers to new count/scan API 2013-09-10 18:56:32 -04:00
ttm_page_alloc.c drivers: convert shrinkers to new count/scan API 2013-09-10 18:56:32 -04:00
ttm_tt.c drm/ttm: fix the tt_populated check in ttm_tt_destroy() 2013-09-19 11:48:30 +10:00