summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-03-23 15:12:48 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-05-04 20:29:07 -0400
commitdcf799e54b4633c04b3f9d91ee2980b920916b13 (patch)
treebe578245ee55062497524563a2c06fe374625e98 /drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
parente16ff21d2a694a317b62318822090c5350e58088 (diff)
downloadblackbird-obmc-linux-dcf799e54b4633c04b3f9d91ee2980b920916b13.tar.gz
blackbird-obmc-linux-dcf799e54b4633c04b3f9d91ee2980b920916b13.zip
drm/amd/powerplay: fix issue that get wrong reference clock value.
use wrong parameter to compute the reference clock. 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/tonga_hwmgr.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
index 3bed991ffa40..0242e348e755 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
@@ -5893,7 +5893,7 @@ uint32_t tonga_get_xclk(struct pp_hwmgr *hwmgr)
if (!fw_info)
return 0;
- reference_clock = le16_to_cpu(fw_info->usMinPixelClockPLL_Output);
+ reference_clock = le16_to_cpu(fw_info->usReferenceClock);
divide = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_CLKPIN_CNTL, XTALIN_DIVIDE);
OpenPOWER on IntegriCloud