diff options
author | 2018-08-20 20:15:00 -0400 | |
---|---|---|
committer | 2018-09-26 21:09:14 -0500 | |
commit | 5ade6c9c35a8a2149605dd04b2bcc0714d6c95aa (patch) | |
tree | 6979e8555bd463ffa917608505ad2220678a34b8 /drivers/gpu/drm/amd/amdkfd/kfd_device.c | |
parent | drm/amdgpu: Enable BAD_OPCODE intr for gfx8 (diff) | |
download | linux-dev-5ade6c9c35a8a2149605dd04b2bcc0714d6c95aa.tar.xz linux-dev-5ade6c9c35a8a2149605dd04b2bcc0714d6c95aa.zip |
drm/amdkfd: Report SDMA firmware version in the topology
Also save the version in struct kfd_dev so we only need to query
it once.
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c index b5095c0b4f5a..4f7c0a79bbf5 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c @@ -405,6 +405,10 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd, { unsigned int size; + kfd->mec_fw_version = kfd->kfd2kgd->get_fw_version(kfd->kgd, + KGD_ENGINE_MEC1); + kfd->sdma_fw_version = kfd->kfd2kgd->get_fw_version(kfd->kgd, + KGD_ENGINE_SDMA1); kfd->shared_resources = *gpu_resources; kfd->vm_info.first_vmid_kfd = ffs(gpu_resources->compute_vmid_bitmap)-1; |