From 93785ae2fb5769d6a09e8e6f3f444db22fb0dbdb Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 22 Aug 2024 12:29:47 -0400 Subject: [PATCH] asahi: skip unmapped bo in fault dbg segfault Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/agx_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asahi/lib/agx_device.c b/src/asahi/lib/agx_device.c index 09752128364..a6283302f4d 100644 --- a/src/asahi/lib/agx_device.c +++ b/src/asahi/lib/agx_device.c @@ -668,6 +668,9 @@ agx_debug_fault(struct agx_device *dev, uint64_t addr) for (uint32_t handle = 0; handle < dev->max_handle; handle++) { struct agx_bo *bo = agx_lookup_bo(dev, handle); + if (!bo->va) + continue; + uint64_t bo_addr = bo->va->addr; if (bo->flags & AGX_BO_LOW_VA) bo_addr += dev->shader_base;