diff options
| author | Christian König <[email protected]> | 2015-12-14 12:18:01 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-08-08 15:32:15 +0000 |
| commit | 7c204889dec5e745cdcc174388fa3aa824e75160 (patch) | |
| tree | da3bd3470ed92ad83da9e349e1386f396a89220f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | drm/amdgpu: add dce10 check_soft_reset (diff) | |
| download | kernel-7c204889dec5e745cdcc174388fa3aa824e75160.tar.gz kernel-7c204889dec5e745cdcc174388fa3aa824e75160.zip | |
drm/amdgpu: add new helper for in kernel allocations
We often allocate, pin and map things at the same time in the kernel.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Chunming Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index bdb01d932548..ae188a88082d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h @@ -139,6 +139,10 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev, struct ttm_placement *placement, struct reservation_object *resv, struct amdgpu_bo **bo_ptr); +int amdgpu_bo_create_kernel(struct amdgpu_device *adev, + unsigned long size, int align, + u32 domain, struct amdgpu_bo **bo_ptr, + u64 *gpu_addr, void **cpu_addr); int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr); void amdgpu_bo_kunmap(struct amdgpu_bo *bo); struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo); |
