aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0881-drm-amdgpu-fix-lost-sync_to-if-scheduler-is-enabled.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0881-drm-amdgpu-fix-lost-sync_to-if-scheduler-is-enabled.patch')
-rw-r--r--common/recipes-kernel/linux/files/0881-drm-amdgpu-fix-lost-sync_to-if-scheduler-is-enabled.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/common/recipes-kernel/linux/files/0881-drm-amdgpu-fix-lost-sync_to-if-scheduler-is-enabled.patch b/common/recipes-kernel/linux/files/0881-drm-amdgpu-fix-lost-sync_to-if-scheduler-is-enabled.patch
deleted file mode 100644
index ecfd4765..00000000
--- a/common/recipes-kernel/linux/files/0881-drm-amdgpu-fix-lost-sync_to-if-scheduler-is-enabled.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 391506ac3546213238d76fd5d646916246d37188 Mon Sep 17 00:00:00 2001
-From: Chunming Zhou <David1.Zhou@amd.com>
-Date: Wed, 13 Jan 2016 12:55:18 +0800
-Subject: [PATCH 0881/1565] drm/amdgpu: fix lost sync_to if scheduler is
- enabled.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-when scheduler is enabled, the semaphore isn't used at all.
-
-Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
-Reviewed-by: Christian König <christian.koenig@amd.com>
-Cc: stable@vger.kernel.org
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
-index dd005c3..181ce39 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
-@@ -293,7 +293,8 @@ int amdgpu_sync_rings(struct amdgpu_sync *sync,
- fence = to_amdgpu_fence(sync->sync_to[i]);
-
- /* check if we really need to sync */
-- if (!amdgpu_fence_need_sync(fence, ring))
-+ if (!amdgpu_enable_scheduler &&
-+ !amdgpu_fence_need_sync(fence, ring))
- continue;
-
- /* prevent GPU deadlocks */
-@@ -303,7 +304,7 @@ int amdgpu_sync_rings(struct amdgpu_sync *sync,
- }
-
- if (amdgpu_enable_scheduler || !amdgpu_enable_semaphores) {
-- r = fence_wait(&fence->base, true);
-+ r = fence_wait(sync->sync_to[i], true);
- if (r)
- return r;
- continue;
---
-1.9.1
-