summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLikun Gao <Likun.Gao@amd.com>2025-04-18 06:04:12 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-12-08 22:26:57 +0300
commit9827f482895fbdbef3d6beb05dcba475e98833ee (patch)
treef58a23481711fcf80c6723f2522e10508bdeb7a6
parentb42f3bf9536c9b710fd1d4deb7d1b0dc819dc72d (diff)
downloadlinux-9827f482895fbdbef3d6beb05dcba475e98833ee.tar.xz
drm/amdgpu: add xcc info for compute ring name
Add XCC id info for compute ring name on gfx version 12.1. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
index 522f478ca4bc..a93e1393ad4b 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
@@ -747,7 +747,8 @@ static int gfx_v12_1_compute_ring_init(struct amdgpu_device *adev, int ring_id,
(ring_id + xcc_id * adev->gfx.num_compute_rings) *
GFX12_MEC_HPD_SIZE;
ring->vm_hub = AMDGPU_GFXHUB(xcc_id);
- sprintf(ring->name, "comp_%d.%d.%d", ring->me, ring->pipe, ring->queue);
+ sprintf(ring->name, "comp_%d.%d.%d.%d",
+ ring->xcc_id, ring->me, ring->pipe, ring->queue);
irq_type = AMDGPU_CP_IRQ_COMPUTE_MEC1_PIPE0_EOP
+ ((ring->me - 1) * adev->gfx.mec.num_pipe_per_mec)