From: monk.liu Date: Tue, 26 May 2015 07:03:45 +0000 (+0800) Subject: drm/amdgpu: fence should be added to shared slot X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aeb0aeac2e4f23bb58a642c720883ceba407c072;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu: fence should be added to shared slot Signed-off-by: monk.liu Reviewed-by: Christian König Reviewed-by: jammy zhou --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 4d26b303b495..fd28e890693e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -344,7 +344,7 @@ static int amdgpu_vm_clear_bo(struct amdgpu_device *adev, if (r) goto error_free; - amdgpu_bo_fence(bo, ib.fence, false); + amdgpu_bo_fence(bo, ib.fence, true); error_free: amdgpu_ib_free(adev, &ib); @@ -462,7 +462,7 @@ int amdgpu_vm_update_page_directory(struct amdgpu_device *adev, amdgpu_ib_free(adev, &ib); return r; } - amdgpu_bo_fence(pd, ib.fence, false); + amdgpu_bo_fence(pd, ib.fence, true); } amdgpu_ib_free(adev, &ib);