mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
drm/amdkfd: Add node_id to location_id generically
If there are multiple nodes per kfd device, add nodeid to location_id to differentiate. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
61cffacb3a
commit
42b3a6f12a
@ -2078,7 +2078,7 @@ int kfd_topology_add_device(struct kfd_node *gpu)
|
||||
HSA_CAP_ASIC_REVISION_MASK);
|
||||
|
||||
dev->node_props.location_id = pci_dev_id(gpu->adev->pdev);
|
||||
if (KFD_GC_VERSION(dev->gpu->kfd) == IP_VERSION(9, 4, 3))
|
||||
if (gpu->kfd->num_nodes > 1)
|
||||
dev->node_props.location_id |= dev->gpu->node_id;
|
||||
|
||||
dev->node_props.domain = pci_domain_nr(gpu->adev->pdev->bus);
|
||||
|
Loading…
Reference in New Issue
Block a user