summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr
diff options
context:
space:
mode:
authorRex Zhu2016-05-23 12:24:41 +0200
committerAlex Deucher2016-06-09 16:48:53 +0200
commit8b4af8a8e3e6ad82e0d32d1665d9a755c05c4c12 (patch)
tree98786400c93be5bf0a6ee775fbb5c42bab642fb3 /drivers/gpu/drm/amd/powerplay/hwmgr
parentdrm/amdgpu/iceland: Set SC_PA_RASTER_CONFIG according to different RB enabled (diff)
downloadkernel-qcow2-linux-8b4af8a8e3e6ad82e0d32d1665d9a755c05c4c12.tar.gz
kernel-qcow2-linux-8b4af8a8e3e6ad82e0d32d1665d9a755c05c4c12.tar.xz
kernel-qcow2-linux-8b4af8a8e3e6ad82e0d32d1665d9a755c05c4c12.zip
drm/admgpu/powerplay/polaris: fix powertune table upload
Exclude AVFS related fields when update powertune table to hw. The driver shouldn't set them directly. Signed-off-by: Rex Zhu <Rex.Zhu@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/powerplay/hwmgr')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.c
index 0b99ab3ba0c5..ae96f14b827c 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.c
@@ -286,7 +286,7 @@ int polaris10_populate_pm_fuses(struct pp_hwmgr *hwmgr)
if (polaris10_copy_bytes_to_smc(hwmgr->smumgr, pm_fuse_table_offset,
(uint8_t *)&data->power_tune_table,
- sizeof(struct SMU74_Discrete_PmFuses), data->sram_end))
+ (sizeof(struct SMU74_Discrete_PmFuses) - 92), data->sram_end))
PP_ASSERT_WITH_CODE(false,
"Attempt to download PmFuseTable Failed!",
return -EINVAL);