aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0427-drm-amdgpu-add-amd_sched_next_queued_seq-function.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0427-drm-amdgpu-add-amd_sched_next_queued_seq-function.patch')
-rw-r--r--common/recipes-kernel/linux/files/0427-drm-amdgpu-add-amd_sched_next_queued_seq-function.patch66
1 files changed, 0 insertions, 66 deletions
diff --git a/common/recipes-kernel/linux/files/0427-drm-amdgpu-add-amd_sched_next_queued_seq-function.patch b/common/recipes-kernel/linux/files/0427-drm-amdgpu-add-amd_sched_next_queued_seq-function.patch
deleted file mode 100644
index e2f4c470..00000000
--- a/common/recipes-kernel/linux/files/0427-drm-amdgpu-add-amd_sched_next_queued_seq-function.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From 27f6642d066ecea7b535dd9b24e2f41e54f3dd85 Mon Sep 17 00:00:00 2001
-From: Jammy Zhou <Jammy.Zhou@amd.com>
-Date: Mon, 3 Aug 2015 10:27:57 +0800
-Subject: [PATCH 0427/1050] drm/amdgpu: add amd_sched_next_queued_seq function
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This function is used to get the next queued sequence number
-
-Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
-Reviewed-by: Christian König <christian.koenig@amd.com>
-Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 2 +-
- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 12 ++++++++++++
- drivers/gpu/drm/amd/scheduler/gpu_scheduler.h | 2 ++
- 3 files changed, 15 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
-index e0eaa55..6766ead 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
-@@ -310,7 +310,7 @@ struct fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx,
-
- spin_lock(&ctx->ring_lock);
- if (amdgpu_enable_scheduler)
-- queued_seq = atomic64_read(&cring->c_entity.last_queued_v_seq) + 1;
-+ queued_seq = amd_sched_next_queued_seq(&cring->c_entity);
- else
- queued_seq = cring->sequence;
-
-diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
-index 55ebbf0..4ad1825 100644
---- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
-+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
-@@ -507,3 +507,15 @@ void amd_sched_emit(struct amd_context_entity *c_entity, uint64_t seq)
- atomic64_set(&c_entity->last_emitted_v_seq, seq);
- wake_up_all(&c_entity->wait_emit);
- }
-+
-+/**
-+ * Get next queued sequence number
-+ *
-+ * @entity The context entity
-+ *
-+ * return the next queued sequence number
-+*/
-+uint64_t amd_sched_next_queued_seq(struct amd_context_entity *c_entity)
-+{
-+ return atomic64_read(&c_entity->last_queued_v_seq) + 1;
-+}
-diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
-index 44f71cd..fd6d699 100644
---- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
-+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
-@@ -153,4 +153,6 @@ int amd_context_entity_init(struct amd_gpu_scheduler *sched,
-
- void amd_sched_emit(struct amd_context_entity *c_entity, uint64_t seq);
-
-+uint64_t amd_sched_next_queued_seq(struct amd_context_entity *c_entity);
-+
- #endif
---
-1.9.1
-