diff options
author | Junwei Zhang <Jerry.Zhang@amd.com> | 2016-09-07 22:13:32 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-14 15:10:26 -0400 |
commit | aa1d562e645d2542b48bdd42903726adfc87efb3 (patch) | |
tree | 7f3d07a3afa835a5ebfe30bd649398caca796daf /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | ad2473af273b81cf184d6e43a395a128d4db7b87 (diff) |
drm/amdgpu: add a new helper to free a BO in kernel allocations
Free the BO allocated by amdgpu_bo_create_kernel()
Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index b6a27390ef88..3032c541ef0e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -128,6 +128,8 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev, | |||
128 | unsigned long size, int align, | 128 | unsigned long size, int align, |
129 | u32 domain, struct amdgpu_bo **bo_ptr, | 129 | u32 domain, struct amdgpu_bo **bo_ptr, |
130 | u64 *gpu_addr, void **cpu_addr); | 130 | u64 *gpu_addr, void **cpu_addr); |
131 | void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr, | ||
132 | void **cpu_addr); | ||
131 | int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr); | 133 | int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr); |
132 | void amdgpu_bo_kunmap(struct amdgpu_bo *bo); | 134 | void amdgpu_bo_kunmap(struct amdgpu_bo *bo); |
133 | struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo); | 135 | struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo); |