aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_topology.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
index 478b5daace4b..592cc6acffd9 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
@@ -1082,8 +1082,9 @@ static uint32_t kfd_generate_gpu_id(struct kfd_dev *gpu)
1082 local_mem_info.local_mem_size_public; 1082 local_mem_info.local_mem_size_public;
1083 1083
1084 buf[0] = gpu->pdev->devfn; 1084 buf[0] = gpu->pdev->devfn;
1085 buf[1] = gpu->pdev->subsystem_vendor; 1085 buf[1] = gpu->pdev->subsystem_vendor |
1086 buf[2] = gpu->pdev->subsystem_device; 1086 (gpu->pdev->subsystem_device << 16);
1087 buf[2] = pci_domain_nr(gpu->pdev->bus);
1087 buf[3] = gpu->pdev->device; 1088 buf[3] = gpu->pdev->device;
1088 buf[4] = gpu->pdev->bus->number; 1089 buf[4] = gpu->pdev->bus->number;
1089 buf[5] = lower_32_bits(local_mem_size); 1090 buf[5] = lower_32_bits(local_mem_size);