Skip to content

Commit 7c6b8ca

Browse files
digetxthierryreding
authored andcommitted
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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 3568186 commit 7c6b8ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/host1x/hw/debug_hw.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,14 @@ static void show_gather(struct output *o, phys_addr_t phys_addr,
192192

193193
static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma)
194194
{
195+
struct push_buffer *pb = &cdma->push_buffer;
195196
struct host1x_job *job;
196197

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);
202+
197203
list_for_each_entry(job, &cdma->sync_queue, list) {
198204
unsigned int i;
199205

0 commit comments

Comments
 (0)