drm/amdkfd: Expose GFXIP engine version to sysfs
authorGraham Sider <Graham.Sider@amd.com>
Mon, 12 Jul 2021 17:50:33 +0000 (13:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Aug 2021 01:18:00 +0000 (21:18 -0400)
commit9d6fa9c7ff930decf550eb19697cf27cdba95b89
tree4dbffba6876d326a50125b7f0b8ec5b7304518fa
parenta204ea8c20773a21c7fabbc21dab1cd104fa5a97
drm/amdkfd: Expose GFXIP engine version to sysfs

Add u32 gfx_target_version field to kfd_node_properties and
kfd_device_info. Populate <asic>_device_info structs accordingly and
expose to sysfs.

This allows eliminating device-ID-based lookup tables in user mode for
future ASICs.

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