drm/amdgpu: Add helper to wait for BO fences using a sync object
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 4 Feb 2019 22:46:35 +0000 (17:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Feb 2019 22:50:32 +0000 (17:50 -0500)
commite8e32426b1271d3387208c3a6eaf7c166bea9975
tree3b5e4047acc9f3f7e679472f000e448deeb9c6e5
parent2c11ee6ae5533821cf2c64972d6cb5aa4ab4a46e
drm/amdgpu: Add helper to wait for BO fences using a sync object

Creates a temporary sync object to wait for the BO reservation. This
generalizes amdgpu_vm_wait_pd.

Signed-off-by: Felix Kuehling <Felix.Kuehling@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_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c