aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/1001-amdgpu-vce3-Simplify-vce_v3_0_process_interrupt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/1001-amdgpu-vce3-Simplify-vce_v3_0_process_interrupt.patch')
-rw-r--r--common/recipes-kernel/linux/files/1001-amdgpu-vce3-Simplify-vce_v3_0_process_interrupt.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/1001-amdgpu-vce3-Simplify-vce_v3_0_process_interrupt.patch b/common/recipes-kernel/linux/files/1001-amdgpu-vce3-Simplify-vce_v3_0_process_interrupt.patch
new file mode 100644
index 00000000..0c14ad5f
--- /dev/null
+++ b/common/recipes-kernel/linux/files/1001-amdgpu-vce3-Simplify-vce_v3_0_process_interrupt.patch
@@ -0,0 +1,35 @@
+From 443b8e37dbfa78e80e4a18c1ec78ef02af3efcc7 Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Tue, 15 Dec 2015 10:42:39 -0500
+Subject: [PATCH 1001/1050] amdgpu/vce3: Simplify vce_v3_0_process_interrupt()
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fold two cases into one for a LOC reduction.
+
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+index 9c69e53..be42f99 100644
+--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+@@ -663,10 +663,8 @@ static int vce_v3_0_process_interrupt(struct amdgpu_device *adev,
+
+ switch (entry->src_data) {
+ case 0:
+- amdgpu_fence_process(&adev->vce.ring[0]);
+- break;
+ case 1:
+- amdgpu_fence_process(&adev->vce.ring[1]);
++ amdgpu_fence_process(&adev->vce.ring[entry->src_data]);
+ break;
+ default:
+ DRM_ERROR("Unhandled interrupt: %d %d\n",
+--
+1.9.1
+