aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-02-22 09:52:31 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-26 23:09:45 -0500
commit724daa4fd65d927e406f2cc0661c9a329876267b (patch)
tree07643dc0fc9b4bb5bebea1d07eb4e5a24523a681
parent231cdafc75434015f3925d6662a1821fcfef16b7 (diff)
drm/ttm: drop persistent_swap_storage from ttm_bo_init and co
Never used as parameter, the only driver actually using this is nouveau and there it is initialized after the BO is initialized. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c4
-rw-r--r--drivers/gpu/drm/ast/ast_ttm.c2
-rw-r--r--drivers/gpu/drm/bochs/bochs_mm.c2
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_ttm.c2
-rw-r--r--drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c2
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_ttm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bo.c2
-rw-r--r--drivers/gpu/drm/qxl/qxl_object.c2
-rw-r--r--drivers/gpu/drm/radeon/radeon_object.c4
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo.c9
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_object.c2
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c2
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_mob.c5
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_resource.c4
-rw-r--r--drivers/staging/vboxvideo/vbox_ttm.c2
-rw-r--r--include/drm/ttm/ttm_bo_api.h16
16 files changed, 21 insertions, 41 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index c2a4b7215c46..216799ccb545 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -418,8 +418,8 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
418 amdgpu_ttm_placement_from_domain(bo, domain); 418 amdgpu_ttm_placement_from_domain(bo, domain);
419 419
420 r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, type, 420 r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, type,
421 &bo->placement, page_align, &ctx, NULL, 421 &bo->placement, page_align, &ctx, acc_size,
422 acc_size, sg, resv, &amdgpu_ttm_bo_destroy); 422 sg, resv, &amdgpu_ttm_bo_destroy);
423 if (unlikely(r != 0)) 423 if (unlikely(r != 0))
424 return r; 424 return r;
425 425
diff --git a/drivers/gpu/drm/ast/ast_ttm.c b/drivers/gpu/drm/ast/ast_ttm.c
index 77d2035dc7b7..211224f6bdd3 100644
--- a/drivers/gpu/drm/ast/ast_ttm.c
+++ b/drivers/gpu/drm/ast/ast_ttm.c
@@ -321,7 +321,7 @@ int ast_bo_create(struct drm_device *dev, int size, int align,
321 321
322 ret = ttm_bo_init(&ast->ttm.bdev, &astbo->bo, size, 322 ret = ttm_bo_init(&ast->ttm.bdev, &astbo->bo, size,
323 ttm_bo_type_device, &astbo->placement, 323 ttm_bo_type_device, &astbo->placement,
324 align >> PAGE_SHIFT, false, NULL, acc_size, 324 align >> PAGE_SHIFT, false, acc_size,
325 NULL, NULL, ast_bo_ttm_destroy); 325 NULL, NULL, ast_bo_ttm_destroy);
326 if (ret) 326 if (ret)
327 goto error; 327 goto error;
diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c
index 96edf005bfea..73722484e12b 100644
--- a/drivers/gpu/drm/bochs/bochs_mm.c
+++ b/drivers/gpu/drm/bochs/bochs_mm.c
@@ -368,7 +368,7 @@ static int bochs_bo_create(struct drm_device *dev, int size, int align,
368 368
369 ret = ttm_bo_init(&bochs->ttm.bdev, &bochsbo->bo, size, 369 ret = ttm_bo_init(&bochs->ttm.bdev, &bochsbo->bo, size,
370 ttm_bo_type_device, &bochsbo->placement, 370 ttm_bo_type_device, &bochsbo->placement,
371 align >> PAGE_SHIFT, false, NULL, acc_size, 371 align >> PAGE_SHIFT, false, acc_size,
372 NULL, NULL, bochs_bo_ttm_destroy); 372 NULL, NULL, bochs_bo_ttm_destroy);
373 if (ret) 373 if (ret)
374 return ret; 374 return ret;
diff --git a/drivers/gpu/drm/cirrus/cirrus_ttm.c b/drivers/gpu/drm/cirrus/cirrus_ttm.c
index 3413389c0fbe..6cd0233b3bf8 100644
--- a/drivers/gpu/drm/cirrus/cirrus_ttm.c
+++ b/drivers/gpu/drm/cirrus/cirrus_ttm.c
@@ -328,7 +328,7 @@ int cirrus_bo_create(struct drm_device *dev, int size, int align,
328 328
329 ret = ttm_bo_init(&cirrus->ttm.bdev, &cirrusbo->bo, size, 329 ret = ttm_bo_init(&cirrus->ttm.bdev, &cirrusbo->bo, size,
330 ttm_bo_type_device, &cirrusbo->placement, 330 ttm_bo_type_device, &cirrusbo->placement,
331 align >> PAGE_SHIFT, false, NULL, acc_size, 331 align >> PAGE_SHIFT, false, acc_size,
332 NULL, NULL, cirrus_bo_ttm_destroy); 332 NULL, NULL, cirrus_bo_ttm_destroy);
333 if (ret) 333 if (ret)
334 return ret; 334 return ret;
diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c
index 50e317a2a4ca..8dfffdbb6b07 100644
--- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c
+++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c
@@ -317,7 +317,7 @@ int hibmc_bo_create(struct drm_device *dev, int size, int align,
317 317
318 ret = ttm_bo_init(&hibmc->bdev, &hibmcbo->bo, size, 318 ret = ttm_bo_init(&hibmc->bdev, &hibmcbo->bo, size,
319 ttm_bo_type_device, &hibmcbo->placement, 319 ttm_bo_type_device, &hibmcbo->placement,
320 align >> PAGE_SHIFT, false, NULL, acc_size, 320 align >> PAGE_SHIFT, false, acc_size,
321 NULL, NULL, hibmc_bo_ttm_destroy); 321 NULL, NULL, hibmc_bo_ttm_destroy);
322 if (ret) { 322 if (ret) {
323 hibmc_bo_unref(&hibmcbo); 323 hibmc_bo_unref(&hibmcbo);
diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mgag200_ttm.c
index cd55ff5f0f0a..69beb2046008 100644
--- a/drivers/gpu/drm/mgag200/mgag200_ttm.c
+++ b/drivers/gpu/drm/mgag200/mgag200_ttm.c
@@ -324,7 +324,7 @@ int mgag200_bo_create(struct drm_device *dev, int size, int align,
324 324
325 ret = ttm_bo_init(&mdev->ttm.bdev, &mgabo->bo, size, 325 ret = ttm_bo_init(&mdev->ttm.bdev, &mgabo->bo, size,
326 ttm_bo_type_device, &mgabo->placement, 326 ttm_bo_type_device, &mgabo->placement,
327 align >> PAGE_SHIFT, false, NULL, acc_size, 327 align >> PAGE_SHIFT, false, acc_size,
328 NULL, NULL, mgag200_bo_ttm_destroy); 328 NULL, NULL, mgag200_bo_ttm_destroy);
329 if (ret) 329 if (ret)
330 return ret; 330 return ret;
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 5c01ccfd3066..49cc8dfcb141 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -298,7 +298,7 @@ nouveau_bo_new(struct nouveau_cli *cli, u64 size, int align,
298 298
299 ret = ttm_bo_init(&drm->ttm.bdev, &nvbo->bo, size, 299 ret = ttm_bo_init(&drm->ttm.bdev, &nvbo->bo, size,
300 type, &nvbo->placement, 300 type, &nvbo->placement,
301 align >> PAGE_SHIFT, false, NULL, acc_size, sg, 301 align >> PAGE_SHIFT, false, acc_size, sg,
302 robj, nouveau_bo_del_ttm); 302 robj, nouveau_bo_del_ttm);
303 if (ret) { 303 if (ret) {
304 /* ttm will call nouveau_bo_del_ttm if it fails.. */ 304 /* ttm will call nouveau_bo_del_ttm if it fails.. */
diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl/qxl_object.c
index f6b80fe47d1f..af62824ed4cc 100644
--- a/drivers/gpu/drm/qxl/qxl_object.c
+++ b/drivers/gpu/drm/qxl/qxl_object.c
@@ -109,7 +109,7 @@ int qxl_bo_create(struct qxl_device *qdev,
109 qxl_ttm_placement_from_domain(bo, domain, pinned); 109 qxl_ttm_placement_from_domain(bo, domain, pinned);
110 110
111 r = ttm_bo_init(&qdev->mman.bdev, &bo->tbo, size, type, 111 r = ttm_bo_init(&qdev->mman.bdev, &bo->tbo, size, type,
112 &bo->placement, 0, !kernel, NULL, size, 112 &bo->placement, 0, !kernel, size,
113 NULL, NULL, &qxl_ttm_bo_destroy); 113 NULL, NULL, &qxl_ttm_bo_destroy);
114 if (unlikely(r != 0)) { 114 if (unlikely(r != 0)) {
115 if (r != -ERESTARTSYS) 115 if (r != -ERESTARTSYS)
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c
index 64ab11d4ea58..38431f682ed0 100644
--- a/drivers/gpu/drm/radeon/radeon_object.c
+++ b/drivers/gpu/drm/radeon/radeon_object.c
@@ -255,8 +255,8 @@ int radeon_bo_create(struct radeon_device *rdev,
255 /* Kernel allocation are uninterruptible */ 255 /* Kernel allocation are uninterruptible */
256 down_read(&rdev->pm.mclk_lock); 256 down_read(&rdev->pm.mclk_lock);
257 r = ttm_bo_init(&rdev->mman.bdev, &bo->tbo, size, type, 257 r = ttm_bo_init(&rdev->mman.bdev, &bo->tbo, size, type,
258 &bo->placement, page_align, !kernel, NULL, 258 &bo->placement, page_align, !kernel, acc_size,
259 acc_size, sg, resv, &radeon_ttm_bo_destroy); 259 sg, resv, &radeon_ttm_bo_destroy);
260 up_read(&rdev->pm.mclk_lock); 260 up_read(&rdev->pm.mclk_lock);
261 if (unlikely(r != 0)) { 261 if (unlikely(r != 0)) {
262 return r; 262 return r;
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 55028745214b..4bfa109e2a66 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -1149,7 +1149,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
1149 struct ttm_placement *placement, 1149 struct ttm_placement *placement,
1150 uint32_t page_alignment, 1150 uint32_t page_alignment,
1151 struct ttm_operation_ctx *ctx, 1151 struct ttm_operation_ctx *ctx,
1152 struct file *persistent_swap_storage,
1153 size_t acc_size, 1152 size_t acc_size,
1154 struct sg_table *sg, 1153 struct sg_table *sg,
1155 struct reservation_object *resv, 1154 struct reservation_object *resv,
@@ -1202,7 +1201,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
1202 bo->mem.bus.io_reserved_count = 0; 1201 bo->mem.bus.io_reserved_count = 0;
1203 bo->moving = NULL; 1202 bo->moving = NULL;
1204 bo->mem.placement = (TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_CACHED); 1203 bo->mem.placement = (TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_CACHED);
1205 bo->persistent_swap_storage = persistent_swap_storage;
1206 bo->acc_size = acc_size; 1204 bo->acc_size = acc_size;
1207 bo->sg = sg; 1205 bo->sg = sg;
1208 if (resv) { 1206 if (resv) {
@@ -1261,7 +1259,6 @@ int ttm_bo_init(struct ttm_bo_device *bdev,
1261 struct ttm_placement *placement, 1259 struct ttm_placement *placement,
1262 uint32_t page_alignment, 1260 uint32_t page_alignment,
1263 bool interruptible, 1261 bool interruptible,
1264 struct file *persistent_swap_storage,
1265 size_t acc_size, 1262 size_t acc_size,
1266 struct sg_table *sg, 1263 struct sg_table *sg,
1267 struct reservation_object *resv, 1264 struct reservation_object *resv,
@@ -1271,8 +1268,7 @@ int ttm_bo_init(struct ttm_bo_device *bdev,
1271 int ret; 1268 int ret;
1272 1269
1273 ret = ttm_bo_init_reserved(bdev, bo, size, type, placement, 1270 ret = ttm_bo_init_reserved(bdev, bo, size, type, placement,
1274 page_alignment, &ctx, 1271 page_alignment, &ctx, acc_size,
1275 persistent_swap_storage, acc_size,
1276 sg, resv, destroy); 1272 sg, resv, destroy);
1277 if (ret) 1273 if (ret)
1278 return ret; 1274 return ret;
@@ -1318,7 +1314,6 @@ int ttm_bo_create(struct ttm_bo_device *bdev,
1318 struct ttm_placement *placement, 1314 struct ttm_placement *placement,
1319 uint32_t page_alignment, 1315 uint32_t page_alignment,
1320 bool interruptible, 1316 bool interruptible,
1321 struct file *persistent_swap_storage,
1322 struct ttm_buffer_object **p_bo) 1317 struct ttm_buffer_object **p_bo)
1323{ 1318{
1324 struct ttm_buffer_object *bo; 1319 struct ttm_buffer_object *bo;
@@ -1331,7 +1326,7 @@ int ttm_bo_create(struct ttm_bo_device *bdev,
1331 1326
1332 acc_size = ttm_bo_acc_size(bdev, size, sizeof(struct ttm_buffer_object)); 1327 acc_size = ttm_bo_acc_size(bdev, size, sizeof(struct ttm_buffer_object));
1333 ret = ttm_bo_init(bdev, bo, size, type, placement, page_alignment, 1328 ret = ttm_bo_init(bdev, bo, size, type, placement, page_alignment,
1334 interruptible, persistent_swap_storage, acc_size, 1329 interruptible, acc_size,
1335 NULL, NULL, NULL); 1330 NULL, NULL, NULL);
1336 if (likely(ret == 0)) 1331 if (likely(ret == 0))
1337 *p_bo = bo; 1332 *p_bo = bo;
diff --git a/drivers/gpu/drm/virtio/virtgpu_object.c b/drivers/gpu/drm/virtio/virtgpu_object.c
index 0b90cdb3d9fe..9f2f470efd9b 100644
--- a/drivers/gpu/drm/virtio/virtgpu_object.c
+++ b/drivers/gpu/drm/virtio/virtgpu_object.c
@@ -89,7 +89,7 @@ int virtio_gpu_object_create(struct virtio_gpu_device *vgdev,
89 virtio_gpu_init_ttm_placement(bo, pinned); 89 virtio_gpu_init_ttm_placement(bo, pinned);
90 90
91 ret = ttm_bo_init(&vgdev->mman.bdev, &bo->tbo, size, type, 91 ret = ttm_bo_init(&vgdev->mman.bdev, &bo->tbo, size, type,
92 &bo->placement, 0, !kernel, NULL, acc_size, 92 &bo->placement, 0, !kernel, acc_size,
93 NULL, NULL, &virtio_gpu_ttm_bo_destroy); 93 NULL, NULL, &virtio_gpu_ttm_bo_destroy);
94 /* ttm_bo_init failure will call the destroy */ 94 /* ttm_bo_init failure will call the destroy */
95 if (ret != 0) 95 if (ret != 0)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
index c706ad30411b..f283324ce598 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
@@ -1245,7 +1245,7 @@ int vmw_cmdbuf_set_pool_size(struct vmw_cmdbuf_man *man,
1245 return -ENOMEM; 1245 return -ENOMEM;
1246 1246
1247 ret = ttm_bo_create(&dev_priv->bdev, size, ttm_bo_type_device, 1247 ret = ttm_bo_create(&dev_priv->bdev, size, ttm_bo_type_device,
1248 &vmw_mob_ne_placement, 0, false, NULL, 1248 &vmw_mob_ne_placement, 0, false,
1249 &man->cmd_space); 1249 &man->cmd_space);
1250 if (ret) 1250 if (ret)
1251 return ret; 1251 return ret;
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_mob.c b/drivers/gpu/drm/vmwgfx/vmwgfx_mob.c
index 736ca47e28ea..d07c585e3c1d 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_mob.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_mob.c
@@ -260,8 +260,7 @@ static int vmw_otable_batch_setup(struct vmw_private *dev_priv,
260 ret = ttm_bo_create(&dev_priv->bdev, bo_size, 260 ret = ttm_bo_create(&dev_priv->bdev, bo_size,
261 ttm_bo_type_device, 261 ttm_bo_type_device,
262 &vmw_sys_ne_placement, 262 &vmw_sys_ne_placement,
263 0, false, NULL, 263 0, false, &batch->otable_bo);
264 &batch->otable_bo);
265 264
266 if (unlikely(ret != 0)) 265 if (unlikely(ret != 0))
267 goto out_no_bo; 266 goto out_no_bo;
@@ -444,7 +443,7 @@ static int vmw_mob_pt_populate(struct vmw_private *dev_priv,
444 ret = ttm_bo_create(&dev_priv->bdev, mob->num_pages * PAGE_SIZE, 443 ret = ttm_bo_create(&dev_priv->bdev, mob->num_pages * PAGE_SIZE,
445 ttm_bo_type_device, 444 ttm_bo_type_device,
446 &vmw_sys_ne_placement, 445 &vmw_sys_ne_placement,
447 0, false, NULL, &mob->pt_bo); 446 0, false, &mob->pt_bo);
448 if (unlikely(ret != 0)) 447 if (unlikely(ret != 0))
449 return ret; 448 return ret;
450 449
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
index 200904ff9a22..9e101450cc4d 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
@@ -384,8 +384,8 @@ int vmw_dmabuf_init(struct vmw_private *dev_priv,
384 384
385 ret = ttm_bo_init(bdev, &vmw_bo->base, size, 385 ret = ttm_bo_init(bdev, &vmw_bo->base, size,
386 ttm_bo_type_device, placement, 386 ttm_bo_type_device, placement,
387 0, interruptible, 387 0, interruptible, acc_size,
388 NULL, acc_size, NULL, NULL, bo_free); 388 NULL, NULL, bo_free);
389 return ret; 389 return ret;
390} 390}
391 391
diff --git a/drivers/staging/vboxvideo/vbox_ttm.c b/drivers/staging/vboxvideo/vbox_ttm.c
index d1a211b61718..2c7daa3d0f24 100644
--- a/drivers/staging/vboxvideo/vbox_ttm.c
+++ b/drivers/staging/vboxvideo/vbox_ttm.c
@@ -331,7 +331,7 @@ int vbox_bo_create(struct drm_device *dev, int size, int align,
331 331
332 ret = ttm_bo_init(&vbox->ttm.bdev, &vboxbo->bo, size, 332 ret = ttm_bo_init(&vbox->ttm.bdev, &vboxbo->bo, size,
333 ttm_bo_type_device, &vboxbo->placement, 333 ttm_bo_type_device, &vboxbo->placement,
334 align >> PAGE_SHIFT, false, NULL, acc_size, 334 align >> PAGE_SHIFT, false, acc_size,
335 NULL, NULL, vbox_bo_ttm_destroy); 335 NULL, NULL, vbox_bo_ttm_destroy);
336 if (ret) 336 if (ret)
337 goto err_free_vboxbo; 337 goto err_free_vboxbo;
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
index a9e0640849d8..8e2fb1ac4e0c 100644
--- a/include/drm/ttm/ttm_bo_api.h
+++ b/include/drm/ttm/ttm_bo_api.h
@@ -467,11 +467,6 @@ size_t ttm_bo_dma_acc_size(struct ttm_bo_device *bdev,
467 * @flags: Initial placement flags. 467 * @flags: Initial placement flags.
468 * @page_alignment: Data alignment in pages. 468 * @page_alignment: Data alignment in pages.
469 * @ctx: TTM operation context for memory allocation. 469 * @ctx: TTM operation context for memory allocation.
470 * @persistent_swap_storage: Usually the swap storage is deleted for buffers
471 * pinned in physical memory. If this behaviour is not desired, this member
472 * holds a pointer to a persistent shmem object. Typically, this would
473 * point to the shmem object backing a GEM object if TTM is used to back a
474 * GEM user interface.
475 * @acc_size: Accounted size for this object. 470 * @acc_size: Accounted size for this object.
476 * @resv: Pointer to a reservation_object, or NULL to let ttm allocate one. 471 * @resv: Pointer to a reservation_object, or NULL to let ttm allocate one.
477 * @destroy: Destroy function. Use NULL for kfree(). 472 * @destroy: Destroy function. Use NULL for kfree().
@@ -504,7 +499,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
504 struct ttm_placement *placement, 499 struct ttm_placement *placement,
505 uint32_t page_alignment, 500 uint32_t page_alignment,
506 struct ttm_operation_ctx *ctx, 501 struct ttm_operation_ctx *ctx,
507 struct file *persistent_swap_storage,
508 size_t acc_size, 502 size_t acc_size,
509 struct sg_table *sg, 503 struct sg_table *sg,
510 struct reservation_object *resv, 504 struct reservation_object *resv,
@@ -521,7 +515,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
521 * @page_alignment: Data alignment in pages. 515 * @page_alignment: Data alignment in pages.
522 * @interruptible: If needing to sleep to wait for GPU resources, 516 * @interruptible: If needing to sleep to wait for GPU resources,
523 * sleep interruptible. 517 * sleep interruptible.
524 * @persistent_swap_storage: Usually the swap storage is deleted for buffers
525 * pinned in physical memory. If this behaviour is not desired, this member 518 * pinned in physical memory. If this behaviour is not desired, this member
526 * holds a pointer to a persistent shmem object. Typically, this would 519 * holds a pointer to a persistent shmem object. Typically, this would
527 * point to the shmem object backing a GEM object if TTM is used to back a 520 * point to the shmem object backing a GEM object if TTM is used to back a
@@ -551,8 +544,7 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
551int ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo, 544int ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo,
552 unsigned long size, enum ttm_bo_type type, 545 unsigned long size, enum ttm_bo_type type,
553 struct ttm_placement *placement, 546 struct ttm_placement *placement,
554 uint32_t page_alignment, bool interrubtible, 547 uint32_t page_alignment, bool interrubtible, size_t acc_size,
555 struct file *persistent_swap_storage, size_t acc_size,
556 struct sg_table *sg, struct reservation_object *resv, 548 struct sg_table *sg, struct reservation_object *resv,
557 void (*destroy) (struct ttm_buffer_object *)); 549 void (*destroy) (struct ttm_buffer_object *));
558 550
@@ -566,11 +558,6 @@ int ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo,
566 * @page_alignment: Data alignment in pages. 558 * @page_alignment: Data alignment in pages.
567 * @interruptible: If needing to sleep while waiting for GPU resources, 559 * @interruptible: If needing to sleep while waiting for GPU resources,
568 * sleep interruptible. 560 * sleep interruptible.
569 * @persistent_swap_storage: Usually the swap storage is deleted for buffers
570 * pinned in physical memory. If this behaviour is not desired, this member
571 * holds a pointer to a persistent shmem object. Typically, this would
572 * point to the shmem object backing a GEM object if TTM is used to back a
573 * GEM user interface.
574 * @p_bo: On successful completion *p_bo points to the created object. 561 * @p_bo: On successful completion *p_bo points to the created object.
575 * 562 *
576 * This function allocates a ttm_buffer_object, and then calls ttm_bo_init 563 * This function allocates a ttm_buffer_object, and then calls ttm_bo_init
@@ -583,7 +570,6 @@ int ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo,
583int ttm_bo_create(struct ttm_bo_device *bdev, unsigned long size, 570int ttm_bo_create(struct ttm_bo_device *bdev, unsigned long size,
584 enum ttm_bo_type type, struct ttm_placement *placement, 571 enum ttm_bo_type type, struct ttm_placement *placement,
585 uint32_t page_alignment, bool interruptible, 572 uint32_t page_alignment, bool interruptible,
586 struct file *persistent_swap_storage,
587 struct ttm_buffer_object **p_bo); 573 struct ttm_buffer_object **p_bo);
588 574
589/** 575/**