From a7e3f94fc8fcdc599744fa717b401a024c918483 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Fri, 31 Oct 2014 10:07:44 +1000 Subject: [PATCH] evo debug --- drivers/gpu/drm/nouveau/nv50_display.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index ae873d1..bf8a3eeb 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -424,8 +424,15 @@ evo_kick(u32 *push, void *evoc) mutex_unlock(&dmac->lock); } -#define evo_mthd(p,m,s) *((p)++) = (((s) << 18) | (m)) -#define evo_data(p,d) *((p)++) = (d) +#define evo_mthd(p,m,s) do { \ + const u32 _s = (s), _m = (m); \ + printk(KERN_ERR "%04x %d\n", _m, _s); \ + *((p)++) = ((_s << 18) | _m); \ +} while(0) +#define evo_data(p,d) do { \ + const u32 _d = (d); \ + *((p)++) = _d; \ +} while(0) static bool evo_sync_wait(void *data) -- 2.1.2