drm/amdgpu/atom: implement debug opcode
[linux-2.6-block.git] / drivers / gpu / drm / amd / amdgpu / atom.c
index a0346a90d805062eb62dad9812f075b7a585c6ce..331bd059d2ec84a950850fefdbb6408a4b1d946f 100644 (file)
@@ -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 {