drm/amdgpu: Add amdgpu_sync_wait
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Mon, 15 May 2017 19:09:15 +0000 (15:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2017 15:29:46 +0000 (11:29 -0400)
commita6583af4ae1c4afa755d8d4a4e7768dd36176395
tree823acf78c3721a78a31972ba8f02472f1e67171c
parent9a4b7d4c769e7513dec8f441de1f521ec4ead4b6
drm/amdgpu: Add amdgpu_sync_wait

v2: Add intr option

Helper function useful for CPU update of VM page tables. Also useful if
kernel have to synchronously wait till VM page tables are updated.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@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_sync.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h