aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0531-drm-amdgpu-fix-warning-in-scheduler.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0531-drm-amdgpu-fix-warning-in-scheduler.patch')
-rw-r--r--common/recipes-kernel/linux/files/0531-drm-amdgpu-fix-warning-in-scheduler.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/common/recipes-kernel/linux/files/0531-drm-amdgpu-fix-warning-in-scheduler.patch b/common/recipes-kernel/linux/files/0531-drm-amdgpu-fix-warning-in-scheduler.patch
deleted file mode 100644
index 84cebe34..00000000
--- a/common/recipes-kernel/linux/files/0531-drm-amdgpu-fix-warning-in-scheduler.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 5134e999cb72c621f48305d5c201ab30156505c1 Mon Sep 17 00:00:00 2001
-From: Alex Deucher <alexander.deucher@amd.com>
-Date: Fri, 4 Sep 2015 00:11:54 -0400
-Subject: [PATCH 0531/1050] drm/amdgpu: fix warning in scheduler
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This should never happen so warn when the count does
-not equal the expected size.
-
-Reviewed-by: Christian König <christian.koenig@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
----
- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
-index ab8577f..9259f1b 100644
---- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
-+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
-@@ -332,7 +332,7 @@ static int amd_sched_main(void *param)
- {
- struct sched_param sparam = {.sched_priority = 1};
- struct amd_gpu_scheduler *sched = (struct amd_gpu_scheduler *)param;
-- int r;
-+ int r, count;
-
- sched_setscheduler(current, SCHED_FIFO, &sparam);
-
-@@ -361,7 +361,8 @@ static int amd_sched_main(void *param)
- fence_put(fence);
- }
-
-- kfifo_out(&entity->job_queue, &job, sizeof(job));
-+ count = kfifo_out(&entity->job_queue, &job, sizeof(job));
-+ WARN_ON(count != sizeof(job));
- wake_up(&sched->job_scheduled);
- }
- return 0;
---
-1.9.1
-