kernel/drivers/gpu/drm/amd/amdgpu/vi.c
.. .. @@ -329,8 +329,15 @@ 329 329 u32 reference_clock = adev->clock.spll.reference_freq; 330 330 u32 tmp; 331 331 332 - if (adev->flags & AMD_IS_APU)333 - return reference_clock;332 + if (adev->flags & AMD_IS_APU) {333 + switch (adev->asic_type) {334 + case CHIP_STONEY:335 + /* vbios says 48Mhz, but the actual freq is 100Mhz */336 + return 10000;337 + default:338 + return reference_clock;339 + }340 + }334 341 335 342 tmp = RREG32_SMC(ixCG_CLKPIN_CNTL_2); 336 343 if (REG_GET_FIELD(tmp, CG_CLKPIN_CNTL_2, MUX_TCLK_TO_XCLK))