Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dmitry Osipenko and committed by
Thierry Reding
7c6b8cac 35681862

+6
+6
drivers/gpu/host1x/hw/debug_hw.c
··· 192 192 193 193 static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma) 194 194 { 195 + struct push_buffer *pb = &cdma->push_buffer; 195 196 struct host1x_job *job; 197 + 198 + host1x_debug_output(o, "PUSHBUF at %pad, %u words\n", 199 + &pb->dma, pb->size / 4); 200 + 201 + show_gather(o, pb->dma, pb->size / 4, cdma, pb->dma, pb->mapped); 196 202 197 203 list_for_each_entry(job, &cdma->sync_queue, list) { 198 204 unsigned int i;