aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
diff options
context:
space:
mode:
authorGravatar Rex Zhu <Rex.Zhu@amd.com> 2017-12-19 14:08:54 +0800
committerGravatar Alex Deucher <alexander.deucher@amd.com> 2017-12-20 11:59:21 -0500
commitf49e9bac191b066060a53d994f9c964fb71454f2 (patch)
tree5d04e99ad92d3415b0aaef066b83afc9ef92ecbb /drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
parentdrm/amd/pp: update smu_version value for CI/VI (diff)
downloadlinux-f49e9bac191b066060a53d994f9c964fb71454f2.tar.gz
linux-f49e9bac191b066060a53d994f9c964fb71454f2.tar.bz2
linux-f49e9bac191b066060a53d994f9c964fb71454f2.zip
drm/amd/pp: Get and save Rv smu version
The smu firmware is loaded by the sbios on APUs, so query it from the smu and save the smu fw version info that is reported to userspace. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index 85d2149b9dbe..13607e28c1c9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
@@ -801,6 +801,9 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
else
strcpy(fw_name, "amdgpu/vega10_smc.bin");
break;
+ case CHIP_RAVEN:
+ adev->pm.fw_version = info->version;
+ return 0;
default:
DRM_ERROR("SMC firmware not supported\n");
return -EINVAL;