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)
commitc6d1ec4134edc1611da39777cdc5dba78c757d35
tree6cf19951225080b99fab059c0ba989079bd74750
parent46501bc35b7186a939edce15d3bc9ca2a38115b6
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