linux/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
ttm_device.h drm/ttm: rework bulk move handling v5 2022-03-29 10:55:32 +02:00
ttm_execbuf_util.h
ttm_kmap_iter.h
ttm_placement.h
ttm_pool.h
ttm_range_manager.h
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