mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 09:56:18 +07:00
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>
This commit is contained in:
parent
3568186280
commit
7c6b8cac8c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user