radv: dump VA ranges history when a GPU hang is detected
This is enabled only with RADV_DEBUG=hang. This adds a small Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3904 Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7891>
This commit is contained in:
@@ -734,6 +734,14 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs)
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
/* Dump BO log. */
|
||||
snprintf(dump_path, sizeof(dump_path), "%s/%s", dump_dir, "bo_history.log");
|
||||
f = fopen(dump_path, "w+");
|
||||
if (f) {
|
||||
device->ws->dump_bo_log(device->ws, f);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
/* Dump VM fault info. */
|
||||
if (vm_fault_occurred) {
|
||||
snprintf(dump_path, sizeof(dump_path), "%s/%s", dump_dir, "vm_fault.log");
|
||||
|
Reference in New Issue
Block a user