linux-stable/include/drm/ttm
Christian König 0f9cd1ea10 drm/ttm: fix bulk move handling v2
The resource must be on the LRU before ttm_lru_bulk_move_add() is called
and we need to check if the BO is pinned or not before adding it.

Additional to that we missed taking the LRU spinlock in ttm_bo_unpin().

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Acked-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220613080816.4965-1-christian.koenig@amd.com
Fixes: fee2ede155 ("drm/ttm: rework bulk move handling v5")
2022-06-14 11:15:19 +02:00
..
ttm_bo_api.h drm/ttm: remove bo->moving 2022-04-07 12:53:54 +02:00
ttm_bo_driver.h drm/ttm: stop passing NULL fence in ttm_bo_move_sync_cleanup 2022-04-12 14:35:53 +02:00
ttm_caching.h drm/ttm: add kerneldoc for enum ttm_caching 2021-09-09 13:26:43 +02:00
ttm_device.h drm/ttm: rework bulk move handling v5 2022-03-29 10:55:32 +02:00
ttm_execbuf_util.h drm/ttm: remove superflous extern attribute from funcs 2020-09-17 16:14:42 +02:00
ttm_kmap_iter.h dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
ttm_placement.h drm/ttm: Clarify that the TTM_PL_SYSTEM is under TTMs control 2021-12-01 11:58:37 -05:00
ttm_pool.h drm/ttm: enable TTM page pool kerneldoc 2021-09-09 13:30:14 +02:00
ttm_range_manager.h drm/ttm: Try to check if new ttm man out of bounds during compile 2021-09-13 10:14:28 +02:00
ttm_resource.h drm/ttm: fix bulk move handling v2 2022-06-14 11:15:19 +02:00
ttm_tt.h drm/ttm: Add a parameter to add extra pages into ttm_tt 2022-04-02 08:22:48 +05:30