diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2021-08-24 22:13:13 +0200 |
---|---|---|
committer | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2021-08-30 21:50:18 +0200 |
commit | 32eadf52d4491f005d188ade02d17c60916df8c2 (patch) | |
tree | c96a47045f784d99bb559f39dd11f5b221f9fc9e /include/drm | |
parent | dma-resv: Give the docs a do-over (diff) | |
download | linux-32eadf52d4491f005d188ade02d17c60916df8c2.tar.xz linux-32eadf52d4491f005d188ade02d17c60916df8c2.zip |
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>
Link: https://patchwork.freedesktop.org/patch/451614/?series=93971
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/ttm/ttm_device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_device.h b/include/drm/ttm/ttm_device.h index cd592f8e941b..03fb44d061e0 100644 --- a/include/drm/ttm/ttm_device.h +++ b/include/drm/ttm/ttm_device.h @@ -265,6 +265,7 @@ struct ttm_device { */ spinlock_t lru_lock; struct list_head ddestroy; + struct list_head pinned; /* * Protected by load / firstopen / lastclose /unload sync. |