]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6e912709ff0f2192ea37d03cf4886fcbe3ce452
treec2e1cc23849d7ed9fff87b90e88d4bc5118bf00b
parent6b451c0d763e1895ee1a2254d84388c8ab2dee41
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