summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorRoger He <Hongbo.He@amd.com>2017-12-21 10:42:53 +0100
committerAlex Deucher <alexander.deucher@amd.com>2017-12-28 15:48:20 +0100
commitdc947770cf3400dd07ed2e2b7b9acb4f96d5137f (patch)
tree1b9a022f5a9719be858af07e69d747468844de06 /include/drm
parentdrm/ttm: add new function to check if bo is allowable to evict or swapout (diff)
downloadlinux-dc947770cf3400dd07ed2e2b7b9acb4f96d5137f.tar.xz
linux-dc947770cf3400dd07ed2e2b7b9acb4f96d5137f.zip
drm/ttm: enable swapout for reserved BOs during allocation
if the bo shares same reservation object then not lock it again at swapout time to make it possible to swap out. v2: refine the commmit message Reviewed-by: Thomas Hellström <thellstrom@vmware.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chuming Zhou <david1.zhou@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')
-rw-r--r--include/drm/ttm/ttm_bo_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
index 24a8db7bebb1..f1c74c22248b 100644
--- a/include/drm/ttm/ttm_bo_api.h
+++ b/include/drm/ttm/ttm_bo_api.h
@@ -752,7 +752,8 @@ ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
const char __user *wbuf, char __user *rbuf,
size_t count, loff_t *f_pos, bool write);
-int ttm_bo_swapout(struct ttm_bo_global *glob);
+int ttm_bo_swapout(struct ttm_bo_global *glob,
+ struct ttm_operation_ctx *ctx);
void ttm_bo_swapout_all(struct ttm_bo_device *bdev);
int ttm_bo_wait_unreserved(struct ttm_buffer_object *bo);
#endif