drm/amdgpu: update fence ptr with context:seqno
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 21 Apr 2025 12:15:49 +0000 (17:45 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Apr 2025 12:51:46 +0000 (08:51 -0400)
log context:seqno of the fence during timeout rather
than logging fence pointer.

Reviewed-by: Arvind Yadav <Arvind.Yadav@amd.com>
Cc: 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_userq.c

index 4be72bebcf342c4718641ad1d22b285f10ad54c0..b0e8098a3988f128876f93b2258eabb8d909d81d 100644 (file)
@@ -94,7 +94,8 @@ amdgpu_userq_wait_for_last_fence(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)
-                       dev_err(adev->dev, "Timed out waiting for fence f=%p\n", f);
+                       dev_err(adev->dev, "Timed out waiting for fence=%llu:%llu\n",
+                               f->context, f->seqno);
        }
 }