aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-03-13 19:42:34 -0400
committerDave Airlie <airlied@redhat.com>2016-03-13 19:46:02 -0400
commit9b61c0fcdf0cfd20a85d9856d46142e7f297de0a (patch)
treed4abe6aa3f4e1e088f9da1d0597e078b1fe58912 /drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
parent550e3b23a53c88adfa46e64f9d442743e65d47da (diff)
parent125234dc8b1cc862f52d8bd5b37c36cc59b2cb86 (diff)
Merge drm-fixes into drm-next.
Nouveau wanted this to avoid some worse conflicts when I merge that.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
index 7d8f8f1e3f7f..2faf03bcda21 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
@@ -357,12 +357,15 @@ int amdgpu_sa_bo_new(struct amdgpu_sa_manager *sa_manager,
357 357
358 for (i = 0, count = 0; i < AMDGPU_MAX_RINGS; ++i) 358 for (i = 0, count = 0; i < AMDGPU_MAX_RINGS; ++i)
359 if (fences[i]) 359 if (fences[i])
360 fences[count++] = fences[i]; 360 fences[count++] = fence_get(fences[i]);
361 361
362 if (count) { 362 if (count) {
363 spin_unlock(&sa_manager->wq.lock); 363 spin_unlock(&sa_manager->wq.lock);
364 t = fence_wait_any_timeout(fences, count, false, 364 t = fence_wait_any_timeout(fences, count, false,
365 MAX_SCHEDULE_TIMEOUT); 365 MAX_SCHEDULE_TIMEOUT);
366 for (i = 0; i < count; ++i)
367 fence_put(fences[i]);
368
366 r = (t > 0) ? 0 : t; 369 r = (t > 0) ? 0 : t;
367 spin_lock(&sa_manager->wq.lock); 370 spin_lock(&sa_manager->wq.lock);
368 } else { 371 } else {