panfrost: Call abort() when aborting on fault
authorIcecream95 <ixn@disroot.org>
Mon, 31 May 2021 11:18:07 +0000 (23:18 +1200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Jun 2021 13:27:54 +0000 (13:27 +0000)
The existing exit(EIO) wasn't getting trapped by debuggers.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11104>

src/panfrost/lib/decode.c

index 6593280..49898b9 100644 (file)
@@ -1150,7 +1150,7 @@ pandecode_abort_on_fault(mali_ptr jc_gpu_va)
                 /* Ensure the job is marked COMPLETE */
                 if (h.exception_status != 0x1) {
                         fprintf(stderr, "Incomplete job or timeout");
-                        exit(EIO);
+                        abort();
                 }
         } while ((jc_gpu_va = next_job));