diff options
author | Christian König <christian.koenig@amd.com> | 2017-09-06 16:55:16 +0200 |
---|---|---|
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) | |
download | linux-aebc5e6f50f770ec9392c3ca804f18b30797dfa7.tar.gz linux-aebc5e6f50f770ec9392c3ca804f18b30797dfa7.tar.bz2 linux-aebc5e6f50f770ec9392c3ca804f18b30797dfa7.zip |
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 @@ /* bo virtual addresses in a vm */ struct amdgpu_bo_va_mapping { + struct amdgpu_bo_va *bo_va; struct list_head list; struct rb_node rb; uint64_t start; |