drm/amdkfd: Release an acquired process vm
authorOak Zeng <Oak.Zeng@amd.com>
Mon, 27 Aug 2018 19:18:36 +0000 (15:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Aug 2018 17:35:00 +0000 (12:35 -0500)
commitbf47afbabf1cf149f9ebc8e1f7dab6913e360dc4
treec199e1bcd080fa3878d025b5c419b8ecb172dd05
parent1685b01a858872075bc258a350153de0c7e95404
drm/amdkfd: Release an acquired process vm

For compute vm acquired from amdgpu, vm.pasid is managed
by kfd. Decouple pasid from such vm on process destroy
to avoid duplicate pasid release.

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_gfx_v7.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
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