]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: move swapout logic around v3
authorChristian König <christian.koenig@amd.com>
Tue, 6 Oct 2020 11:35:32 +0000 (13:35 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 24 Mar 2021 16:05:07 +0000 (17:05 +0100)
commit9fba7147425e622e00d2a8495b0f906f2fa72dcb
treef05c2a00578b93e6728cb2368fa1b50e7a83af46
parent62e53e62e1e8b62d9c3a81b3e76f8db6c872926b
drm/ttm: move swapout logic around v3

Move the iteration of the global lru into the new function
ttm_global_swapout() and use that instead in drivers.

v2: consistently return int
v3: fix build fail

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/424008/
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_device.c
drivers/gpu/drm/ttm/ttm_tt.c
drivers/gpu/drm/vmwgfx/ttm_memory.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_device.h