]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Put ASIC revision into HSA capability
authorJoseph Greathouse <Joseph.Greathouse@amd.com>
Thu, 16 Apr 2020 19:08:59 +0000 (14:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 15:04:56 +0000 (11:04 -0400)
commit153c2294903a82efc1771b43d853ef083058b37c
tree6cf19951225080b99fab059c0ba989079bd74750
parent3b955eb57b8ac45c391b062e8b08db6190803fe3
drm/amdkfd: Put ASIC revision into HSA capability

In order to surface the ASIC revision to user level, we want
to put it into the HSA topology. This can be because different
ASIC revisions may require user-level software to do different
things (e.g. patch code for things that are changed in later
hardware revisions).

The ASIC revision from the hardware is maximum of 4 bits at this
time, so put it into 4 of the open bits in the HSA capability.
Then user-level software can use this capability information to
know -- for each ASIC -- what revision-based things must be done.

Signed-off-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdkfd/kfd_topology.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.h