Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,680 Members 45,282 Now Online
XDA Developers Android and Mobile Development Forum

MTK 6589 and MTK 6589T (overclocking possibilities)

Tip us?
 
gbl08ma
Old
#1  
Senior Member - OP
Thanks Meter 37
Posts: 181
Join Date: Nov 2009
Default MTK 6589 and MTK 6589T (overclocking possibilities)

I was looking at the mt_cpufreq.c file in the leaked kernel source for the MTK 6589 SoC (the one running at 1.2 GHz), at https://github.com/varunchitre15/MT6...e/mt_cpufreq.c
I noticed there were frequency settings above 1209 MHz defined there. The highest one, DVFS_F0_0 goes above 1.7 GHz.

The code that seems to define the maximum frequency starts on line 1573 of that file. It relies on the returned value of PTP_get_ptp_level to define it. Since PTP_get_ptp_level is just a external header on that file, I needed to search the git repo to find its definition. Turns out it is in this file mt_ptp.c. Pay special attention to line 1018 and below: https://github.com/varunchitre15/MT6...mt_ptp.c#L1018

There's this interesting bit:
Code:
    #if defined(MTK_FORCE_CPU_89T)
        return 3; // 1.5GHz
    #else
By returning 3, this function tells the frequency scaling driver that the CPU can go up to a 1.5 GHz clock.

I think I read the 6589T also has a higher GPU clock, and it can handle 2 GB of RAM with no problems. I'm not saying that the difference between the 6589 and the 6589T is just a kernel config, in fact, the chip most likely got a new revision. This source code leaked before there was any talk of a turbo revision of the 6589, so I think it's safe to assume that on newer code trees there may be fixes for the 2 GB of RAM and a higher GPU clock.

But I wonder, if the 6589 (not T) is able to go up to 1.5 GHz or even 1.7 GHz. It would be good if someone could compile that kernel with some modifications to make it think it will be running on a 6589T (adding a #define MTK_FORCE_CPU_89T should be enough) and see if it works fine. Since that source code came from a Acer model, maybe it would be easier to start tests on that device (because we can be sure the source is 100% compatible). I think it may run, but it may heat a lot or it may drive the voltage of the CPU up to a point where the phone's PCB is not prepared to deliver, causing damage (maybe the T revision chip fixes this).
The Following 8 Users Say Thank You to gbl08ma For This Useful Post: [ Click to Expand ]
 
guyrandom
Old
#2  
Junior Member
Thanks Meter 1
Posts: 1
Join Date: Jul 2013
have you done any more digging or testing on this?

Just noticed that Jiayu have released a MTK6589T version of the G3S for only $5 extra - could it be just a simple software unlock?

thanks
 
Spekkie88
Old
#3  
Member
Thanks Meter 7
Posts: 53
Join Date: Jan 2012
My guess is that it really is only a kernel setting considering that the Jiayu G3S comes with both chips within 2 weeks. Besides this is a really easy way for mediatek to sell a wide range of SoC's (just varying the voltages/clockspeeds). The main thing I wonder if this also controls the clockspeed of the GPU, since that clock is different as well, considering the MKT6589 and MKT6589T.
The Following User Says Thank You to Spekkie88 For This Useful Post: [ Click to Expand ]
 
cryingrock
Old
#4  
Senior Member
Thanks Meter 104
Posts: 271
Join Date: Sep 2012
Location: Hong Kong
http://www.ini3e.com/thread-2610-1-1.html

This chinese article confirms that the only difference is clock speed.
 
gbl08ma
Old
#5  
Senior Member - OP
Thanks Meter 37
Posts: 181
Join Date: Nov 2009
It would be really good if someone who can already compile custom kernels for any MT6589 phone, could make that little modification and check the results - worst case scenario, the chip would get too hot and break forever... but since it seems to have a lot of temperature monitoring in place, I don't think that would happen.

I could do it myself, but I'm not going to download 8 GB of Android source, on my limited home connection, just to apply the MT6589 patches available on GitHub, which probably wouldn't work out-of-the-box since they are for a Acer phone and mine's a Zopo 910.
Bothering people at Zopo to do it is out of question, since they are interested in selling the Zopo C2 which comes with this "turbo" kernel config.

As for the GPU clock, on this kernel source there doesn't seem to be anything controlling that based on the MTK_FORCE_CPU_89T define. But this may be just because this is an old source tree - the one they have been distributing for their clients more recently, for the 6589T, may already have the changes for the GPU clock.

The ideal situation would be to have a kernel which can allow all the possible CPU and GPU frequencies, and these would be controlled and limited on the userspace.
The Following 3 Users Say Thank You to gbl08ma For This Useful Post: [ Click to Expand ]
 
cartmanotfat
Old
#6  
cartmanotfat's Avatar
Member
Thanks Meter 10
Posts: 98
Join Date: Sep 2010
It would be awesome ! Please devs, do something for us
HTC Desire GSM S-OFF
HP Touchpad 32Go
ROM : Never the same because I'm a flashmaniac
 
kartikoli
Old
#7  
kartikoli's Avatar
Senior Member
Thanks Meter 7
Posts: 147
Join Date: Aug 2011
is there anyone working on this
 
OpenMinded
Old
#8  
Senior Member
Thanks Meter 51
Posts: 793
Join Date: Oct 2006
Quote:
Originally Posted by kartikoli View Post
is there anyone working on this
I looked at it shortly, and noticed a lot of stuff is missing to compile it.
But why not look at it yourself?
Start by git cloning the cm10.1 tree and compile for a device that is supported, to get an idea of how it works.
People who manage to compile the source, please post, because from there we can come close to building CM10.1.
 
gbl08ma
Old
#9  
Senior Member - OP
Thanks Meter 37
Posts: 181
Join Date: Nov 2009
The sources on that Github are meant to be merged with the JB source tree, you're aware of that when you say it's missing things, right?
Here are sources for another MTK 6589 device:
http://forum.xda-developers.com/show...9&postcount=10
 
Aeonia
Old
#10  
Member
Thanks Meter 69
Posts: 95
Join Date: Nov 2012

 
DONATE TO ME
Quote:
Originally Posted by gbl08ma View Post
The sources on that Github are meant to be merged with the JB source tree, you're aware of that when you say it's missing things, right?
Here are sources for another MTK 6589 device:
http://forum.xda-developers.com/show...9&postcount=10
this group is working on a Cyanogenmod for mtk6589 devices...http://forum.xda-developers.com/show...php?p=41345830

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes