View Single Post
  #14 (permalink)  
Old 12-19-2010, 06:47 PM
bzo's Avatar
bzo
N00b
Offline
 
Join Date: Jan 2007
Posts: 38
Reputation: 195
bzo is keeping up the good workbzo is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: FYI, overclock vs. battery

Quote:
Originally Posted by manekineko View Post
What was the cause of the issue?
Normally, the PLL2 clock is setup to run at 1056mhz and divided by 2 for the regular 528mhz top speed of the cpu. The max speed of PLL2 is 1200mhz, so if a 2 divider is used, the max frequency possible is 600mhz. So for overclocking, we skip the divider and use the frequency directly so that frequencies above 600mhz are possible.

It appears that in the deeper sleep modes, the clocks are automatically being shut down and powered up again on wake up. The wakeup assumes that PLL2 should be brought back up to 1056mhz and does not reset the divider back to 2, so the cpu is trying to run at 1056mhz which will obviously not work.

The fix checks that PLL2 is being run at the frequency we expect at wakeup or whenever the cpu frequency is changed, and corrects if necessary.
Reply With Quote
This post has been thanked 4 times.