[PATCH 2/6] drm/amdgpu: report more sdma amdgpu_fence_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This can help checking MCBP feature on sdma.

If preemption occurred in the
previous IB the address is adjusted by 2 DWs.

Signed-off-by: Rex Zhu <Rex.Zhu@xxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index 5448cf2..aa7415c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@ -679,7 +679,8 @@ static int amdgpu_debugfs_fence_info(struct seq_file *m, void *data)
 		seq_printf(m, "Last emitted        0x%08x\n",
 			   ring->fence_drv.sync_seq);
 
-		if (ring->funcs->type != AMDGPU_RING_TYPE_GFX)
+		if (ring->funcs->type != AMDGPU_RING_TYPE_GFX &&
+			ring->funcs->type != AMDGPU_RING_TYPE_SDMA)
 			continue;
 
 		/* set in CP_VMID_PREEMPT and preemption occurred */
-- 
1.9.1

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux