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

Rex Zhu Rex.Zhu at amd.com
Wed Oct 31 12:25:32 UTC 2018


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 at amd.com>
---
 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



More information about the amd-gfx mailing list