drm/ttm_bo_api: update the description for @placement and @sg
Subsystems (2)
PATCH 1/1 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 09855acb1c2e3779f25317ec9a8ffe1b1784a4a8
Argument @sg was added by Dave in commit129b78bfca591e736e56a294f0e357d73d938f7e
Signed-off-by Amos Kong <[email protected]>
Cc Jerome Glisse <[email protected]>
Cc Dave Airlie <[email protected]>
--- include/drm/ttm/ttm_bo_api.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
include/drm/ttm/ttm_bo_api.h +4 -2
@@ -363,9 +363,10 @@ bool ttm_bo_eviction_valuable(struct ttm_buffer_object *bo,* @bo: Pointer to a ttm_buffer_object to be initialized. * @size: Requested size of buffer object. * @type: Requested type of buffer object. -* @flags: Initial placement flags. +* @placement: Initial placement for buffer object. * @page_alignment: Data alignment in pages. * @ctx: TTM operation context for memory allocation. +* @sg: Scatter-gather table. * @resv: Pointer to a dma_resv, or NULL to let ttm allocate one. * @destroy: Destroy function. Use NULL for kfree(). *
@@ -406,7 +407,7 @@ int ttm_bo_init_reserved(struct ttm_device *bdev,* @bo: Pointer to a ttm_buffer_object to be initialized. * @size: Requested size of buffer object. * @type: Requested type of buffer object. -* @flags: Initial placement flags. +* @placement: Initial placement for buffer object. * @page_alignment: Data alignment in pages. * @interruptible: If needing to sleep to wait for GPU resources, * sleep interruptible.
@@ -414,6 +415,7 @@ int ttm_bo_init_reserved(struct ttm_device *bdev,* holds a pointer to a persistent shmem object. Typically, this would * point to the shmem object backing a GEM object if TTM is used to back a * GEM user interface. +* @sg: Scatter-gather table. * @resv: Pointer to a dma_resv, or NULL to let ttm allocate one. * @destroy: Destroy function. Use NULL for kfree(). *
Signature · 1 line
2.31.1
Am 05.10.21 um 21:35 schrieb Amos Kong:
Quoted 6 lines
Correct the argument name of @placement and added @sg description for
ttm_bo_init()andttm_bo_init_reserved().Argument @flags was replaced to @placement by Jerome in commit
09855acb1c2e3779f25317ec9a8ffe1b1784a4a8
Quoted 6 lines
Argument @sg was added by Dave in commit
129b78bfca591e736e56a294f0e357d73d938f7eSigned-off-by Amos Kong <[email protected]>Cc Jerome Glisse <[email protected]>Cc Dave Airlie <[email protected]>
Reviewed-by Christian König <[email protected]>
Going to push that to drm-misc-next later today.
Quoted 37 lines
--- include/drm/ttm/ttm_bo_api.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)include/drm/ttm/ttm_bo_api.h +4
-2@@ -363,9 +363,10 @@ bool ttm_bo_eviction_valuable(struct ttm_buffer_object *bo,* @bo: Pointer to a ttm_buffer_object to be initialized. * @size: Requested size of buffer object. * @type: Requested type of buffer object. -* @flags: Initial placement flags. +* @placement: Initial placement for buffer object. * @page_alignment: Data alignment in pages. * @ctx: TTM operation context for memory allocation. +* @sg: Scatter-gather table. * @resv: Pointer to a dma_resv, or NULL to let ttm allocate one. * @destroy: Destroy function. Use NULL for kfree(). * @@ -406,7 +407,7 @@ int ttm_bo_init_reserved(struct ttm_device *bdev,* @bo: Pointer to a ttm_buffer_object to be initialized. * @size: Requested size of buffer object. * @type: Requested type of buffer object. -* @flags: Initial placement flags. +* @placement: Initial placement for buffer object. * @page_alignment: Data alignment in pages. * @interruptible: If needing to sleep to wait for GPU resources, * sleep interruptible. @@ -414,6 +415,7 @@ int ttm_bo_init_reserved(struct ttm_device *bdev,* holds a pointer to a persistent shmem object. Typically, this would * point to the shmem object backing a GEM object if TTM is used to back a * GEM user interface. +* @sg: Scatter-gather table. * @resv: Pointer to a dma_resv, or NULL to let ttm allocate one. * @destroy: Destroy function. Use NULL for kfree(). *