aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0277-drm-amdgpu-print-the-bo_list-in-the-CS-trace-point-a.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0277-drm-amdgpu-print-the-bo_list-in-the-CS-trace-point-a.patch')
-rw-r--r--common/recipes-kernel/linux/files/0277-drm-amdgpu-print-the-bo_list-in-the-CS-trace-point-a.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0277-drm-amdgpu-print-the-bo_list-in-the-CS-trace-point-a.patch b/common/recipes-kernel/linux/files/0277-drm-amdgpu-print-the-bo_list-in-the-CS-trace-point-a.patch
new file mode 100644
index 00000000..3e591836
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0277-drm-amdgpu-print-the-bo_list-in-the-CS-trace-point-a.patch
@@ -0,0 +1,46 @@
+From e30590e6e36992a6db28f03409286c164868939f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Wed, 10 Jun 2015 19:21:14 +0200
+Subject: [PATCH 0277/1050] drm/amdgpu: print the bo_list in the CS trace point
+ as well
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Acked-by: Alex Deucher <aleander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
+index ed20f44..961d726 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
+@@ -30,19 +30,21 @@ TRACE_EVENT(amdgpu_cs,
+ TP_PROTO(struct amdgpu_cs_parser *p, int i),
+ TP_ARGS(p, i),
+ TP_STRUCT__entry(
++ __field(struct amdgpu_bo_list *, bo_list)
+ __field(u32, ring)
+ __field(u32, dw)
+ __field(u32, fences)
+ ),
+
+ TP_fast_assign(
++ __entry->bo_list = p->bo_list;
+ __entry->ring = p->ibs[i].ring->idx;
+ __entry->dw = p->ibs[i].length_dw;
+ __entry->fences = amdgpu_fence_count_emitted(
+ p->ibs[i].ring);
+ ),
+- TP_printk("ring=%u, dw=%u, fences=%u",
+- __entry->ring, __entry->dw,
++ TP_printk("bo_list=%p, ring=%u, dw=%u, fences=%u",
++ __entry->bo_list, __entry->ring, __entry->dw,
+ __entry->fences)
+ );
+
+--
+1.9.1
+