summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorRoger He <Hongbo.He@amd.com>2017-12-08 02:21:18 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-27 11:38:55 -0500
commit9de2fb99ebe059f7777b4c0463eca2946f2bda4d (patch)
tree9d620a073b86db04996eeabb38095464cccd0242 /include/drm/ttm
parent279c01f6ef626d59b93383d183fb69173d3f7ac7 (diff)
drm/ttm: use an operation ctx for ttm_mem_global_alloc_page
forward the operation context to ttm_mem_global_alloc_page as well, and the ultimate goal is swapout enablement for reserved BOs. Here reserved BOs refer to all the BOs which share same reservation object Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Roger He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/ttm')
-rw-r--r--include/drm/ttm/ttm_memory.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_memory.h b/include/drm/ttm/ttm_memory.h
index 755c107817da..8936285b6543 100644
--- a/include/drm/ttm/ttm_memory.h
+++ b/include/drm/ttm/ttm_memory.h
@@ -84,7 +84,8 @@ extern int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory,
84extern void ttm_mem_global_free(struct ttm_mem_global *glob, 84extern void ttm_mem_global_free(struct ttm_mem_global *glob,
85 uint64_t amount); 85 uint64_t amount);
86extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob, 86extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
87 struct page *page, uint64_t size); 87 struct page *page, uint64_t size,
88 struct ttm_operation_ctx *ctx);
88extern void ttm_mem_global_free_page(struct ttm_mem_global *glob, 89extern void ttm_mem_global_free_page(struct ttm_mem_global *glob,
89 struct page *page, uint64_t size); 90 struct page *page, uint64_t size);
90extern size_t ttm_round_pot(size_t size); 91extern size_t ttm_round_pot(size_t size);