]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08767c68fbc42ab4f5806013e0413aaf3886b4de
tree4dbffba6876d326a50125b7f0b8ec5b7304518fa
parent404089e505a3d89e0dff7694de660f199ccf2463
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