aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0181-drm-amdgpu-fix-next_rptr-handling-for-debugfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0181-drm-amdgpu-fix-next_rptr-handling-for-debugfs.patch')
-rw-r--r--common/recipes-kernel/linux/files/0181-drm-amdgpu-fix-next_rptr-handling-for-debugfs.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0181-drm-amdgpu-fix-next_rptr-handling-for-debugfs.patch b/common/recipes-kernel/linux/files/0181-drm-amdgpu-fix-next_rptr-handling-for-debugfs.patch
new file mode 100644
index 00000000..2b15e93e
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0181-drm-amdgpu-fix-next_rptr-handling-for-debugfs.patch
@@ -0,0 +1,33 @@
+From fcd0db4290ef306be51ef9855481f6ca68e1535f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Thu, 21 Jan 2016 12:56:52 +0100
+Subject: [PATCH 0181/1110] drm/amdgpu: fix next_rptr handling for debugfs
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+That somehow got lost.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
+index 78e9b0f..d1f234d 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
+@@ -487,7 +487,7 @@ static int amdgpu_debugfs_ring_info(struct seq_file *m, void *data)
+ seq_printf(m, "rptr: 0x%08x [%5d]\n",
+ rptr, rptr);
+
+- rptr_next = ~0;
++ rptr_next = le32_to_cpu(*ring->next_rptr_cpu_addr);
+
+ seq_printf(m, "driver's copy of the wptr: 0x%08x [%5d]\n",
+ ring->wptr, ring->wptr);
+--
+2.7.4
+