Commit 2b1930c3 authored by Ben Skeggs's avatar Ben Skeggs

drm/nv50-/kms: add some evo tracing ability for debugging

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 6af5289e
...@@ -440,8 +440,21 @@ evo_kick(u32 *push, void *evoc) ...@@ -440,8 +440,21 @@ evo_kick(u32 *push, void *evoc)
mutex_unlock(&dmac->lock); mutex_unlock(&dmac->lock);
} }
#if 1
#define evo_mthd(p,m,s) *((p)++) = (((s) << 18) | (m)) #define evo_mthd(p,m,s) *((p)++) = (((s) << 18) | (m))
#define evo_data(p,d) *((p)++) = (d) #define evo_data(p,d) *((p)++) = (d)
#else
#define evo_mthd(p,m,s) do { \
const u32 _m = (m), _s = (s); \
printk(KERN_ERR "%04x %d %s\n", _m, _s, __func__); \
*((p)++) = ((_s << 18) | _m); \
} while(0)
#define evo_data(p,d) do { \
const u32 _d = (d); \
printk(KERN_ERR "\t%08x\n", _d); \
*((p)++) = _d; \
} while(0)
#endif
static bool static bool
evo_sync_wait(void *data) evo_sync_wait(void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment