drm/amdkfd: replace asic_name with amdgpu_asic_name
authorGraham Sider <Graham.Sider@amd.com>
Thu, 11 Nov 2021 16:28:45 +0000 (11:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:15:29 +0000 (16:15 -0500)
commitb7675b7bbc3c4c64731d6df66a1df7abd0fe2f9e
tree9478c48ca328521ebf9861026d8cac89817d31b7
parent992110d747177e5815cf89003732ae69cd70913f
drm/amdkfd: replace asic_name with amdgpu_asic_name

device_info->asic_name and amdgpu_asic_name[adev->asic_type] both
provide asic name strings, with the only difference being casing.
Remove asic_name from device_info and replace sysfs entry with lowercase
amdgpu_asic_name[]. Ensures string is null-terminated so that this
doesn't break if dev->node_props.name ever gets set anywhere else.

Signed-off-by: Graham Sider <Graham.Sider@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