drm/amdgpu: Set pasid for compute vm (v2)
authorOak Zeng <Oak.Zeng@amd.com>
Wed, 29 Aug 2018 17:33:52 +0000 (12:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Aug 2018 17:34:49 +0000 (12:34 -0500)
commit1685b01a858872075bc258a350153de0c7e95404
tree18b1596da9dc1a082b7c78f12fdd7dd092bf5c11
parentbdb1922abd620d24715906bac4d119274d98f4c9
drm/amdgpu: Set pasid for compute vm (v2)

To make a amdgpu vm to a compute vm, the old pasid will be freed and
replaced with a pasid managed by kfd. Kfd can't reuse original pasid
allocated by amdgpu because kfd uses different pasid policy with amdgpu.
For example, all graphic devices share one same pasid in a process.

v2: rebase (Alex)

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h