diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2020-06-29 06:18:42 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-07-17 17:06:14 +0300 |
commit | 7c6b8cac8c19240f013a62f133e2dc8cfeb7a206 (patch) | |
tree | 845cf71da58c105d0b6059ebe3fb819a3b45669f /drivers | |
parent | 35681862808472a0a4b9a8817ae2789c0b5b3edc (diff) | |
download | linux-7c6b8cac8c19240f013a62f133e2dc8cfeb7a206.tar.xz |
gpu: host1x: debug: Dump push buffer state
When job hangs and there is a memory error pointing at channel's push
buffer, it is very handy to know the push buffer's state. This patch
makes the push buffer's state to be dumped into KMSG in addition to the
job's gathers.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/host1x/hw/debug_hw.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/hw/debug_hw.c b/drivers/gpu/host1x/hw/debug_hw.c index 02125842071c..f31bcfa1b837 100644 --- a/drivers/gpu/host1x/hw/debug_hw.c +++ b/drivers/gpu/host1x/hw/debug_hw.c @@ -192,8 +192,14 @@ static void show_gather(struct output *o, phys_addr_t phys_addr, static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma) { + struct push_buffer *pb = &cdma->push_buffer; struct host1x_job *job; + host1x_debug_output(o, "PUSHBUF at %pad, %u words\n", + &pb->dma, pb->size / 4); + + show_gather(o, pb->dma, pb->size / 4, cdma, pb->dma, pb->mapped); + list_for_each_entry(job, &cdma->sync_queue, list) { unsigned int i; |