drm/amdgpu: fix amdgpu_vm_bo_wait
authorChristian König <christian.koenig@amd.com>
Tue, 11 Jul 2017 15:13:00 +0000 (17:13 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:43 +0000 (11:06 -0400)
commita33cab7aacb2aa5bfe82ea6beaf51870af84a10e
treec2e1cc23849d7ed9fff87b90e88d4bc5118bf00b
parent6f1ceabbd7091b81139e342fc2b08105bc4fa035
drm/amdgpu: fix amdgpu_vm_bo_wait

We need to wait with the correct owner on unmap operations or otherwise can run
into VM faults.

Also always wait for the page directory since this is where the reservation
object comes from. So rename the function to amdgpu_vm_wait_pd instead as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c