hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/amd/amdgpu/vi.c
....@@ -329,8 +329,15 @@
329329 u32 reference_clock = adev->clock.spll.reference_freq;
330330 u32 tmp;
331331
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
+ }
334341
335342 tmp = RREG32_SMC(ixCG_CLKPIN_CNTL_2);
336343 if (REG_GET_FIELD(tmp, CG_CLKPIN_CNTL_2, MUX_TCLK_TO_XCLK))