drm/amdgpu/userq: add context and seqno of the fence
authorSunil Khatri <sunil.khatri@amd.com>
Thu, 17 Apr 2025 10:27:26 +0000 (15:57 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:57:09 +0000 (10:57 -0400)
Add context and seqno of the fence in error logging
rather than printing fence ptr.

Reviewed-by: Christian König <christian.koenig@amd.com>
Suggested-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c

index 149993ec537b276429e32c9a15683f5b9ebb6491..5f87cc8b5bf4f817a681fd6965861afcfd29026e 100644 (file)
@@ -44,7 +44,8 @@ amdgpu_userqueue_cleanup(struct amdgpu_userq_mgr *uq_mgr,
        if (f && !dma_fence_is_signaled(f)) {
                ret = dma_fence_wait_timeout(f, true, msecs_to_jiffies(100));
                if (ret <= 0) {
-                       DRM_ERROR("Timed out waiting for fence f=%p\n", f);
+                       DRM_ERROR("Timed out waiting for fence=%llu:%llu\n",
+                                 f->context, f->seqno);
                        return;
                }
        }
@@ -654,7 +655,8 @@ amdgpu_userqueue_wait_for_signal(struct amdgpu_userq_mgr *uq_mgr)
                        continue;
                ret = dma_fence_wait_timeout(f, true, msecs_to_jiffies(100));
                if (ret <= 0) {
-                       DRM_ERROR("Timed out waiting for fence f=%p\n", f);
+                       DRM_ERROR("Timed out waiting for fence=%llu:%llu\n",
+                                 f->context, f->seqno);
                        return -ETIMEDOUT;
                }
        }