Commit 08970263 authored by Eric Huang's avatar Eric Huang Committed by Alex Deucher
Browse files

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: 3a75edf9 ("drm/amdkfd: set uuid for each partition in topology")
Signed-off-by: default avatarEric Huang <jinhuieric.huang@amd.com>
Reviewed-by: default avatarHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 83d16119
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -530,7 +530,9 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
		sysfs_show_32bit_prop(buffer, offs, "sdma_fw_version",
				      dev->gpu->kfd->sdma_fw_version);
		sysfs_show_64bit_prop(buffer, offs, "unique_id",
				      dev->gpu->xcp ?
				      dev->gpu->xcp &&
				      (dev->gpu->xcp->xcp_mgr->mode !=
				       AMDGPU_SPX_PARTITION_MODE) ?
				      dev->gpu->xcp->unique_id :
				      dev->gpu->adev->unique_id);
		sysfs_show_32bit_prop(buffer, offs, "num_xcc",