From 14101ff9488f3ab3e57b3a9daabff0f4a929e195 Mon Sep 17 00:00:00 2001 From: Ashley Smith Date: Fri, 7 Mar 2025 16:35:31 +0000 Subject: [PATCH] panfrost: Reset syncobj after use to avoid kernel warnings We get a kernel message "You are adding an unorder point to timeline!" on many CTS runs. This stems from us SIGNALing the queue syncobj then WAITing but not reseting it. It is assumed by the time we get to panvk_queue_submit_init_signals() that the value is 0, however it is 1 due to the previous calls. Signed-off-by: Ashley Smith Reviewed-by: Boris Brezillon Fixes: 5544d39f ("panvk: Add a CSF backend for panvk_queue/cmd_buffer") Part-of: --- src/panfrost/vulkan/csf/panvk_vX_queue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panfrost/vulkan/csf/panvk_vX_queue.c b/src/panfrost/vulkan/csf/panvk_vX_queue.c index 636f7472e07..7948c15c267 100644 --- a/src/panfrost/vulkan/csf/panvk_vX_queue.c +++ b/src/panfrost/vulkan/csf/panvk_vX_queue.c @@ -474,6 +474,8 @@ init_subqueue(struct panvk_queue *queue, enum panvk_subqueue_id subqueue) return panvk_errorf(dev->vk.physical, VK_ERROR_INITIALIZATION_FAILED, "SyncobjWait failed: %m"); + drmSyncobjReset(dev->vk.drm_fd, &queue->syncobj_handle, 1); + if (debug & PANVK_DEBUG_TRACE) { pandecode_user_msg(dev->debug.decode_ctx, "Init subqueue %d binary\n\n", subqueue);