Skip to content

Commit 91302d6

Browse files
amoskongChristianKoenigAMD
authored andcommitted
drm/ttm_bo_api: update the description for @placement and @sg
Correct the argument name of @placement and added @sg description for ttm_bo_init() and ttm_bo_init_reserved(). Argument @flags was replaced to @placement by Jerome in commit 09855ac Argument @sg was added by Dave in commit 129b78b Signed-off-by: Amos Kong <[email protected]> Cc: Jerome Glisse <[email protected]> Cc: Dave Airlie <[email protected]> Reviewed-by: Christian König <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/38eac09bf2ddd6088cc8a126e6bc4792eaa2dc88.1633462176.git.amos@sietium.com Signed-off-by: Christian König <[email protected]>
1 parent 381ba6a commit 91302d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/drm/ttm/ttm_bo_api.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,10 @@ bool ttm_bo_eviction_valuable(struct ttm_buffer_object *bo,
351351
* @bo: Pointer to a ttm_buffer_object to be initialized.
352352
* @size: Requested size of buffer object.
353353
* @type: Requested type of buffer object.
354-
* @flags: Initial placement flags.
354+
* @placement: Initial placement for buffer object.
355355
* @page_alignment: Data alignment in pages.
356356
* @ctx: TTM operation context for memory allocation.
357+
* @sg: Scatter-gather table.
357358
* @resv: Pointer to a dma_resv, or NULL to let ttm allocate one.
358359
* @destroy: Destroy function. Use NULL for kfree().
359360
*
@@ -394,14 +395,15 @@ int ttm_bo_init_reserved(struct ttm_device *bdev,
394395
* @bo: Pointer to a ttm_buffer_object to be initialized.
395396
* @size: Requested size of buffer object.
396397
* @type: Requested type of buffer object.
397-
* @flags: Initial placement flags.
398+
* @placement: Initial placement for buffer object.
398399
* @page_alignment: Data alignment in pages.
399400
* @interruptible: If needing to sleep to wait for GPU resources,
400401
* sleep interruptible.
401402
* pinned in physical memory. If this behaviour is not desired, this member
402403
* holds a pointer to a persistent shmem object. Typically, this would
403404
* point to the shmem object backing a GEM object if TTM is used to back a
404405
* GEM user interface.
406+
* @sg: Scatter-gather table.
405407
* @resv: Pointer to a dma_resv, or NULL to let ttm allocate one.
406408
* @destroy: Destroy function. Use NULL for kfree().
407409
*

0 commit comments

Comments
 (0)