diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index fc720603b970..6d08cde8443c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -175,13 +175,15 @@ void amdgpu_ttm_placement_from_domain(struct amdgpu_bo *abo, u32 domain) | |||
175 | * @size: size for the new BO | 175 | * @size: size for the new BO |
176 | * @align: alignment for the new BO | 176 | * @align: alignment for the new BO |
177 | * @domain: where to place it | 177 | * @domain: where to place it |
178 | * @bo_ptr: resulting BO | 178 | * @bo_ptr: used to initialize BOs in structures |
179 | * @gpu_addr: GPU addr of the pinned BO | 179 | * @gpu_addr: GPU addr of the pinned BO |
180 | * @cpu_addr: optional CPU address mapping | 180 | * @cpu_addr: optional CPU address mapping |
181 | * | 181 | * |
182 | * Allocates and pins a BO for kernel internal use, and returns it still | 182 | * Allocates and pins a BO for kernel internal use, and returns it still |
183 | * reserved. | 183 | * reserved. |
184 | * | 184 | * |
185 | * Note: For bo_ptr new BO is only created if bo_ptr points to NULL. | ||
186 | * | ||
185 | * Returns 0 on success, negative error code otherwise. | 187 | * Returns 0 on success, negative error code otherwise. |
186 | */ | 188 | */ |
187 | int amdgpu_bo_create_reserved(struct amdgpu_device *adev, | 189 | int amdgpu_bo_create_reserved(struct amdgpu_device *adev, |
@@ -244,12 +246,14 @@ error_free: | |||
244 | * @size: size for the new BO | 246 | * @size: size for the new BO |
245 | * @align: alignment for the new BO | 247 | * @align: alignment for the new BO |
246 | * @domain: where to place it | 248 | * @domain: where to place it |
247 | * @bo_ptr: resulting BO | 249 | * @bo_ptr: used to initialize BOs in structures |
248 | * @gpu_addr: GPU addr of the pinned BO | 250 | * @gpu_addr: GPU addr of the pinned BO |
249 | * @cpu_addr: optional CPU address mapping | 251 | * @cpu_addr: optional CPU address mapping |
250 | * | 252 | * |
251 | * Allocates and pins a BO for kernel internal use. | 253 | * Allocates and pins a BO for kernel internal use. |
252 | * | 254 | * |
255 | * Note: For bo_ptr new BO is only created if bo_ptr points to NULL. | ||
256 | * | ||
253 | * Returns 0 on success, negative error code otherwise. | 257 | * Returns 0 on success, negative error code otherwise. |
254 | */ | 258 | */ |
255 | int amdgpu_bo_create_kernel(struct amdgpu_device *adev, | 259 | int amdgpu_bo_create_kernel(struct amdgpu_device *adev, |