All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] drm/amdgpu: use dma_fence_get_status() for adapter reset
@ 2025-12-19 18:21 Alex Deucher
  2025-12-19 18:21 ` [PATCH 2/5] drm/amdgpu: avoid a warning in timedout job handler Alex Deucher
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Alex Deucher @ 2025-12-19 18:21 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

We need to check if the fence was signaled without an
error as the per queue resets may have signalled the fence
while attempting to reset the queue.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 52a23fcaf617c..5d4fb20f719c3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -6539,7 +6539,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
 	 *
 	 * job->base holds a reference to parent fence
 	 */
-	if (job && dma_fence_is_signaled(&job->hw_fence->base)) {
+	if (job && (dma_fence_get_status(&job->hw_fence->base) > 0)) {
 		job_signaled = true;
 		dev_info(adev->dev, "Guilty job already signaled, skipping HW reset");
 		goto skip_hw_reset;
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-12-19 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-19 18:21 [PATCH 1/5] drm/amdgpu: use dma_fence_get_status() for adapter reset Alex Deucher
2025-12-19 18:21 ` [PATCH 2/5] drm/amdgpu: avoid a warning in timedout job handler Alex Deucher
2025-12-19 18:21 ` [PATCH 3/5] drm/amdgpu: mark fences with errors before ring reset Alex Deucher
2025-12-19 19:36   ` Alex Deucher
2025-12-19 18:21 ` [PATCH 4/5] drm/amdgpu/gfx9: rework pipeline sync packet sequence Alex Deucher
2025-12-19 18:22 ` [PATCH 5/5] drm/amdgpu/gfx9: Implement KGQ ring reset Alex Deucher
2025-12-19 20:46   ` Timur Kristóf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.