drm/amdgpu: call amdgpu_vm_prt_fini before deleting the root PD
authorPelloux-prayer, Pierre-eric <Pierre-eric.Pelloux-prayer@amd.com>
Wed, 23 Oct 2019 12:02:45 +0000 (12:02 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:47:07 +0000 (16:47 -0400)
commitee8bcc2333cc9e24e260e590131fa21c003e41ba
tree5fa6daaccc6c6bfaa739709fac1f11f3ad04e3cc
parent4ff17a1df7d550257972a838220a8af4611c8f2c
drm/amdgpu: call amdgpu_vm_prt_fini before deleting the root PD

amdgpu_vm_prt_fini uses "vm->root.base.bo" so it must still be valid when
we call it.

Fixes: b65709a92156 ("drm/amdgpu: reserve the root PD while freeing PASIDs")
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c