diff options
author | Junwei Zhang <Jerry.Zhang@amd.com> | 2018-06-25 00:51:14 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-10 15:15:39 -0400 |
commit | 7b7c6c81b3a370b46b0c48f4ab7ac3be83237a12 (patch) | |
tree | dd93e3098cbcce0051433e3a173c466dd241ddbf /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | b861686b18538eaaf3530255eb37b4133146fbe2 (diff) |
drm/amdgpu: separate gpu address from bo pin
It could be got by amdgpu_bo_gpu_offset() if need
Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 731748033878..9c3e29a04eb1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -252,10 +252,9 @@ void *amdgpu_bo_kptr(struct amdgpu_bo *bo); | |||
252 | void amdgpu_bo_kunmap(struct amdgpu_bo *bo); | 252 | void amdgpu_bo_kunmap(struct amdgpu_bo *bo); |
253 | struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo); | 253 | struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo); |
254 | void amdgpu_bo_unref(struct amdgpu_bo **bo); | 254 | void amdgpu_bo_unref(struct amdgpu_bo **bo); |
255 | int amdgpu_bo_pin(struct amdgpu_bo *bo, u32 domain, u64 *gpu_addr); | 255 | int amdgpu_bo_pin(struct amdgpu_bo *bo, u32 domain); |
256 | int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain, | 256 | int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain, |
257 | u64 min_offset, u64 max_offset, | 257 | u64 min_offset, u64 max_offset); |
258 | u64 *gpu_addr); | ||
259 | int amdgpu_bo_unpin(struct amdgpu_bo *bo); | 258 | int amdgpu_bo_unpin(struct amdgpu_bo *bo); |
260 | int amdgpu_bo_evict_vram(struct amdgpu_device *adev); | 259 | int amdgpu_bo_evict_vram(struct amdgpu_device *adev); |
261 | int amdgpu_bo_init(struct amdgpu_device *adev); | 260 | int amdgpu_bo_init(struct amdgpu_device *adev); |