diff options
| author | Nirmoy Das <nirmoy.aiemd@gmail.com> | 2020-06-24 20:26:41 +0200 | 
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2020-06-25 11:58:42 +0200 | 
| commit | b1a8ef952a25a926869deca08b74874ecfadf7ad (patch) | |
| tree | 4c14fbf72e15a67a1d63cc159ce8d8a028f9b023 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | ebf93015097367d4de77deea5d4d9b657dbf7a49 (diff) | |
drm/amdgpu: move ttm bo->offset to amdgpu_bo
GPU address should belong to driver not in memory management.
This patch moves ttm bo.offset and gpu_offset calculation to amdgpu driver.
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/372930/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 5e39ecd8cc28..32edd35d2ccf 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h @@ -282,6 +282,7 @@ int amdgpu_bo_sync_wait_resv(struct amdgpu_device *adev, struct dma_resv *resv,  			     bool intr);  int amdgpu_bo_sync_wait(struct amdgpu_bo *bo, void *owner, bool intr);  u64 amdgpu_bo_gpu_offset(struct amdgpu_bo *bo); +u64 amdgpu_bo_gpu_offset_no_check(struct amdgpu_bo *bo);  int amdgpu_bo_validate(struct amdgpu_bo *bo);  int amdgpu_bo_restore_shadow(struct amdgpu_bo *shadow,  			     struct dma_fence **fence); | 
