summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authormonk.liu <monk.liu@amd.com>2015-05-26 15:03:45 +0800
committerAlex Deucher <alexander.deucher@amd.com>2015-06-03 21:03:55 -0400
commitaeb0aeac2e4f23bb58a642c720883ceba407c072 (patch)
tree6643d5ae7142fa55c2b5acad215595ba12bf47fd /drivers
parentcfe2c9780756b63af695078c110b755876b09dfc (diff)
downloadlinux-stable-aeb0aeac2e4f23bb58a642c720883ceba407c072.tar.gz
linux-stable-aeb0aeac2e4f23bb58a642c720883ceba407c072.tar.bz2
linux-stable-aeb0aeac2e4f23bb58a642c720883ceba407c072.zip
drm/amdgpu: fence should be added to shared slot
Signed-off-by: monk.liu <monk.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: jammy zhou <jammy.zhou@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c4
1 files changed, 2 insertions, 2 deletions
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);