linux/drivers/gpu/drm/ttm
Flora Cui 56fc350224 drm/ttm: fix kref count mess in ttm_bo_move_to_lru_tail
Fixes the following scenario:

1. Page table bo allocated in vram and linked to man->lru.
   tbo->list_kref.refcount=2
2. Page table bo is swapped out and removed from man->lru.
   tbo->list_kref.refcount=1
3. Command submission from userspace.  Page table bo is moved
   to vram.  ttm_bo_move_to_lru_tail() link it to man->lru and
   don't increase the kref count.

Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Flora Cui <Flora.Cui@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2016-04-27 12:26:50 -04:00
..
Makefile drm/ttm: Enable the dma page pool also for intel IOMMUs 2013-11-06 03:55:52 -08:00
ttm_agp_backend.c drm/ttm: Fix memory leak in ttm_agp_backend.c 2014-02-18 14:03:32 +01:00
ttm_bo_manager.c drm/ttm: Use only DRM_MM_SEARCH_BELOW for TTM_PL_FLAG_TOPDOWN 2014-11-12 11:56:33 -05:00
ttm_bo_util.c drm/ttm: recognize ARM64 arch in ioprot handler 2015-07-24 11:51:14 +10:00
ttm_bo_vm.c mm, dax, gpu: convert vm_insert_mixed to pfn_t 2016-01-15 17:56:32 -08:00
ttm_bo.c drm/ttm: fix kref count mess in ttm_bo_move_to_lru_tail 2016-04-27 12:26:50 -04:00
ttm_execbuf_util.c drm/ttm: optionally move duplicates to a separate list 2014-12-03 18:26:52 -05:00
ttm_lock.c drm/ttm: Fixed a read/write lock imbalance 2015-11-26 15:47:38 +01:00
ttm_memory.c drm/ttm: make sure format string cannot leak in 2014-09-17 11:15:01 +10:00
ttm_module.c drm/ttm: make device_released static 2014-07-22 12:59:32 +10:00
ttm_object.c dma-buf: cleanup dma_buf_export() to make it easily extensible 2015-04-21 14:47:16 +05:30
ttm_page_alloc_dma.c drm/ttm: improve uncached page deallocation. 2015-07-17 18:18:04 +10:00
ttm_page_alloc.c drm/ttm: Avoid memory allocation from shrinker functions. 2014-11-20 11:31:56 +10:00
ttm_tt.c mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros 2016-04-04 10:41:08 -07:00