]> git.ipfire.org Git - thirdparty/linux.git/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>
Fri, 17 Jul 2026 21:39:16 +0000 (17:39 -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>
(cherry picked from commit 4e2c0821509fed754e8c31d5053d152fbb3484a5)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c

index acab3d94a51aae5dd136fd17ee3b255cd8be442f..6480a344006d31299a7cc9a8aade5ef4eafe16f6 100644 (file)
@@ -234,6 +234,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;
        }