summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm/ttm_device.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2020-10-06 16:30:09 +0200
committerChristian König <christian.koenig@amd.com>2021-03-24 17:05:14 +0100
commitf9e2a03e110ad0c78e69201f59d18dc1c487efac (patch)
tree998a853fcd30691efbdbdfa92cbe351210f29fbf /include/drm/ttm/ttm_device.h
parentebd59851c796c221daf0d3b594fb2533f87161cf (diff)
downloadlinux-f9e2a03e110ad0c78e69201f59d18dc1c487efac.tar.bz2
drm/ttm: remove swap LRU v3
Instead evict round robin from each devices SYSTEM and TT domain. v2: reorder num_pages access reported by Dan's script v3: fix rebase fallout, num_pages should be 32bit 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/424009/
Diffstat (limited to 'include/drm/ttm/ttm_device.h')
-rw-r--r--include/drm/ttm/ttm_device.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/drm/ttm/ttm_device.h b/include/drm/ttm/ttm_device.h
index ee6bba7fab6f..93f3b59755ac 100644
--- a/include/drm/ttm/ttm_device.h
+++ b/include/drm/ttm/ttm_device.h
@@ -64,11 +64,6 @@ extern struct ttm_global {
struct list_head device_list;
/**
- * Protected by the lru_lock.
- */
- struct list_head swap_lru[TTM_MAX_BO_PRIORITY];
-
- /**
* Internal protection.
*/
atomic_t bo_count;
@@ -298,6 +293,8 @@ struct ttm_device {
};
int ttm_global_swapout(struct ttm_operation_ctx *ctx, gfp_t gfp_flags);
+int ttm_device_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx,
+ gfp_t gfp_flags);
static inline struct ttm_resource_manager *
ttm_manager_type(struct ttm_device *bdev, int mem_type)