drm/amdgpu: Verify root PD is mapped into kernel address space (v4)
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 5 Jul 2018 18:49:34 +0000 (14:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jul 2018 19:17:43 +0000 (14:17 -0500)
commite85115786ae1bdcfd86da759928a2b644204d42a
tree509b76fd89df3315869be5569b4e5f4c3e2ba0a0
parentefaa96463929684ceca4be96d0959e9ced1fa093
drm/amdgpu: Verify root PD is mapped into kernel address space (v4)

Problem: When PD/PT update made by CPU root PD was not yet mapped causing
page fault.

Fix: Verify root PD is mapped into CPU address space.

v2:
Make sure that we add the root PD to the relocated list
since then it's get mapped into CPU address space bt default
in amdgpu_vm_update_directories.

v3:
Drop change to not move kernel type BOs to evicted list.

v4:
Remove redundant bo move to relocated list.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=107065
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c