yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] Hundsbuah:
it is still a bit uncleaer to me too but i try:

a speedchange is done in the kernelcode by following:

int tegra_cpu_set_speed_cap(unsigned int *speed_cap)
{
int ret = 0;
unsigned int new_speed = tegra_cpu_highest_speed();

if (is_suspended)
return -EBUSY;

new_speed = ASUS_governor_speed(new_speed);
new_speed = tegra_throttle_governor_speed(new_speed);
#ifdef ASUS_OVERCLOCK
if(system_mode == SYSTEM_OVERCLOCK_0P1G_MODE) {
if(edp_enable) {
pr_info("%s : EDP enable\n", __func__);
new_speed = edp_governor_speed(new_speed);
}
} else {
new_speed = edp_governor_speed(new_speed);
}
#else
new_speed = edp_governor_speed(new_speed);
#endif

//new_speed = user_cap_speed(new_speed);
if (speed_cap)
*speed_cap = new_speed;

ret = tegra_update_cpu_speed(new_speed);
if (ret == 0)
tegra_auto_hotplug_governor(new_speed, false);
return ret;
}

first of all it gets the highest speed.

then overrides new_speed with the asus clocks in the asusmode table in cpu-tegra.c: unsigned int power_mode_table[SYSTEM_MODE_END]

then it overrides the new_speed with the thermal speeds if its too hot and needs to be throttled.

then it overrides the new_speed with the edp speeds (which does the single and dualcore @ 1900mhz and the rest of the cores to 1750mhz (edp.c hex dump))

so you are right, normaly the last change to new_speed is done by the edp function. i think the problem is in the core0 and coreq stuff.

the problem is the dvfs table for core0 and coreq has to be the same. so i cant just delete the 1900mhz entrys from the cpuq because the tablet wont boot.

im not a linux expert so a question to you: what does the performance gov different to the interactive gov for example? maybe we have to chnage the performance gov code for the tf700t.

/edit:

in our example:

first new_speed: 1900

1st new_speed override: overrides new speed with 1900 (asus speed table)

2nd new_speed override: 1900mhz (if no throttling is needed)

3rd. new_speed override: 1900mhz (or 1750 if more than two cores are online)

/edit2:

i think for a fast solution, we can override these function (performance gov) or?:

static int cpufreq_governor_performance(struct cpufreq_policy *policy,
unsigned int event)
{
switch (event) {
case CPUFREQ_GOV_START:
case CPUFREQ_GOV_LIMITS:
pr_debug("setting to %u kHz because of event %u\n",
policy->max, event);
__cpufreq_driver_target(policy, policy->max,
CPUFREQ_RELATION_H);
break;
default:
break;
}
return 0;
}

especially these line:

__cpufreq_driver_target(policy, policy->max,
CPUFREQ_RELATION_H);
[Asus Transformer TF700] Hundsbuah:
New testkernel (20130330)

Changes (only the new changes) older changes from 20130326 are still there:

- increased voltage for all frequencys by +25mV due problems with specific cpu revision devices

- default gpu oc at startup 700mhz @ 1350mV

- back to dualcore 1900mhz and three and quadcoremode 1750mhz (the testversion from 20130326 with single, dual and threecore mode @ 1900mhz was not stable for some cpu revisions and ends in a reboot)

Downloads:

http://www.androidfilehost.com/?w=files&flid=3972

/edit: sorry for the mistake: the kernel is displayed with 2.1.1 in the kernelinformation not as 2.2.0 as the filename sais
[Asus Transformer TF700] _that:
Is the following code from clemsyn in tegra_edp_update_thermal_zone still active in your kernel?

#ifdef ASUS_OVERCLOCK
if(temperature >= 75 && temperature < 85) {
edp_enable = 1;
} else {
edp_enable = 0;
}
#endif

If I understand this correctly, it disables EDP if temperatures are below 75 and above 85 (?!?!?).

The performance governor simply asks the driver for the maximum possible frequency, all the time. This should not be changed - it's the driver's task to reduce speed if required due to temperature, EDP, etc.

---------- Post added at 09:46 AM ---------- Previous post was at 09:41 AM ----------

Change the other side of that interface instead. :)

This calls tegra_target in cpu-tegra.c for the TF700 - put any device-specific stuff there, not in arch-independent parts.
[Asus Transformer TF700] Hundsbuah:
AW: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

ok thanks for ur tips. the #define ASUS_OVERCLOCK was introduced by clemsyn. its not original asus code and a disabled it in my last 2 kernels

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 2
[Asus Transformer TF700] snypa:
ok ... it is fast! ... now what! LOL

hundsbuah,

to be perfectly honest, for my usage patterns i already have full control over my cpu and gpu... thanks to yourself, _that , clemsyn and bryce...

what do you see as the next step for further development?

What are your thoughts on aroma type installations with a variety of choices for max cpu speeds for mode 1,2,3?

I have found that capping the cpuX.sh files the easiest ( and only ) way of setting max cpu for battery saver / balanced / performance .

If you can squash in the range of frequencies , users can decide themselves ...

ie- 1000Mhz / 1300Mhz / 1700Mhz or 900Mhz / 1500Mhz / 1850Mhz .... or 1200Mhz / 1600Mhz / 1750-1900Mhz ... etc

i am currently using 5 setups ...

Boot @ max 1750Mhz ... init.d

Asus1- BatterySaver 1000Mhz

Asus2- Balanced 1300Mhz

Asus3-Performance 1500Mhz

Turbo-DualCore/Quad 1900Mhz/1750Mhz ... set with widget ;)

i also believe that capping the cpu.sh files is a bit of a safety move too as 9999999 with your oc @ 1900 could be potential risk with cpu4 & 5 files ... when are these called? 1p5g & 1p6g mode ? i capped them at 1000 just in case they get called randomly by something !

QQ- powermodes 0,1,2 .... are they independent ?

if yes then it would be possible to set up one for dual/quad mix ....one for quad and one for battery saver then easier for capping and choosing with cpuX.sh files for how individual wants to setup the 3 Asus modes ...
[Asus Transformer TF700] Hundsbuah:
AW: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

you can limit the freqs for powersaver and balanced and for performance mode. but you cannot go higher than 1900mhz. i have no plans yet what to change for the kernel. so if you want i can make an aroma installer with different freqs for the modes. an other way will be to write a short tutorial (looking at you :D) for the community how to do that with the cpux.sh files ;)
[Asus Transformer TF700] Tylorw1:
Re: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

I think that would be awesome if you created an installed with different frequencies. I think the v2.0 kernal worked really well. For me the 2.1 kernal stays stuck at max frequency, depending on the mod, and never work as an interactive governor should. Thus draining battery and making the tablet heat up when not needed. Gonna wait for 2.2 or so before trying out this kernal. Hopefully you will get it sorted out :).

Tylor

Rom: CleanRom Inheritance 3.4.6 Odex

Kernal: _That's Stock V4 Kernal

Theme: Timberwolf's Blues & Jazz Theme V2.1

UPDATE FOR TF700 USERS!!! AND THE 4.2.1 UPDATE

http://xdaforums.com/showthread.php?t=2204100
[Asus Transformer TF700] sirus20:
Re: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

I have found something strange . In_that kernel using data2sd my tabs sequential read speed is between 20 and 25 mb/s and with your kernel is always between 10 and 15mb/s. Something is not right with that. Testing was done using androbench.

Apart from that maybe you could implement an other tweak. In powersaver mode you might want if it's possible not only to cap the cpu to.. 1000 MHz but also change the gpu clock to stock mhz in order to be real powersaver for maximum battery life. I'm just saying I don't know if that's possible at all. Always a pleasure using you kernels.
[Asus Transformer TF700] Hundsbuah:
AW: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

i really dont know why its not working at your tab. have you tried the latest testkernel 20130330?

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 2
[Asus Transformer TF700] Hundsbuah:
AW: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

yes it is possible to clockdown the gpu too, thanks for the info. you can include it in the cpu1.sh file and simply write 651mhz to the gpu oc interface. 600 is not possibe because this would be a lower frequency than the 2nd fast entry in the dvfs table. the lowest possible frequency is 651 mhz at 1350mv. the lower transfer rate is maybe caused by other row settings. i think the max seq speed is limited due faster respond

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 2
[Asus Transformer TF700] snypa:
hundsbuah,

how?

i have tried so many variations on changing the gpu oc with the cpuX.sh files ?

none of them have worked!

i can change the freq limits for 1/2/3 but not set gpu...

if i execute as root they work, but how do i give root permissions to asus notification ??

i tried adding su into script ... @$%! .... woah ....

please help meeeee!!! :confused:
[Asus Transformer TF700] Hundsbuah:
AW: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

add this line to the cpux.sh file:

echo "700" > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc

this will clock the gpu to 700mhz

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 2
[Asus Transformer TF700] sirus20:
Re: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

And how to set the specific mhz for the cpu.sh files..? Because I can see those files but for example I don't see anywhere on the balanced mode for example 1000 number that corresponding to the max mhz allowed in this kernel.
[Asus Transformer TF700] snypa:
haha ...

that was what I tried with my first attempt! ...

then i tried everything! ... even calling another script ...

the problem is the permissions on the files!

i had to change rw-rw-rw for the gpu_oc file so that it works by using Asus Notification!

otherwise it only worked if i executed the cpuX.sh file as su in the terminal!

---------- Post added at 04:52 PM ---------- Previous post was at 04:09 PM ----------

hundsbuah,

i have tested both files (gpu_oc , gpu_oc_volt) must be changed from 0644 to 0666 for it to work! , otherwise crash... what file is best to change these permissions at boot for tidy? or just use init.d ?

i really think it would be best if the developer added the cpuX with the kernel.zip !

for example , you have added gpu_oc to your kernel but others have not ... if _that follows suit with his kernel also then we can say these new cpuX.files will play on all ... otherwise we just keep two versions for stock and for yours...

you have overclocked the core_cap_level from 1200/1300 to 1455 also ... so in the cpuX.files this is now redundant... unless we change the permissions on this file also so we can still control! is this possible?

... did you also get rid of tegra_grhost and the 3d scaling?

i still think is safer for options in aroma, if all kernel developers would like to give these options to the masses!

if you like i can send you my cpuX.files that i am using now?

they are working well ... battery as single core 1000 , balanced as quad 1300 , performance as quad 1600 , and oc with widget!

---------- Post added at 05:03 PM ---------- Previous post was at 04:52 PM ----------

sirus,

you have to change the 9's ,

i copied cpu3.sh and use it for all ... ie- renamed it to cpu1.sh , cpu2.sh ... because that is the only powermode that doesn't have limits other than what is built into the kernel ... ie- 1900 dual / 1750 quad ...

change the power_cap_limit for each core 1,2,3,4

change the 9's to 1600000 ( one million six hundred thousand) on each if you want quad 1600

or change to 910000 on cpu1 and 0 on others if you want single core 910 ...

be careful!

please note my conversation with hundsbuah which will make sense if you read the cpuX.sh files ....

you don't have to worry about any permissions unless you add the gpu_oc values to the cpuX.sh
[Asus Transformer TF700] Hundsbuah:
AW: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

i have changed some code in the tegra3-dvfs.c to be able to change the gpu clock at runtime and take care of the frequencys depending on on the cbus clock (which is the source for the 3d, 2d etc.)

i will also change the cpu behavior to quadcore 1900mhz for all cores. you can limit the frequencys in the cpuX.sh files as above. i will also unlock powersaver and balanced mode to be able to run at 1900mhz. you will be able (i will make a defaut setting) to be completle free to choose what frequencys for cpu and gpu will be used for each asus power mode. for example powersaver mode cpu @ 760mhz and gpu @ 200mhz, balanced mode cpu @ 1300 and gpu @ 650mhz, performance mode cpu @ 1800mhz and gpu @ 700 or 750mhz. you will not be able to set a frequency for gpu like 713mhz. you can choose between some frequency you can use for each asus powermode (cpu and gpu) but you are not complete free. ill post a short tutorial tomorrow.

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 2
[Asus Transformer TF700] snypa:
Sounds great !!!

Is 750mhz the best we can go for the gpu?

Have you tried anything beyond?

Now that we have usable settings for everybody, any chance of seeing 1850 cpu again?

:D:D:D

Looking forward to this `fully custom` build. :)
[Asus Transformer TF700] bluntman420:
Thanks! Looking forward to it.
[Asus Transformer TF700] Hundsbuah:
1850 is back again ;)

No i have not tried values greater than 750MHz for GPU

will post the new kernel when back from work and if the kernel is working as expected ;)
[Asus Transformer TF700] snypa:
1850Mhz x4 ....

BIGthank you Hundsbuah ! :D
[Asus Transformer TF700] steveman29:
So if 1850 is back again, could you change 1900 to 1950 or 2000 MHz to use it as single core?
[Asus Transformer TF700] snypa:
LOL ...

i luv where your head is at steveman29! :good:

i didn't wanna push my luck! but the 1850 was fastest for me with quad setup and 1900 is very stable!!

i would luv to see the 2ghz unlocked also for single / dual core uses ! ... or higher !!

i have been running mine all day with single 1900mhz for everything to test battery and is good for saving fuel and still having plenty of performance for surfing quickly!

:D
[Asus Transformer TF700] Hundsbuah:
i have trouble to boot with 1900mhz (quad) for cpu devices rev 9. i had these problems yesterday evening so there will never be a 2ghz version because it wont boot on these devices (you have to boot at the highest frequency - after boot you can scale down, but it doesnt help if it doesnt boot). i also had not enough time yesterday (famaly etc.) to solve this problem and i have to do some bugfixing. maybe the new testkernel will be available this weekend.

/edit: I think 2ghz is impossible because it seems to me that the pll is not stable for 2ghz
[Asus Transformer TF700] snypa:
hundsbuah,

just trying to help... what if you just unlock the powermode for cpu2.sh to 1700/1800 mhz and unlock the powermode for cpu3.sh to higher?

then if people want to use a higher freq for cpu2 they can copy the cpu3 and rename?

how many different powermodes are there? only 0,1,2 ? can you add more?

Does the device boot up with 'powermode1' (cpu2 script powermode) or does it boot up and then use powermode1 ?

goodluck and pls ... take your time ! ... my device screams already ! :highfive:
[Asus Transformer TF700] Hundsbuah:
AW: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

The device Boots up without a Power Mode from Asus. IT uses its max freq what is 1900 in our case. Later when booting Android the Asus Power Mode is Set. But 75% my device freezes when booting because its running at 1900 for a short time until the Asus Power Mode is Set. When limiting the edp value so that the device cant go higher than 1750 or 1800 when booting you cant go higher with the Asus Power Modes later and you are limited to the edp values. But i want to provide the 1900 mhz for People Who can Run this freq. Do you know my Problem now? DEADLOCK ;)

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Asus Transformer TF700] snypa:
just chop the 1900mhz and leave 1850mhz ... is yours stable with 1850x4 ?

mine was stable with 1850x4 and 1900x3+1750x1 , however i could not keep 1900x4 ever either! i thought it was the 1400 power cap that wouldn't let me go 1900x4? if you can change the power cap and provide more juice 1900mhz x4 might work, else we settle for 1850x4 or try variations ... 1875x4 ... i am pretty sure 1850x4 is plenty of processing power !!! and we really don't need it :silly:

i am pretty sure most users will cap the cpu3 less than 1850 anyway , people seem scared when it gets warm 50degrees LOL

edit-

ps- how did you do it before? there was a test kernel that had quad 1900 unlocked and you warned us not to use performance mode...:confused:

here
[Asus Transformer TF700] Hundsbuah:
AW: [KERNEL][OC][STOCK/CROMI] Hundsbuah ★ 10.4.4.25 ★ v2.1.0

This was based on clemsyns Asus overclock. I think i can manage it by limiting edp limit to 1500 for booting and adding an interface to say that Boot is finished, the cpu. Sh File is loaded and now you can reload the original 1900mhz edp settings

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Asus Transformer TF700] snypa:
sounds like you have a plan! ... i was just trying to help with brainstorming!

goodluck :fingers-crossed:

enjoy the kernel code :eek: LOL cya

:victory::fingers-crossed::victory::fingers-crossed::victory::fingers-crossed::victory::fingers-crossed:

haha- we just fans cheering you on brother!
[Asus Transformer TF700] buhohitr:
1900 or more is just creating more heat which will shorten the life of your device, but next to nothing gain on performance. The magic number that worked for 98% of ppl here is 1800 with 1850MAX!! Don't go crazy on boosting gpu and cpu because if for some reasons, if it stuck on these super high freq, you now can use your device to cook eggs. Finding the magic number for optimal performance without killing our tablets is the goal here...anything else just a wast, remember that ppl!!!
[Asus Transformer TF700] Hundsbuah:
thats why i want to provide a kernel where the user is totaly free to set a frequency. the hard thing on this is to compile one kernel which is so dynamic that all users are satisfied :) and supports many different cpu and gpu operating modes which can be changed at runtime

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 2
[Asus Transformer TF700] Tylorw1:
1700/1800 is more more then OC for the CPU. What I would like to see is the GPU frequency because the GPU is what is pushing the Full HD screen. With a minor or little OC to GPU, I think it would help with transition and lag overall. I am no developer because I am pretty stupid ;), but I would think the combination on the 1800 CPU and a stable OC GPU would really help. I dont think the CPU should be put higher then 1800, you think about it,our CPU in registered at 1.6 GH, that is about a 15% OC!!! not to bad considering a tablet CPU, I can get easily 30% with desktop, but we are on a tablet that weighs 1/50th of my desktop as it has like 6 fans with full tower and liquid cooled.

Tylor

Rom: CleanRom Inheritance 3.4.7 Odex AND That's UltraCleanRom(7 sec boot :D)

Kernal: _That's Stock V6 Kernal

Theme: Timberwolf's Blues & Jazz Theme V2.1

UPDATE FOR TF700 USERS!!! AND THE 4.2.1 UPDATE

http://xdaforums.com/showthread.php?t=2204100
[Asus Transformer TF700] snypa:
even at 1600mhz , if your cpu is at 100% x4 your device will still hit 69degrees celsius and clock down to 1300mhz because of the built in thermal protection code in the kernel, the high frequency doesn't change that :D

hundsbuah,

i have noticed that if we use the cpuX to change freq and number of cores...

if we are on 1600x4 cpu2.sh for example , and we click to another cpuX that uses the 1900 freq at only 1 or 2 cores and have set the rest to 0 or offline - before the cpu scales down to turn the offline cores off it will still spike to 1900x4 ... it scales up as preference to scaling down... edit-fixed

unless you wait until cores are offline 'before' you switch to single/dual 1900mhz ... difficult to do! edit-fixed

maybe you should limit 1850?edit-fixed

---------- Post added at 12:33 PM ---------- Previous post was at 11:55 AM ----------

it does! , it helps awsum;) ... the gpu oc works now between 650 and 750mhz

what we are trying to do is make it work for everybody - you choose what cpu/gpu settings for Asus Modes!

examples-

if you want to set Battery Saver to single/dual core 760/1000mhz and gpu 200/400

if you want to set Balanced to quad core 1300/1400/1500 and gpu600/650/700

if you want to set Performance to quad 1600/1700/1800 and gpu 700/750

or you can change with terminal or trickster!

i prefer the factory feel though!
[Asus Transformer TF700] Tylorw1:
I personally would like the highest clocking for the gpu on balanced for the smoothest experience without having to change the modes and let performance mode increase the cpu solely and let power save clock both down for better power saving. And instead of having middle cpu only have two cores on balanced on max frequency but performance all four cores. even if balanced is not very power saving it will give good overall performance. If you need longer battery use power saver. Only personal opinion but it don't seem like a CPU clocking would help as much as a higher GPU clocking. And only powering two cores should help with the power difference being drawn into the GPU.

Tylor

Rom: CleanRom Inheritance 3.4.7 Odex AND That's UltraCleanRom(7 sec boot :D)

Kernal: _That's Stock V6 Kernal

Theme: Timberwolf's Blues & Jazz Theme V2.1

UPDATE FOR TF700 USERS!!! AND THE 4.2.1 UPDATE

http://xdaforums.com/showthread.php?t=2204100
[Asus Transformer TF700] snypa:
you will be able to control your 3 modes however you want!

as long as the frequency for cpu/gpu is set in the kernel- you can choose!

Hundsbuah is going to tell us what frequencies are available for both cpu and gpu and you can modify how you like :highfive:
[Asus Transformer TF700] Tylorw1:
Good :). I just hope all is going well for him. And I dunno if I remember but the latest he increased voltages a bit. I think this was later after I turned up the voltages by 50 to get Auralux running properly but no matter. If they need tweaked a tad bit again I will do so. Looking forward to your guide and release :).

Tylor

Rom: CleanRom Inheritance 3.4.7 Odex AND That's UltraCleanRom(7 sec boot :D)

Kernal: _That's Stock V6 Kernal

Theme: Timberwolf's Blues & Jazz Theme V2.1

UPDATE FOR TF700 USERS!!! AND THE 4.2.1 UPDATE

http://xdaforums.com/showthread.php?t=2204100
[Asus Transformer TF700] HorsexD:
I agree with gpu > cpu. I never keep cpu on performance, always balanced at 1.5 ghz with 730-750 gpu. Seems to run smooth. Cpu doesnt really need to be that high for smoothness.
[Asus Transformer TF700] Hundsbuah:
is it now also working with +25mV from kernelcode increase?

or do you still have to increase it by +25mV?

I'll increase the gpu limit to 775MHz in the next kernel

/edit

can s.o. explain following parameters?

setprop power.saving.mode 0
setprop persist.sys.NV_POWERMODE 0