]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Create pinned list
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 24 Aug 2021 20:13:13 +0000 (16:13 -0400)
committerAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 30 Aug 2021 19:50:18 +0000 (15:50 -0400)
commit5d97f3492f4cd4c9a3bd5421af74d2f444756524
treec96a47045f784d99bb559f39dd11f5b221f9fc9e
parent992fda2d5408dec3e0c44cbe1b23bb00f2f72407
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
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_device.c
include/drm/ttm/ttm_device.h