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: fee2ede15542 ("drm/ttm: rework bulk move handling v5")
2022-06-14 11:15:19 +02:00
..
2022-04-29 11:33:00 +10:00
2022-06-14 11:15:19 +02:00
2021-07-29 09:12:01 +02:00
2022-02-07 16:35:35 -08:00
2021-11-30 09:41:28 +01:00
2022-04-04 18:00:19 +02:00
2021-08-02 16:41:20 +02:00
2021-08-13 17:50:48 +02:00
2021-11-30 09:41:28 +01:00
2022-03-14 17:36:59 +02:00
2022-02-07 16:35:35 -08:00
2021-10-04 12:06:14 +02:00