diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2011-11-04 14:00:13 +0200 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:58 -0800 |
commit | 6a1523570c5b7425d2b0dfc24dac207e09466720 (patch) | |
tree | 0489460075e131aabbdf7feef99186ff326fe519 /drivers/video/tegra/host/debug.c | |
parent | b855d8cbdc421bf1e9b4eeb7b394d183d3ad881e (diff) |
video: tegra: host: Enhance FIFO/GATHER debug_dump
Enhance nvhost_debug_dump() output, as follows:
- Swap FIFO and GATHER dump so that even if GATHER dump blows out
seq_printf 1k buffer, we still have FIFO information;
- Write FIFO signature pattern (0xd???d???) to indirect save input
data to help pinpoint FIFO position within debug dumps;
- Prevent long data sequences from blowing out the seq_printf 1k
buffer, by limiting such sequences to 64 words.
Change-Id: I83f6118f8af14a6c46fd1080c03b718a7a3bc66c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/62424
(cherry picked from commit cb37e4212b78546411b33b32044f30feb0579b86)
Reviewed-on: http://git-master/r/63788
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Rebase-Id: R39329ae8eb252ced3da604e4f33c272e26921d27
Diffstat (limited to 'drivers/video/tegra/host/debug.c')
-rw-r--r-- | drivers/video/tegra/host/debug.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/tegra/host/debug.c b/drivers/video/tegra/host/debug.c index 7409a4a73ff6..4659a97ac110 100644 --- a/drivers/video/tegra/host/debug.c +++ b/drivers/video/tegra/host/debug.c @@ -52,8 +52,8 @@ static void show_channels(struct nvhost_master *m, struct output *o) mutex_lock(&ch->reflock); if (ch->refcount) { mutex_lock(&ch->cdma.lock); - m->op.debug.show_channel_cdma(m, o, i); m->op.debug.show_channel_fifo(m, o, i); + m->op.debug.show_channel_cdma(m, o, i); mutex_unlock(&ch->cdma.lock); } mutex_unlock(&ch->reflock); @@ -73,7 +73,6 @@ static void show_syncpts(struct nvhost_master *m, struct output *o) nvhost_debug_output(o, "id %d (%s) min %d max %d\n", i, m->op.syncpt.name(&m->syncpt, i), nvhost_syncpt_update_min(&m->syncpt, i), max); - } for (i = 0; i < m->syncpt.nb_bases; i++) { |