]> git.hungrycats.org Git - linux/commitdiff
drm/amdgpu: Reserve space for IB contents in devcoredumps
authorTimur Kristóf <timur.kristof@gmail.com>
Sat, 11 Jul 2026 11:21:08 +0000 (13:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:41 +0000 (09:15 -0400)
Currently the contents of IBs are abruptly cut off and don't
show the full contents. This patch makes sure to reserve
space for those contents too so they may be printed.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c

index aaf091b7f9d08ec7e88aee8b4f5069e3955f8927..39b2a4c0e011a42e3e3633f3fde4ee1742cb1acd 100644 (file)
@@ -235,6 +235,9 @@ amdgpu_devcoredump_print_ibs(struct drm_printer *p,
                        drm_printf(p, "\nIB #%d 0x%llx %d dw\n", i,
                                   coredump->ibs[i].gpu_addr,
                                   coredump->ibs[i].ib_size_dw);
+
+                       for (int j = 0; j < coredump->ibs[i].ib_size_dw; j++)
+                               drm_printf(p, "0xffffffff\n");
                }
                return;
        }