Skip to content

Commit eb2077f

Browse files
Lijo Lazaralexdeucher
authored andcommitted
Revert "drm/amdkfd: Add partition id field to location_id"
This reverts commit c37ce76. RCCL library is currently not treating spatial partitions differently, hence this change is causing issues. Revert temporarily till RCCL implementation is ready for spatial partitions. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Jonathan Kim <jonathan.kim@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent cd94d1b commit eb2077f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,9 +1997,8 @@ int kfd_topology_add_device(struct kfd_node *gpu)
19971997
HSA_CAP_ASIC_REVISION_MASK);
19981998

19991999
dev->node_props.location_id = pci_dev_id(gpu->adev->pdev);
2000-
/* On multi-partition nodes, node id = location_id[31:28] */
2001-
if (gpu->kfd->num_nodes > 1)
2002-
dev->node_props.location_id |= (dev->gpu->node_id << 28);
2000+
if (KFD_GC_VERSION(dev->gpu->kfd) == IP_VERSION(9, 4, 3))
2001+
dev->node_props.location_id |= dev->gpu->node_id;
20032002

20042003
dev->node_props.domain = pci_domain_nr(gpu->adev->pdev->bus);
20052004
dev->node_props.max_engine_clk_fcompute =

0 commit comments

Comments
 (0)