drm/amdgpu: add VM update fences back to the root PD v2
authorChristian König <christian.koenig@amd.com>
Wed, 19 Feb 2020 14:15:22 +0000 (15:15 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:17:33 +0000 (14:17 -0500)
commit42e5fee65e918f16b178ea242b6a96234411cc53
treea16ce5a8cdfbe1373d3d5c7e83494c222b9a9428
parent6f9f960472c348b3753d63bd85c9b37d7c083cff
drm/amdgpu: add VM update fences back to the root PD v2

Add update fences to the root PD while mapping BOs.

Otherwise PDs freed during the mapping won't wait for
updates to finish and can cause corruptions.

v2: rebased on drm-misc-next

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 90b69cdc5f159 drm/amdgpu: stop adding VM updates fences to the resv obj
Reviewed-by: xinhui pan <xinhui.pan@amd.com>
Tested-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c