aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0588-drm-amdgpu-atom-implement-debug-opcode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0588-drm-amdgpu-atom-implement-debug-opcode.patch')
-rw-r--r--common/recipes-kernel/linux/files/0588-drm-amdgpu-atom-implement-debug-opcode.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0588-drm-amdgpu-atom-implement-debug-opcode.patch b/common/recipes-kernel/linux/files/0588-drm-amdgpu-atom-implement-debug-opcode.patch
new file mode 100644
index 00000000..ebe00860
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0588-drm-amdgpu-atom-implement-debug-opcode.patch
@@ -0,0 +1,33 @@
+From 3d0eaf95785c0e8fe2941569ccb08a0b077c90ea Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Fri, 2 Oct 2015 13:53:33 -0400
+Subject: [PATCH 0588/1050] drm/amdgpu/atom: implement debug opcode
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Basically a nop.
+
+Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/atom.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c
+index a0346a9..331bd05 100644
+--- a/drivers/gpu/drm/amd/amdgpu/atom.c
++++ b/drivers/gpu/drm/amd/amdgpu/atom.c
+@@ -1022,7 +1022,8 @@ static void atom_op_xor(atom_exec_context *ctx, int *ptr, int arg)
+
+ static void atom_op_debug(atom_exec_context *ctx, int *ptr, int arg)
+ {
+- printk(KERN_INFO "unimplemented!\n");
++ uint8_t val = U8((*ptr)++);
++ SDEBUG("DEBUG output: 0x%02X\n", val);
+ }
+
+ static struct {
+--
+1.9.1
+