aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
diff options
context:
space:
mode:
authorKent Russell <kent.russell@amd.com>2021-02-03 13:02:09 -0500
committerAlex Deucher <alexander.deucher@amd.com>2021-02-09 15:27:28 -0500
commit11964258fe733f82746b3d16c4448a3a9eea76b1 (patch)
tree564cf1e1f1121956475ae8b44b26f3b5ad169d19 /drivers/gpu/drm/amd/amdkfd/kfd_topology.h
parentdrm/amd/pm: enable ACDC feature (diff)
downloadlinux-dev-11964258fe733f82746b3d16c4448a3a9eea76b1.tar.xz
linux-dev-11964258fe733f82746b3d16c4448a3a9eea76b1.zip
drm/amdkfd: Get unique_id dynamically v2
Instead of caching the value during amdgpu_device_init, just call the function directly. This avoids issues where the unique_id hasn't been saved by the time that KFD's topology snapshot is done (e.g. Arcturus). KFD's topology information from the amdgpu_device was initially cached at KFD initialization due to amdkfd and amdgpu being separate modules. Now that they are combined together, we can directly call the functions that we need and avoid this unnecessary duplication and complexity. As a side-effect of this change, we also remove unique_id=0 for CPUs, which is obviously not unique. v2: Drop previous patch printing unique_id in hex Signed-off-by: Kent Russell <kent.russell@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_topology.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_topology.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.h b/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
index 326d9b26b7aa..416fd910e12e 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
@@ -57,7 +57,6 @@
struct kfd_node_properties {
uint64_t hive_id;
- uint64_t unique_id;
uint32_t cpu_cores_count;
uint32_t simd_count;
uint32_t mem_banks_count;