From: Rex Zhu Date: Wed, 23 Mar 2016 07:12:48 +0000 (+0800) Subject: drm/amd/powerplay: fix issue that get wrong reference clock value. X-Git-Tag: v4.7-rc1~77^2~23^2~25 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dcf799e54b4633c04b3f9d91ee2980b920916b13;p=karo-tx-linux.git drm/amd/powerplay: fix issue that get wrong reference clock value. use wrong parameter to compute the reference clock. Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- 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);