diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2017-09-28 15:50:42 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-10-20 14:19:52 +0200 |
commit | 2a79c034b579beb90b34c6942ff7d54ece5d3ea0 (patch) | |
tree | 83be3261c435d2f27eefd2ff94771552012e2590 /drivers/gpu/host1x/hw/debug_hw_1x06.c | |
parent | eb2ee1a28db17155bcee4630e36ea1759b7e10dc (diff) | |
download | linux-2a79c034b579beb90b34c6942ff7d54ece5d3ea0.tar.bz2 |
gpu: host1x: Disassemble more instructions
The disassembler for debug dumps was missing some newer host1x opcodes.
Add disassembly support for these.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/hw/debug_hw_1x06.c')
-rw-r--r-- | drivers/gpu/host1x/hw/debug_hw_1x06.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/hw/debug_hw_1x06.c b/drivers/gpu/host1x/hw/debug_hw_1x06.c index bd89da5dc64c..b503c740c022 100644 --- a/drivers/gpu/host1x/hw/debug_hw_1x06.c +++ b/drivers/gpu/host1x/hw/debug_hw_1x06.c @@ -63,6 +63,7 @@ static void host1x_debug_show_channel_fifo(struct host1x *host, struct output *o) { u32 val, rd_ptr, wr_ptr, start, end; + u32 payload = INVALID_PAYLOAD; unsigned int data_count = 0; host1x_debug_output(o, "%u: fifo:\n", ch->id); @@ -107,7 +108,7 @@ static void host1x_debug_show_channel_fifo(struct host1x *host, if (!data_count) { host1x_debug_output(o, "%03x 0x%08x: ", rd_ptr - start, val); - data_count = show_channel_command(o, val); + data_count = show_channel_command(o, val, &payload); } else { host1x_debug_cont(o, "%08x%s", val, data_count > 1 ? ", " : "])\n"); |