Android OS Forum banner

[Kernel][AOSP][v2][Updated 5/19] GT-P3113 kernel OC/UC/UV/GPUOC 448mhz etc.

41279 Views 33 Replies 14 Participants Last post by  Heifara
Here's a simple kernel for AOSP based ROMS like CM9 and AOKP. Works for my tab. Can't say how it will run for you. Let me know.

v2 - Big Update. There may be bugs or issues I haven't noticed on my device.
  • Added Wheatley Governor and some associated CPUidle and C4 sleep patches to maximize effectiveness of the governor (thanks to Ezekeel)
    • allow cpu to go to sleep/deepidle while using hardware accelerated video/audio playback
    • enable powering down mpu logic during C4 / deep sleep to reduce power usage
    • Doh. Forgot to enable them when building the kernel...
  • Other misc. tweaks to Cpufreq and governors
  • Set 150mhz fuse opp to 50 OPP offset for voltage stability at lowest frequency
  • Change 150mhz slot to 180mhz to prevent SODs
  • Lower mpu vdd max to maximum value allowed by omap twl
    • Gets rid of errors and problems when using 1350mhz+
  • Removed Samsung's "Touch Boost"
    • Before, every time you touched the screen, the cpu frequency would shoot up, whether it was needed or not.
  • Removed Samsung's CPU frequency limits and locks
  • Removed touchscreen factory debug stuff and an annoying debug that was notifying you every time you touch and lifted your finger off the screen
  • Fsync off to improve file system read/write performance
  • Probably some other stuff I'm forgetting...
v1
  • MPU frequencies from 150mhz to 1350mhz
    • 150mhz slot given unique FUSE_OPP for lower SmartReflex calibrated voltages seperate from 300mhz slot
    • 1350mhz slot running at 1200mhz FUSE_OPP to keep voltages down
  • GPU overclocked to 448mhz
    • 448mhz GPU slot using same OPP as stock 307mhz slot to keep voltages down
  • Undervolted across the board
    • but really irrelevant due to SmartReflex calibrations
  • SIO scheduler
  • Lazy governor added
  • RCU priority boosting
  • Other tweaks
OnDemand or Lazy recommended

Download

v1.0
http://www.mediafire...1n2gb1669cdy63m

v2.0
http://www.mediafire...9aeeh0wyhz7czbp

Credits:
xoomdev
hainesca
imoseyon
Ezekeel
dsb9938
source
See less See more
  • Like
Reactions: 4
1 - 20 of 34 Posts
There is an updated Simple Sched that doesn't require the chages to elevator.

D

.
  • Like
Reactions: 1
Here's a simple kernel for AOSP based ROMS like CM9 and AOKP. Works for my tab. Can't say how it will run for you. Let me know.

v1
  • MPU frequencies from 150mhz to 1350mhz
    • 150mhz slot given unique FUSE_OPP for lower SmartReflex calibrated voltages seperate from 300mhz slot
    • 1350mhz slot running at 1200mhz FUSE_OPP to keep voltages down
  • GPU overclocked to 448mhz
    • 448mhz GPU slot using same OPP as stock 307mhz slot to keep voltages down
  • Undervolted across the board
    • but really irrelevant due to SmartReflex calibrations
  • SIO scheduler
  • Lazy governor added
  • RCU priority boosting
  • Other tweaks

OnDemand or Lazy recommended

Download
http://www.mediafire...1n2gb1669cdy63m

Credits:
xoomdev
hainesca
imoseyon
Ezekeel
source
Thank you for this kernel.
One question, how hot it gets your tab in normal use and gaming?, specially on the left side if you hold it in portrait mode.

Sent from my YP-G70
Thanks for a great looking kernel!

Since you are using a lot of things from Ezekeel, would it be possible for you to also add his Wheatly governor?Since he let you use Lazy, shouldnt be too hard to get Wheatly too :)
Thanks for a great looking kernel!

Since you are using a lot of things from Ezekeel, would it be possible for you to also add his Wheatly governor?Since he let you use Lazy, shouldnt be too hard to get Wheatly too :)
The only thing I'm using from Ezekeel is his lazy governor (which is great), but I'll look into adding Wheatley. I don't really like it myself as I don't find the race to C4 state to work well in practice for me. Still it can't hurt.

Sent from my Galaxy Nexus using RootzWiki
Flashed flawlessly. And running buttery smooth on my tab at 1.2 thx

Sent from my GT-P3113 using Tapatalk 2
Runs great at 1.2ghz, but once I enable 1.3 my tab either immediately freezes or freezes sometime after during heavy tasks.
Runs great at 1.2ghz, but once I enable 1.3 my tab either immediately freezes or freezes sometime after during heavy tasks.
Can you run 1.35 fine on another kernel like the one in blackice or the touchwiz overclocked kernel? If not then there's nothing i can do. Different devices have different tolerances. I've been running this at 150-1350 for days with no issue.

Sent from my GT-P3113 using RootzWiki
Thank you for this kernel.
One question, how hot it gets your tab in normal use and gaming?, specially on the left side if you hold it in portrait mode.

Sent from my YP-G70
I've never experienced any heat issues whatsoever. Playing Shadowgun doesn't have any perceivable increase in heat for me, regardless of CPU or gpu speed. But that could just be my device. I can't feel any warmth in the bottom vs top unless i really try to notice it.

Sent from my GT-P3113 using RootzWiki
I got the sleep of death with this kernel. I will try the next release.
I got the sleep of death with this kernel. I will try the next release.
Were you using the 150mhz slot at the time?

Sent from my Galaxy Nexus using ToothSome
Can you run 1.35 fine on another kernel like the one in blackice or the touchwiz overclocked kernel? If not then there's nothing i can do. Different devices have different tolerances. I've been running this at 150-1350 for days with no issue.

Sent from my GT-P3113 using RootzWiki
First time around 1350 worked on stock, after I came back to cm9 and stock again to compare both roms and kernels things got sticky. I'd say disabling 150mhz step helped keep my tab running 1.35 better but it would still reboot or freeze.
Were you using the 150mhz slot at the time?

Sent from my Galaxy Nexus using ToothSome
No I was using 300 as min
Just I quick little update, setting the lowest step to 300mhz and Max to 1.35 works best for my tab when using the built in cm9 performance settings leaving io and governor at their stock values.
No I was using 300 as min
I think I know what's causing it. Will increase vddmin closer to stock in next build or introduce toggle.

Sent from my Galaxy Nexus using RootzWiki
Big update V2. Let me know how wheatley works in regard to battery life for you guys.
  • Like
Reactions: 1
I just upgraded to V2 and using CM9 yesterday afternoon. I still have to play around with it quite a bit to see how well it will work but so far the tablet seems quite laggy. I am not sure if the issue is the CM9 alpha or the kernel. Ill do some more testing and see if I can narrow down why things are laggy. I didnt really notice it this bad on AOKP and v1, so I am guessing it is probably something with CM9 or just needs a reinstall.
I am using the Wheatly governor (also tried Lazy and OnDemand and both were just as laggy), and I was getting a little bit higher battery drain than OnDemand for the 2 hours I was using the tablet, but Ill see more on this later today. Overnight the tablet only lost 1% battery using the Wheatly governor. Set to 300MHz min, 1200MHz max.

Ill do a bunch more testing later today and let you know more of what I am experiencing with the v2 kernel. Thanks for all your work so far.
See less See more
  • Like
Reactions: 1
I just upgraded to V2 and using CM9 yesterday afternoon. I still have to play around with it quite a bit to see how well it will work but so far the tablet seems quite laggy. I am not sure if the issue is the CM9 alpha or the kernel. Ill do some more testing and see if I can narrow down why things are laggy. I didnt really notice it this bad on AOKP and v1, so I am guessing it is probably something with CM9 or just needs a reinstall.
I am using the Wheatly governor (also tried Lazy and OnDemand and both were just as laggy), and I was getting a little bit higher battery drain than OnDemand for the 2 hours I was using the tablet, but Ill see more on this later today. Overnight the tablet only lost 1% battery using the Wheatly governor. Set to 300MHz min, 1200MHz max.

Ill do a bunch more testing later today and let you know more of what I am experiencing with the v2 kernel. Thanks for all your work so far.
Interesting. Personally, I've noticed a decent boost in performance coming from from v1 to v2. Maybe try flashing the kernel after booting CM9 once if you didn't before or vice-versa. You could also try using SetCpu or something similar to decrease the Up_threshold for OnDemand and see if that helps.
Also, It would be super helpful if you could shoot me a logcat and/or a copy of Dmesg/Kmsg after boot from /proc/Kmsg if you know how.
Oh and thanks for testing out wheatley! I'd like to make decisions based on more than my opinion so it's greatly appreciated.
Wheatly shouldn't be laggy. Something's wrong there since wheatley almost always runs at the highest frequency. Regardless, I too am seeing some additional drain with wheatley. Still, It's not that substantial considering the CPU's running at max frequency most of the time. Race-to-Idle/C4 definitely works. I'll leave it in, but I'll probably leave OnDemand as the default. However, I messed up and forgot to enable the C4 deep idle patches when I built v2 of the kernel, so that could be a factor
See less See more
So I did a lot of playing around, and this kernel is definitely smoother than the stock CM9 kernel the ROM comes with.
Wheatly seems a bit laggy compared to OnDemand. Might be something to do with the missing things you forgot to activate but not positive.
Most of the lagginess I was seeing last night is gone. Not sure if it was just something going on in the background or if the re-flashing of CM9 fixed that. Now all that is left is the jerky animations.
Forcing 2D GPU rendering didnt help with jerkiness either.

I changed between 180MHz as lowest, 300MHz, and 800MHz. and although the animations were a bit more jerky on the 180 slot it was hardly anything more. I also tried performance governor and set to 1350MHz, didnt help the jerkiness at all. I did a lot of testing and came to a few theories, but I wont post there here and clutter the thread because I highly doubt much can be done on the kernel side of things to fix the jerkiness. It will be mostly fixed in ROM tweaks. I know this tablet is capable of running very smooth because my Galaxy nexus does, and it is almost the same exact hardware. And tablets of lesser hardware also run smoother than this one.

Anyway, from all my testing I find that this is a very solid kernel and a great place for things to branch out from on this tablet. I am betting this kernel will be the standard of all custom kernel development on this tablet. It is highly stable at all frequencies and gets decent battery life too.

For the next feature to add (after you get things sorted out as to compatibility with AOKP based ROMs), could you look into color and gamma control? Many kernels have it for our type of hardware:
http://rootzwiki.com/topic/14703-11-may-glados-v133/
http://rootzwiki.com/topic/19118-kernelgpl26-apr-m3-francokernel-4034/
See less See more
So I did a lot of playing around, and this kernel is definitely smoother than the stock CM9 kernel the ROM comes with.
Wheatly seems a bit laggy compared to OnDemand. Might be something to do with the missing things you forgot to activate but not positive.
Most of the lagginess I was seeing last night is gone. Not sure if it was just something going on in the background or if the re-flashing of CM9 fixed that. Now all that is left is the jerky animations.
Forcing 2D GPU rendering didnt help with jerkiness either.

I changed between 180MHz as lowest, 300MHz, and 800MHz. and although the animations were a bit more jerky on the 180 slot it was hardly anything more. I also tried performance governor and set to 1350MHz, didnt help the jerkiness at all. I did a lot of testing and came to a few theories, but I wont post there here and clutter the thread because I highly doubt much can be done on the kernel side of things to fix the jerkiness. It will be mostly fixed in ROM tweaks. I know this tablet is capable of running very smooth because my Galaxy nexus does, and it is almost the same exact hardware. And tablets of lesser hardware also run smoother than this one.

Anyway, from all my testing I find that this is a very solid kernel and a great place for things to branch out from on this tablet. I am betting this kernel will be the standard of all custom kernel development on this tablet. It is highly stable at all frequencies and gets decent battery life too.

For the next feature to add (after you get things sorted out as to compatibility with AOKP based ROMs), could you look into color and gamma control? Many kernels have it for our type of hardware:
http://rootzwiki.com/topic/14703-11-may-glados-v133/
http://rootzwiki.com/topic/19118-kernelgpl26-apr-m3-francokernel-4034/
I really don't know about wheatley. Those patches would only help battery with wheatley not performance. The only thing I can think of is that your tab is sitting on the border between where wheatley switches between ondemand type scaling and performance type. Switching back and forth a lit would make it laggy and the freqs would probably be jumping between highest and lowest which would also contribute. Still only a theory. On demand stays the default regardless.

You also need to remember we don't have hardware accel so there's going to be some jerkiness with all governors and settings until greater minds than mine reverse engineer it.

I also have a galaxy nexus so I know all about the color gamma controls, regular gamma control, and custom color multipliers. I would like to implement what I can but I haven't had the time with finals to look into it yet.

And aokp... I dunno what's going on.

Thanks!

Sent from my Galaxy Nexus using RootzWiki
See less See more
  • Like
Reactions: 1
1 - 20 of 34 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top