Skip to content

Commit 238ae3b

Browse files
committed
drm/xe: Abort printing coredump in VM printer output if full
Abort printing coredump in VM printer output if full. Helps speedup large coredumps which need to walked multiple times in xe_devcoredump_read. v2: - s/drm_printer_is_full/drm_coredump_printer_is_full (Jani) Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Jonathan Cavitt <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fa4b8b3 commit 238ae3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/xe/xe_vm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3866,6 +3866,9 @@ void xe_vm_snapshot_print(struct xe_vm_snapshot *snap, struct drm_printer *p)
38663866
}
38673867

38683868
drm_puts(p, "\n");
3869+
3870+
if (drm_coredump_printer_is_full(p))
3871+
return;
38693872
}
38703873
}
38713874

0 commit comments

Comments
 (0)