diff options
author | Christian König <christian.koenig@amd.com> | 2017-09-06 10:55:16 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-12 14:27:48 -0400 |
commit | aebc5e6f50f770ec9392c3ca804f18b30797dfa7 (patch) | |
tree | 9101bec930d4a1778616057ffbce270f0ee90330 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | 9cca0b8e5df0ac438c65eec5044bfa089d16fbbe (diff) |
drm/amdgpu: rework amdgpu_cs_find_mapping
Use the VM instead of the BO list to find the BO for a virtual address.
This fixes UVD/VCE in physical mode with VM local BOs.
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Leo Liu <leo.liu@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 | 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 42492e63b3a2..a4891bea2ca8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -35,6 +35,7 @@ | |||
35 | 35 | ||
36 | /* bo virtual addresses in a vm */ | 36 | /* bo virtual addresses in a vm */ |
37 | struct amdgpu_bo_va_mapping { | 37 | struct amdgpu_bo_va_mapping { |
38 | struct amdgpu_bo_va *bo_va; | ||
38 | struct list_head list; | 39 | struct list_head list; |
39 | struct rb_node rb; | 40 | struct rb_node rb; |
40 | uint64_t start; | 41 | uint64_t start; |