From c0c324fcb21023e6d7a838d0120c75bfa10b5e7c Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 3 Apr 2026 17:33:26 +0300 Subject: [PATCH] anv: fix debug printfs on hang Signed-off-by: Lionel Landwerlin Fixes: 0932d0c7e0 ("anv/xe: rework set_lost handling in xe_exec_ioctl()") Reviewed-by: Kenneth Graunke Part-of: --- src/intel/vulkan/xe/anv_batch_chain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/xe/anv_batch_chain.c b/src/intel/vulkan/xe/anv_batch_chain.c index d87b680b989..d0c2cc9bad2 100644 --- a/src/intel/vulkan/xe/anv_batch_chain.c +++ b/src/intel/vulkan/xe/anv_batch_chain.c @@ -145,8 +145,11 @@ xe_exec_ioctl_impl(struct anv_queue *queue, struct drm_xe_exec *exec, struct anv_device *device = queue->device; int ret = xe_gem_exec_ioctl(device->fd, device->info, exec); - if (ret) + if (ret) { + if (INTEL_DEBUG(DEBUG_SHADER_PRINT)) + vk_check_printf_status(&device->vk, &device->printf); return vk_queue_set_lost(&queue->vk, "%s(%d) failed: %m", func, line); + } return VK_SUCCESS; }