]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/amdgpu: rework amdgpu_cs_find_mapping
authorChristian König <christian.koenig@amd.com>
Wed, 6 Sep 2017 14:55:16 +0000 (16:55 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:27:48 +0000 (14:27 -0400)
commitaebc5e6f50f770ec9392c3ca804f18b30797dfa7
tree9101bec930d4a1778616057ffbce270f0ee90330
parent9cca0b8e5df0ac438c65eec5044bfa089d16fbbe
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h