radv: Dump BO VA ranges on hang.

To make it easier to figure out if a given VA is valid or not.

Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3620
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7205>
This commit is contained in:
Bas Nieuwenhuizen
2020-10-18 02:31:38 +02:00
committed by Marge Bot
parent ba9906fc8f
commit 347a3d68cd
3 changed files with 43 additions and 0 deletions

View File

@@ -667,6 +667,10 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs)
fclose(f);
}
fprintf(stderr, "BOs:\n");
device->ws->dump_bo_ranges(device->ws, stderr);
fprintf(stderr, "\n");
/* Dump VM fault info. */
if (vm_fault_occurred) {
snprintf(dump_path, sizeof(dump_path), "%s/%s", dump_dir, "vm_fault.log");