summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/si_smc.c
diff options
context:
space:
mode:
authorMaruthi Bayyavarapu <maruthi.bayyavarapu@amd.com>2016-08-01 12:42:32 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-08-31 15:21:09 -0400
commit841686df9f7d2942cfd94d024b8591fa3f74ef7c (patch)
tree08fb55b47a91c6df4c58902d36794795db99ee8a /drivers/gpu/drm/amd/amdgpu/si_smc.c
parent0c34f45368422dc34545a56a60f3884ffc3a4a3b (diff)
downloadlinux-841686df9f7d2942cfd94d024b8591fa3f74ef7c.tar.gz
drm/amdgpu: add SI DPM support (v4)
v2: corrected register offset shift v3: rebase fixes v4: fix firmware paths add SI smc firmware versions for sysfs dump remove unused function forward define fix the tahiti specific value of DEEP_SLEEP_CLK_SEL field fix to miss adding thermal controller use vram_type instead of checking mem_gddr5 flag fix incorrect index of CG_FFCT_0 register fix incorrect reading method at si_get_current_pcie_speed Signed-off-by: Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_smc.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/si_smc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_smc.c b/drivers/gpu/drm/amd/amdgpu/si_smc.c
index 214f37c3b688..c1c259464ae7 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_smc.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_smc.c
@@ -224,6 +224,7 @@ int si_load_smc_ucode(struct amdgpu_device *adev, u32 limit)
amdgpu_ucode_print_smc_hdr(&hdr->header);
+ adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
src = (const u8 *)