aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-11-03 01:43:59 -0500
committerBen Skeggs <bskeggs@redhat.com>2014-12-02 00:44:02 -0500
commit2b1930c3f367c3f015d2f384020add20a5aec505 (patch)
tree02044c09f476e6f71d2caec81b29b73c3f73890e /drivers/gpu/drm/nouveau
parent6af5289e85f8f01bf319893f47873e7a4604c21f (diff)
drm/nv50-/kms: add some evo tracing ability for debugging
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_display.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
index 49f6128276ff..2016d8ece028 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -440,8 +440,21 @@ evo_kick(u32 *push, void *evoc)
440 mutex_unlock(&dmac->lock); 440 mutex_unlock(&dmac->lock);
441} 441}
442 442
443#if 1
443#define evo_mthd(p,m,s) *((p)++) = (((s) << 18) | (m)) 444#define evo_mthd(p,m,s) *((p)++) = (((s) << 18) | (m))
444#define evo_data(p,d) *((p)++) = (d) 445#define evo_data(p,d) *((p)++) = (d)
446#else
447#define evo_mthd(p,m,s) do { \
448 const u32 _m = (m), _s = (s); \
449 printk(KERN_ERR "%04x %d %s\n", _m, _s, __func__); \
450 *((p)++) = ((_s << 18) | _m); \
451} while(0)
452#define evo_data(p,d) do { \
453 const u32 _d = (d); \
454 printk(KERN_ERR "\t%08x\n", _d); \
455 *((p)++) = _d; \
456} while(0)
457#endif
445 458
446static bool 459static bool
447evo_sync_wait(void *data) 460evo_sync_wait(void *data)