building a kernel with gpu overclocking (WIP) - Vibrant General

so i have been working on gpu overclocking in my mackay kernel and so far it is comeing along well but i might need some testers. pm me if willing but your device must be able to overclock decently high and be able to live oc to diffrent speeds.

Related

[Q] About Performance From OC'ing Kernels.

Okay I have been debating on which kernel to use for the CM10 ROM I use, some of them like m-kernel support CPU/GPU OC'ing up to like 1.7GHz then other kernels like franco support the same, but don't allow an OC above stock. How much performance gain for sacrifice of battery life do you truly get from OC'ing your CPU to a higher frequency, compared to just overclocking your GPU?
I can't notice a big difference in my use with the OC CPU . The GPU OC is more noticeable for me. I run trinity kernel at 1150 CPU 446 gpu and it runs great.
Sent from my Nexus 7 using xda app-developers app
I run motley plus a10 and I do notice faster installs on apps. If you want numbers flash a kernel and run it through quadrants benchmarks
sunman277 said:
I run motley plus a10 and I do notice faster installs on apps. If you want numbers flash a kernel and run it through quadrants benchmarks
Click to expand...
Click to collapse
I'd use something like AnTuTu over Quadrant just because I find it more reliable tbh.

[DEV][WIP][KERNEL-PATCH][MSM7x30/8x55 GPU OVERCLOCKING][2d-core done][3d-core][v0.7]

Finally after someone pm'd me I looked back into GPU Overclocking.
New thread created issues with old thread OP permissions (people seem to be asking the same questions over and over again all information will be kept in OP & DO READ THE THREAD, repetitive questions will now be ignored)
Benefits:
Smoother UI
Handle 2d & 3d core GPU intensive applications & games
Currently only 2D core has been overclocked working on 3D core OC
2D-core original value - 192mhz OC to 245mhz DONE achieved 25% performance boost grp_2d_clk outputs 245760000hz
3D-core original value - 245mhz OC to 300+mhz WIP hoping to achieve 40-50% performance boost
2D-core OC only Download: Coming soon...
Download Links for other devices coming soon...
Works for all HTC Sense/Cm9/Cm10 kernels (Just ask a kernel developer for your device to implement the source code)
Note: Don't have internet on PC so providing 3 main files that need replaced for 2D-core OC to work
Download link to source code: http://d-h.st/wbH
3D-CORE OC TESTS Download: Coming soon...
Do check under sys/kernel/debug/htc_clock/clks/ look for file with all clocks & look for GRP_clks (Graphics clock)
OK so basically today I've been thinking and I've come to the conclusion that I will release the 2D-core OC patch As Soon As Possible, 3D-core Core OC is NOT Impossible but for now I'll give it a break, I will attempt 3D-core OC If/When I can get a hold of a msm7x30/msm8x55 device, as it will make it much easier for both me & users.
So for now you can enjoy the 50mhz increase/bump up, perf boost 25% in 2D-core (will increase performance in both 2D/3D intensive appications as 2D-core is used for 3D AFAIK and increase User Interface performance (Note: This will not take a hit on battery life)), I will also release a couple of fixes on patchas kernel that shouldnt be there/set etc.
(Theres a device available in my area for roughly £90, if anyone wants to contribute towards getting that device or can donate a device , more than welcome and shoot me a PM so I can list you here.)
(This isnt a promise of 3D-Overclock if you donate, if you donate please do so expecting nothing I will only attempt 3D-overclock)
Working device list - all kernel 3.0+ msm7x30/msm8x55 soc devices.
Main thread is in Desire HD Android Development section: http://forum.xda-developers.com/show....php?t=2368497
Thanks for your efforts.
I'm trying to follow the link to your Desire thread and it seems it's broken.
Nevermind, found it: LINK
I think a kernel dev from the droid incredible 2 has a 3d gpu overclock in a kernel but I didn't use it in mine because I worry about the heat output being overclocked combined with that.
Sent from my ADR6400L using Tapatalk 2
disconnecktie said:
I think a kernel dev from the droid incredible 2 has a 3d gpu overclock in a kernel but I didn't use it in mine because I worry about the heat output being overclocked combined with that.
Sent from my ADR6400L using Tapatalk 2
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2372291
you must be referring to this...
Someone already showed me the commits
no one has managed gpu overclocking at all on any msm7x30/msm8x55 platform/soc devices
I saw it someone's git when I was building my kernel. I couldn't find useful posts about kernel stuff so I just looked for git accounts that were from similar devices.
Sent from my ADR6400L using Tapatalk 2
Probably Kangaroo Kernel based off of Beast Mode.
Oh ya that's the one. Been a while since i looked.
Sent from my ADR6400L using Tapatalk 2
Shaky156 said:
OK so basically today I've been thinking and I've come to the conclusion that I will release the 2D-core OC patch As Soon As Possible, 3D-core Core OC is NOT Impossible but for now I'll give it a break, I will attempt 3D-core OC If/When I can get a hold of a msm7x30/msm8x55 device, as it will make it much easier for both me & users.
So for now you can enjoy the 50mhz increase/bump up, perf boost 25% in 2D-core (will increase performance in both 2D/3D intensive appications as 2D-core is used for 3D AFAIK and increase User Interface performance (Note: This will not take a hit on battery life)), I will also release a couple of fixes on patchas kernel that shouldnt be there/set etc.
(Theres a device available in my area for roughly £90, if anyone wants to contribute towards getting that device or can donate a device , more than welcome and shoot me a PM so I can list you here.)
(This isnt a promise of 3D-Overclock if you donate, if you donate please do so expecting nothing I will only attempt 3D-overclock)
Working device list - all kernel 3.0+ msm7x30/msm8x55 soc devices.
Main thread is in Desire HD Android Development section: http://forum.xda-developers.com/show....php?t=2368497
Click to expand...
Click to collapse
I have an Inc2 id be willing to test on if you'd like...
Sent from my Maserati using XDA Premium
Everyone has been modifying the kernel graphics software layer platform data with values that dont make sense and are impossible more above with values that dont exist within thw graphics table anywayx
3d oc is abit more difficult
Devs + testers join IRC will make life easier
Irc freenode #s1gpuoc
I wouldn't recommend replacing those files in any current kernel directly. Since there is no github to see what the actual changes are isolated from the file, it's hard to say if all the changes made are compatible. Some of them were unnecessary, and simply added credits to a line that was unchanged (most likely because it has been updated since the original writing of the files).
https://github.com/StarKissed/stark...mmit/dc381024f122a114b770076e2992cd5097f5c47c <- The specific changes required
twistedumbrella said:
Does this include a sysfs interface to throttle the overclock?
https://github.com/StarKissed/stark...mmit/618b9e076f7b2c0a8f9f0c5733f61d4ef27261c0
Click to expand...
Click to collapse
There isnt any need for a sys fs at the moment due to the way qualcomm have made their msm7x30
Shaky156 said:
There isnt any need for a sys fs at the moment due to the way qualcomm have made their msm7x30
Click to expand...
Click to collapse
Any time values that aren't stock are being forced, it's good to have the option to turn it off but in this case it's only forcing stock values to persist so it doesn't really matter.
Sent from my Galaxy Nexus using Tapatalk 2
Okay after looking @ GPU Overclock for 2 weeks, This is the news on GPU OC for MSM8x55/MSM7x30 socs.
My findings...
2D-core OC from 192mhz to 245mhz successful.
3D-core OC will not happen without me obtaining the datasheet (which is proprietary)
The clocks are protected, via Ownership/Permissions, and maybe an RCU/MPU
No Overclocking the CPU does NOT Overclock the GPU, thats the worst thing I've heard in my life lol.
The lowest the GPU can hit is 192mhz or lpxo freq
Bus is not overclockable, it always is 192mhz
EBI_2D_clk will and has always been 0mhz
Modifying kgsl platform data and/or the graphics table with random values or even calculated values from correct pll freqs will NOT OC the gpu
it's ashame the GPU clocks are protected.
IF anyone is looking to continuing this project and is on the right track you're more than welcome to get in contact with me, especially if you have the msm7x30 datasheet.
The QSD8x50 soc is more open than this soc, so I'm doing a few tests on the HD2

benchmark lovers

while I realize that many people hate benchmarks the truth in my humble opinion as a windows hacker and android enthusiast is that benchmarks, run properly, can tell you a whole lot. there is some variances but usually that is from screen brightness settings, running at different core temps, background apps, widgets, and waving the accelerometer around like you just don't care lol. and you can say all you want to synthetic means nothing but the fact is even manufacturer's use benchmarks in their testing of new chips as well. just look at the current benchmarks from sd 600 vs sd 800 from qualcom. so I have decided to carefully benchmark every kernel myself to find what gives ME the best user expieriance. maybe it will help the dev's, maybe not. maybe it will help you, maybe you hate my dog and want to skin my cat.
a benchmark can tell you how well the kernel makes use of the hardware so for testing purposes I have used stock rom on all tests. I have set up my cold box for testing so that the cpu and gpu do not suffer and return quickly to normal and have set brightness at 50. testing is done stationary against the back of the cold box proped so that cool air flows over the systemboard. for testing purposes there is only the stock clock widget and micro cpu monitor and a few battery temp/sytem stats apps running. after each benchmark the tablet memory was swept. all benchmarks were run 3 times and the highest score given is used here unless there was a wild varient and then it was tracked down and all benches ran again. after contemplating it i ran some of these plugged up to the ac on my cold box and sometimes i forgot to plug it up. and some using debugging but i honestly doubt that had an effect. so at any rate my benches will probably be a little lower than yours on all these kernels as im running stuff to keep me informed in the background
im also not really comparing custom kernels to one another but I do to stock kernel, every last one of them are great and offer a lot of features you cant get with stock. all offer performance above stock if the proper settings are used and the overclocks are not to extreme for the framework. they are all also still works in progress so I think they will improve with the developers attention as time goes by. i started with stock kernel and ran antutu, quadrant, velimo, 3d mark ice storm, 3d mark ice storm extreme, basemark x, gfxbench 2.7.0 t-rex hd onscreen, gfx 2.7 egypt hd onscreen
stock kernel
stock ran well and i liked it, but i hated having to long press wifi to toggle and short press takes you to settings, wtf google?
edit.... so at any rate my benches will probably be a little lower than yours on all these kernels as im running stuff to keep me informed in the background
whatever flo 002 kernel
the kernel ran smooth and i liked it. i have the same complaints about it as i do stock. wtf google?
so on this kernel as you can see it functioned better than stock on every single benchmark. some were close but just a little better is...well...better.
jassy release 5 kernel
this kernel is set up to use an external kernel control app. it will not function worth a hill of beans without it in my testing. and even further than that it seems to not like trickster mod for me as it bench's higher with faux kernel control app paid version. real world expierance is good. fauxclock is set to 1.89 ghz CPU OC. cpu ondemand governor. snake charmer and mpdecision on. intelithermal at 60 and 80 respectfully. gpu at 487. gpu simple governor. fiops i/o at 512 read ahead. as you can see in cpu and gpu performance it face smashes stock kernel then kicks it while its down and makes it cry for momma. i dont know what the dude pasted into this kernel but i like it. jassy worked hard so we could have a full featured kernel that works well. release 6 = win, release 5 o yeah baby performance even ondemand. i could still kick this to performance governor lol
elementalx 0.7 kernel
settings with no external kernel control app.
1988 cpu overclock on each core. 487 gpu overclock. simple gpu governor. stock bus. stock voltage. no stw, dtw. the kernel ran well in real world performance. STW and DTW are awsome features by the way and i really like this kernel but didnt install them for testing purposes, one less potential irritation. as you can see it actually lost a bit from stock performance though in every benchmark except basemarkx and gfxbench 2.7 t rex. that tells me there is a problem with cpu performance in this kernel. also look at the cpu vs gpu in antutu vs stock kernel. so what i like this kernel and with lower clocks, dude it rocks. stw and dtw are wins.
elementalx 0.7
settings with no external control app.
1890 cpu overclock on each core. 487 gpu overclock. ondemand governor. stock bus.stock voltage. no stw, no dtw. again the kernel ran well in real world performance but as you can see it took a serious hit in performance at this cpu clock setting. the gpu features continue to score high though
elementalx 0.7 kernel
settings with no external kernel control app.
1728 cpu overclock on each core. 487 gpu overclock. ondemand governor. stock bus. stock voltage. no stw, dtw.
as usual really nice running and here the voltage values are more sane i guess. bested stock in every bench. i figure 1.9 ish before the poo poo hits the fan and performance benches go south rather than north. that seems about the same for the other kernels ive tested too. flar2 really has a winning kernel here with stw and dtw. highly recommend giving it a try
3flo v4 kernel
not testing this one yet as my boy doesn't even have the nexus 7 2013 but I tell ya, I got a good feeling about him. seems dedicated and excited.
Edit...he just got a mpdecision kernel booting and posting good scores but has a cores on touch problem for me. Very beta but it shows that even without a device you can build. Still got a good feeling about this one.
faux123 flo jb 4.3 001 kernel ulta
not coming. I can boot it and even run at highest settings but antutu ehh and im tired lol. maybe ill do it if the overclock structures are changed in some way but ehh not interested in this high on this chip.
faux123 flo jb 4.3 001 ES
settings. faux 123 kernel control paid version. 1.512 ghzcpu. mpdecision off. cpu governor ondemand. snake charmer on. stock voltages. intelli thermal 60 and 80. gpu 400 and ondemand. fiops I/o 512 read ahead.
so here you can see again the same slight loss in gpu performance which lead to slightly lower scores than stock. cool kernel though and I do like intelli thermal so
faux123 flo jb 4.3 001 kernel mainline
settings in faux123 kernel control app paid version. 1.83 cpu OC. CPU Governor ondemand. intelliplug. mpdecision off. eco modeoff. snake charmer on. stock voltages. intelli thermal 60 and 80. gpu 400. gpu governor ondemand. fiops I/o 512 read ahead.
so I found the kernel smooth in real world. I looked for my sweet spot and found it around 1.836-1.89 cpu. above that didn't really work out well for me. so in this great kernel the cpu benchmarks higher than stock but for one reason or other the gpu seems to bench lower than stock. all in all a great kernel and omg I love the idea of eco mode and I think with proper cpu governor and eco this kernel would rock some battery butt.
Tiny kernel
Coming soon

S4 overclock

I just put OmegaROM v42, 5.0.1 on my i9505 and I'm finding some games a bit laggy.
Running imperium 2.2 kernel.
There are lot of overclocking apps out there, just wondering which is the best/most stable of them.
I downloaded SetCPu but cannot seem to push the S4 past 1890mhz.
Can the GPU be OCed as well?
Firstly, the kernel needs to support overclocking.
Secondly, you can also do that from within the kernel tweak app (e.g Stweaks).
If it won't go past 1890 then it doesn't support overclocking.
The only 5.0.1 kernel that supports overclocking for touchwiz is Hulk-kernel as far as I know. Currently up to 2.1 GHz overclock.
It doesn't support GPU overclock yet. But from what I saw the dev might be planning to add that too in the next version probably.
Make sure you download the OC version.
Also, I don't know what games you are playing that seem laggy, but it may be caused by DVFS.
GDReaper said:
Firstly, the kernel needs to support overclocking.
Secondly, you can also do that from within the kernel tweak app (e.g Stweaks).
If it won't go past 1890 then it doesn't support overclocking.
The only 5.0.1 kernel that supports overclocking for touchwiz is Hulk-kernel as far as I know. Currently up to 2.1 GHz overclock.
It doesn't support GPU overclock yet. But from what I saw the dev might be planning to add that too in the next version probably.
Make sure you download the OC version.
Also, I don't know what games you are playing that seem laggy, but it may be caused by DVFS.
Click to expand...
Click to collapse
I was playing Relic Run and it seems to get laggier the more you play.
How to fix the DVFS issue?
DVFS or Dynamic Voltage Frequency Scaling is present only on touchwiz roms. I don't know if DVFS is rom related or kernel related, or if it is disabled by default on custom touchwiz roms. But there is an Xposed module to disable it. I don't know if there is any other way.

Gamer Rom

I Need the Best gaming Lollipop Rom for I9505 with great performance and Battery life ?
That would be AOSP rom by the JDCTeam.
Make sure you set alucard kernel to the extreme performance or performance profile if you want better performance in gaming.
doctorex1 said:
I Need the Best gaming Lollipop Rom for I9505 with great performance and Battery life ?
Click to expand...
Click to collapse
"great performance and Battery life ?" Performence or battery life! 5.1.1 CM with Alucard Kernel
if you get an alucard kernel in your rom then the raising the minimum clock speed to 810 khz on all four cores and the minimum for GPU speed to 200 khz it will help.
*gentle fair sleepers off
*arch power on
*CPU governors to ondemand or alucard with alucard hotplug
in developer option hardware overlays to off.
personally I think ktkernel was better with more options but you'd need to stick to AOSP 5.0 for that or lower
If he were to stick to older android versions (5.0 and lower) then he might aswell get KT kernel, which gives him the posibility of overclocking the CPU and GPU, something that is missing from the other kernels right now.
GPU overclocking isn't really stable, it actually takes away from the gaming experience.
How can increasing the GPU frequency, and therefor the performance, be bad?
If you overclock it too high of course it is unstable. But you should be able to take around 500 MHz easily.
GDReaper said:
How can increasing the GPU frequency, and therefor the performance, be bad?
If you overclock it too high of course it is unstable. But you should be able to take around 500 MHz easily.
Click to expand...
Click to collapse
I can't remember the steps you get in kt but I'm pretty sure the uppermost ones were next to unusable, 500 is only just above the standard speed.
the games are always going to have a fixed system requirement levels based on the hardware we have so there isn't that much to gain over optimisations for our roms I feel...
I always judge a rom based on how well it can play shadowgun deadzone. most untweakable kernel rom combos aren't so great fresh out of the box.
Well, I used KT kernel in the 5.0 days. I ran a gaming profile created by ktoonsez himself, which had GPU overclock, and ran stable all the way.
I usually judge a rom by how fast it opens the settings app. This presumes that the app was fully closed, otherwise it will just switch to it, wich is a lot faster than actually opening it. Also, animations are all off.
So, between the pressing of the icon and the actual opening of the app there will be a black screen (if animations are turned off). The longer you see that black screen, the slower the rom is.

Categories

Resources