Skip to content

Commit 0897026

Browse files
amd-jherichuangalexdeucher
authored andcommitted
drm/amdkfd: assign AID to uuid in topology for SPX mode
XCD id is assigned to uuid, which causes some performance drop in SPX mode, assigning AID back will resolve the issue. Fixes: 3a75edf ("drm/amdkfd: set uuid for each partition in topology") Signed-off-by: Eric Huang <jinhuieric.huang@amd.com> Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 83d1611 commit 0897026

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdkfd/kfd_topology.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,9 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
530530
sysfs_show_32bit_prop(buffer, offs, "sdma_fw_version",
531531
dev->gpu->kfd->sdma_fw_version);
532532
sysfs_show_64bit_prop(buffer, offs, "unique_id",
533-
dev->gpu->xcp ?
533+
dev->gpu->xcp &&
534+
(dev->gpu->xcp->xcp_mgr->mode !=
535+
AMDGPU_SPX_PARTITION_MODE) ?
534536
dev->gpu->xcp->unique_id :
535537
dev->gpu->adev->unique_id);
536538
sysfs_show_32bit_prop(buffer, offs, "num_xcc",

0 commit comments

Comments
 (0)