Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06225487 authored by Lucas Stach's avatar Lucas Stach
Browse files

drm/etnaviv: record correct cmdbuf IOVA in dump



For cmdbufs the CPU IOVA was recorded instead of the GPU one.
Fix this to make it consistent with other BOs and to make
reading the dumps easier.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 7c971c62
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -175,11 +175,13 @@ void etnaviv_core_dump(struct etnaviv_gpu *gpu)
	etnaviv_core_dump_registers(&iter, gpu);
	etnaviv_core_dump_mmu(&iter, gpu, mmu_size);
	etnaviv_core_dump_mem(&iter, ETDUMP_BUF_RING, gpu->buffer->vaddr,
			      gpu->buffer->size, gpu->buffer->paddr);
			      gpu->buffer->size,
			      etnaviv_iommu_get_cmdbuf_va(gpu, gpu->buffer));

	list_for_each_entry(cmd, &gpu->active_cmd_list, node)
		etnaviv_core_dump_mem(&iter, ETDUMP_BUF_CMD, cmd->vaddr,
				      cmd->size, cmd->paddr);
				      cmd->size,
				      etnaviv_iommu_get_cmdbuf_va(gpu, cmd));

	/* Reserve space for the bomap */
	if (n_bomap_pages) {