drm/amdkfd: Fix getting unique_id in topology
authorKent Russell <kent.russell@amd.com>
Wed, 28 Oct 2020 12:03:31 +0000 (08:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 04:59:42 +0000 (00:59 -0400)
commitd95c368ab8cf969a41ca7594a77c5c38d22a926d
tree24711667e2b17149aab42784686d17e66faba27e
parent51a7e93826a05deb85db07f58cad7e97e4165e77
drm/amdkfd: Fix getting unique_id in topology

Since the unique_id is now obtained in amdgpu in smu_late_init,
topology misses getting the value during KFD device initialization.
To work around this, we use amdgpu_amdkfd_get_unique_id to get
the unique_id at read time. Due to this, we can remove unique_id from
the kfd_dev structure, since we only need it in the KFD node properties
struct

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>
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_topology.c