提交 64350f1b 编写于 作者: A Andrey Grodzovsky 提交者: Alex Deucher

drm/amdgpu: Improve documentation of bo_ptr in amdgpu_bo_create_kernel

and amdgpu_bo_create_reserved.
Signed-off-by: NAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: NChristian König <christian.koenig@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 a3f73c8c
...@@ -175,13 +175,15 @@ void amdgpu_ttm_placement_from_domain(struct amdgpu_bo *abo, u32 domain) ...@@ -175,13 +175,15 @@ void amdgpu_ttm_placement_from_domain(struct amdgpu_bo *abo, u32 domain)
* @size: size for the new BO * @size: size for the new BO
* @align: alignment for the new BO * @align: alignment for the new BO
* @domain: where to place it * @domain: where to place it
* @bo_ptr: resulting BO * @bo_ptr: used to initialize BOs in structures
* @gpu_addr: GPU addr of the pinned BO * @gpu_addr: GPU addr of the pinned BO
* @cpu_addr: optional CPU address mapping * @cpu_addr: optional CPU address mapping
* *
* Allocates and pins a BO for kernel internal use, and returns it still * Allocates and pins a BO for kernel internal use, and returns it still
* reserved. * reserved.
* *
* Note: For bo_ptr new BO is only created if bo_ptr points to NULL.
*
* Returns 0 on success, negative error code otherwise. * Returns 0 on success, negative error code otherwise.
*/ */
int amdgpu_bo_create_reserved(struct amdgpu_device *adev, int amdgpu_bo_create_reserved(struct amdgpu_device *adev,
...@@ -244,12 +246,14 @@ int amdgpu_bo_create_reserved(struct amdgpu_device *adev, ...@@ -244,12 +246,14 @@ int amdgpu_bo_create_reserved(struct amdgpu_device *adev,
* @size: size for the new BO * @size: size for the new BO
* @align: alignment for the new BO * @align: alignment for the new BO
* @domain: where to place it * @domain: where to place it
* @bo_ptr: resulting BO * @bo_ptr: used to initialize BOs in structures
* @gpu_addr: GPU addr of the pinned BO * @gpu_addr: GPU addr of the pinned BO
* @cpu_addr: optional CPU address mapping * @cpu_addr: optional CPU address mapping
* *
* Allocates and pins a BO for kernel internal use. * Allocates and pins a BO for kernel internal use.
* *
* Note: For bo_ptr new BO is only created if bo_ptr points to NULL.
*
* Returns 0 on success, negative error code otherwise. * Returns 0 on success, negative error code otherwise.
*/ */
int amdgpu_bo_create_kernel(struct amdgpu_device *adev, int amdgpu_bo_create_kernel(struct amdgpu_device *adev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册