Skip to contentSkip to conversation

drm/amdgpu: update fence ptr with context:seqno

PATCH In review Sunil Khatri 2 participants 3 messages Apr 21, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: update fence ptr with context:seqno

log context:seqno of the fence during timeout rather than logging fence pointer.

Cc Tvrtko Ursulin <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +2 -1
index 4be72bebcf34..b0e8098a3988 100644
@@ -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);
 	}
 }
 
Signature · 1 line
2.34.1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

-----Original Message-----
From: Sunil Khatri <[email protected]>
Sent: Monday, April 21, 2025 5:51 PM
To: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>
Cc: [email protected]; Khatri, Sunil <[email protected]>; Tvrtko Ursulin <[email protected]>
Subject: [PATCH v1] drm/amdgpu: update fence ptr with context:seqno

log context:seqno of the fence during timeout rather than logging fence pointer.

Cc Tvrtko Ursulin <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +2 -1
index 4be72bebcf34..b0e8098a3988 100644
@@ -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);
        }
 }
 

--
2.34.1

Reviewed-by Arvind Yadav
#2 lore raw
Quoted 34 lines · Sunil

[AMD Official Use Only - AMD Internal Distribution Only]

-----Original Message-----
From: Sunil Khatri <[email protected]>
Sent: Monday, April 21, 2025 5:51 PM
To: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>
Cc: [email protected]; Khatri, Sunil <[email protected]>; Tvrtko Ursulin <[email protected]>
Subject: [PATCH v1] drm/amdgpu: update fence ptr with context:seqno

log context:seqno of the fence during timeout rather than logging fence pointer.

Cc Tvrtko Ursulin <[email protected]>
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +2 -2
index 4be72bebcf34..b0e8098a3988 100644
@@ -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);
         }
  }
 
--

2.34.1