drm/amdkfd: Fill the name field in node topology with asic name v2
authorYong Zhao <Yong.Zhao@amd.com>
Fri, 2 Aug 2019 02:55:50 +0000 (22:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 03:16:28 +0000 (22:16 -0500)
commitc181159a5b1e1e75474764c6e45b1273a8834728
treed61240e35680430fb2b06f7aee3f310c5c75b2e8
parent51bfac71cade386966791a8db87a5912781d249f
drm/amdkfd: Fill the name field in node topology with asic name v2

The name field in node topology has not been used. We re-purpose it to
hold the asic name, which can be queried by user space applications
through sysfs.

Signed-off-by: Yong Zhao <Yong.Zhao@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
drivers/gpu/drm/amd/amdkfd/kfd_topology.h