]> 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)
commit7d37b20e216a3a6c8fcbcf1eb2d30697e37975ab
treec2e1cc23849d7ed9fff87b90e88d4bc5118bf00b
parentcf21adb3f3227178bd59c6d5561862a9494f5181
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