diff options
author | Ken Wang <Ken.Wang@amd.com> | 2017-09-29 03:41:43 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-19 15:27:00 -0400 |
commit | 76d6172b6fab16455af4b67bb18a3f66011592f8 (patch) | |
tree | 74394e2af59433688e83a9c1d08f3d143da0e4b5 /drivers/gpu/drm/amd/amdgpu | |
parent | 2dc8f81e4f822cfe8f6475da968ab2dd5881b8d8 (diff) |
drm/amdgpu: correct reference clock value on vega10
Old value from bringup was wrong.
Cc: stable@vger.kernel.org
Signed-off-by: Ken Wang <Ken.Wang@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')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 1c006ba9d826..3ca9d114f630 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c | |||
@@ -279,10 +279,7 @@ static void soc15_init_golden_registers(struct amdgpu_device *adev) | |||
279 | } | 279 | } |
280 | static u32 soc15_get_xclk(struct amdgpu_device *adev) | 280 | static u32 soc15_get_xclk(struct amdgpu_device *adev) |
281 | { | 281 | { |
282 | if (adev->asic_type == CHIP_VEGA10) | 282 | return adev->clock.spll.reference_freq; |
283 | return adev->clock.spll.reference_freq/4; | ||
284 | else | ||
285 | return adev->clock.spll.reference_freq; | ||
286 | } | 283 | } |
287 | 284 | ||
288 | 285 | ||