aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0701-drm-scheduler-Remove-entity-rq-NULL-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0701-drm-scheduler-Remove-entity-rq-NULL-check.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0701-drm-scheduler-Remove-entity-rq-NULL-check.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0701-drm-scheduler-Remove-entity-rq-NULL-check.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0701-drm-scheduler-Remove-entity-rq-NULL-check.patch
new file mode 100644
index 00000000..7122fec3
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0701-drm-scheduler-Remove-entity-rq-NULL-check.patch
@@ -0,0 +1,36 @@
+From f014bbb8693988b7b465889fd30a19507485a823 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Fri, 3 Aug 2018 13:07:36 +0200
+Subject: [PATCH 0701/2940] drm/scheduler: Remove entity->rq NULL check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+That is superflous now.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Acked-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/scheduler/gpu_scheduler.c | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/drivers/gpu/drm/scheduler/gpu_scheduler.c b/drivers/gpu/drm/scheduler/gpu_scheduler.c
+index 65d22e11059e..41c277bdea82 100644
+--- a/drivers/gpu/drm/scheduler/gpu_scheduler.c
++++ b/drivers/gpu/drm/scheduler/gpu_scheduler.c
+@@ -626,11 +626,6 @@ void drm_sched_entity_push_job(struct drm_sched_job *sched_job,
+ if (first) {
+ /* Add the entity to the run queue */
+ spin_lock(&entity->rq_lock);
+- if (!entity->rq) {
+- DRM_ERROR("Trying to push to a killed entity\n");
+- spin_unlock(&entity->rq_lock);
+- return;
+- }
+ drm_sched_rq_add_entity(entity->rq, entity);
+ spin_unlock(&entity->rq_lock);
+ drm_sched_wakeup(entity->rq->sched);
+--
+2.17.1
+