From: Alex Deucher Date: Fri, 2 Oct 2015 17:53:33 +0000 (-0400) Subject: drm/amdgpu/atom: implement debug opcode X-Git-Tag: firefly_0821_release~176^2~721^2~30^2~30 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f76097c099ab84befce13c0cbc827ece6ea3bcdb;p=firefly-linux-kernel-4.4.55.git drm/amdgpu/atom: implement debug opcode Basically a nop. Reviewed-by: Michel Dänzer Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c index a0346a90d805..331bd059d2ec 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 {