]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ttm: Create pinned list
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 24 Aug 2021 20:13:13 +0000 (16:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Sep 2021 20:55:11 +0000 (16:55 -0400)
commit199b9af21a4258c3a5345f7382bdd2f1cae265ae
tree8de94b1959ba50bc8a373aadc1e4765acf015662
parent9ad544670514e2a79aad7567295c198609d999ee
drm/ttm: Create pinned list

This list will be used to capture all non VRAM BOs not
on LRU so when device is hot unplugged we can iterate
the list and unmap DMA mappings before device is removed.

v2: Reanme function to ttm_bo_move_to_pinned
v3: Move the pinned list to ttm device

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_device.c
include/drm/ttm/ttm_device.h