drm/amdgpu: parameterize ttm BO destroy callback

Make provision to pass different ttm BO destroy callback
while creating a amdgpu_bo.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Nirmoy Das
2021-06-14 19:49:50 +02:00
committed by Alex Deucher
parent 391629bdfc
commit 23e24fbb76
2 changed files with 32 additions and 12 deletions

View File

@@ -55,7 +55,8 @@ struct amdgpu_bo_param {
u64 flags;
enum ttm_bo_type type;
bool no_wait_gpu;
struct dma_resv *resv;
struct dma_resv *resv;
void (*destroy)(struct ttm_buffer_object *bo);
};
/* bo virtual addresses in a vm */