yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] t3khe4d:
mpdecision enabled

mrg, OK so I got to run the last kernel with mpdecision enabled, "min cpu=1 screen on" for a cpl batt cycles and appears to give better batt life without any real noticeable lag to complain over.

I see in your update you address UI lag so it shouldn't be a prob with mpdecision enabled now, not that it was for me before, didn't notice.

I can say thus far it's doing OK, I run heavy in wigets and gizmo's so I expect less than a day in batt life anyway but last 2 cycles gave avg 1.5hrs+-.5 more batt, I was messing around with my rom, screwed up and had to reload a nan from 31st so I lost all the batt monitor data to post :/ last run I got between 8-9.5hrs with the running apps below.

running apps & day avg.

next launcher 3d

HD widget

apw widgets

calengoo widget

finance widget

poweramp

di.fm

some maps

some nav

camera

some light surfing

xda

yatse

mx player

batt minitor recording

lots of screen on time

almost fulltime wifi

some mobile data & gps

no bluetooth

:confused: can "min cpu=1 screen on" be hard set? is there a way to do that?

I set it in kernel tuner but it's tricky, you have to make sure you select the digit AND the empty space behind it when entering a new value, otherwise it doesn't stick. I like running it so far and will conitue using it this way unless it chokes somewhere down the road, but for now it's QSA5! :good:

I'll have a better run after this update for butterz rom and this new kernel, thanks! :D
[HTC EVO 3D] mrg666:
Disabling gentle fair sleepers was not for addressing any specific UI lag or help with mpdecision. It was added as an overall improvement. I think you can check min_cpu=1 as boot setting in kernel tuner so that it is set at boot. If you mean kt is not doing this because of the space before 1, there are a few other app that you can try, that is clearly a bug in the app. One other alternative is adding a line as follows to a boot script

echo "1" > /sys/kernel/msm_mpdecision/conf/min_cpus

You can also Script Manager in Google Play.

https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
[HTC EVO 3D] pbailey212:
On the 6/3 build my phone would temporarily freeze while scrolling web pages, and playing candy crush. I went back to the 5/27 build, I will see if it still happens. I will try to reproduce and get a logcat later on
[HTC EVO 3D] cupliz:
Yap, frezze like kernel panic but doesnt restart...

Sometimes going back again, but sometimes doesnt going back... Need to pull battery...

Sorry i cant provide logcat...

Sent from my PG86100
[HTC EVO 3D] mrg666:
Thanks for the reports, I am on it. No need for logcat.
[HTC EVO 3D] ZWYATT:
Concur. Installed yesterday and I've had 3 hard freezes.

Thanks man.
[HTC EVO 3D] mrg666:
I have fixed the freeze problem. Ironically, the problem was due to rwsem commit from Intel. It was a sabotage for ARM, apparently. :silly:

I would appreciate if you can test and confirm.
[HTC EVO 3D] ZWYATT:
Just had a freeze on the 6/5 build.
[HTC EVO 3D] mrg666:
Are you sure this was not a background process momentarily keeping the OS busy? Please give more detail since I can't see it happening anymore.
[HTC EVO 3D] ZWYATT:
Backed out of mx player. Screen was completely froze. Let it sit for a couple minutes. Still nothing. Had to pull the battery.

Same thing the 6/3 build was doing.
[HTC EVO 3D] mrg666:
I just tried playing local videos with mx player both with hw and sw decoder. I didn't find any problem. Were you playing a streaming video?

The other problem could be gcc 4.8.1 I have started using. I will post another kernel built with gcc 4.6.3 shortly. Can you please try it?

Edit: I just posted the kernel built with gcc 4.6.3 in the OP.
[HTC EVO 3D] ZWYATT:
I was playing a local file using x264 and aac.

But it also happens while using the browser. Last night i was browsing the arch wiki and it locked up on me.

Dloading new build now. Thanks so much.
[HTC EVO 3D] ohbuckeyeman:
Thanks for your work on this kernel. Any news of your custom evervolv based ROM?
[HTC EVO 3D] johnnyslt:
Try from here http://xdaforums.com/showthread.php?t=2098133 linaro 4.7.4 cortex a8 optimized.
[HTC EVO 3D] mrg666:
The JB ROM is terribly draining battery for now. It is so puzzling. When I have Google Maps Location sharing/reporting is checked, Google Maps appears as the top battery user. When I uninstall GMaps, battery drain does not decrease at all but the battery users list appears completely normal. There are no problems left other than this but it is a show stopper. I will not post it until I can resolve this. I gave a break for couple of days for my sanity. But I will get back to it soon.

BTW, this my fault, my build with my changes. I am not talking about Evervolv itself. You can safely go and try the official Evervolv.

Thanks! Did you have any instability problem with the RWSEM commit from Intel? Linaro GCC 4.7 was also problematic with the autogroup scheduler turned on. I am going back to 4.6 for the second time. I will try 4.7 toolchain in your link for a while without posting anything with that.

BTW, Do you want to team up bringing the Ville-C2 3.4 kernel to Evo 3D JB ROMs?
[HTC EVO 3D] coal686:
From my experience, high battery drain from Maps is from Google Now trying to ping your location repeatedly to serve up pertinent cards. Better Battery Stats once told me it woke my phone 2000 times in four hours. Maybe that's the issue.
[HTC EVO 3D] mrg666:
Thanks. I have already disabled google now together with google plus and all weather/news apps/widgets. Working with Better Battery Stats now to pinpoint the source. It is so puzzling to see 7-8 hours idle battery life when I can get more than 30 hours using the same kernel with the stock ics rom.
[HTC EVO 3D] pbailey212:
Visual voicemail drains a lot of battery on jb too.
[HTC EVO 3D] t3khe4d:
I dunno, I've had a good run so far on 06032013, ran a good day today of google maps, nav, poweramp playing at same time, no chops in music the whole time and had mpdecision on, ran great, jumping back & forth between poweramp lockscreen controls, holo locker and nav, no probs, ran solid for me, I'll give a whirl on 06052013 :good:

pluged in whole time so batt data.

... oh forgot to mention I run yatse, which uses mx player and it did alright here.
[HTC EVO 3D] Master Gowa:
I just wanted to say I had no issues at all with the 6/3 build. I run MX player often too but I also downloaded the ARM7 Neon codec for it.

With the 6/5 build it seemed frozen for a second when I went to check what apps are running by going settings/apps.
[HTC EVO 3D] ZWYATT:
The 6/5 build in op seems to have excorised the demons. :thumbup:
[HTC EVO 3D] ZWYATT:
I'd say the new compiler was the problem. Since you reverted, kernel seems great.
[HTC EVO 3D] mrg666:
I also think the new compiler was the problem. We have tested it but the problems appeared in a longer time period after the testing.

I recommend updating the kernel without waiting to see the problems.
[HTC EVO 3D] johnnyslt:
1. I didn't had any of the problems that were reported here.

2. I have autogroup disabled, I tried with it on and I don't see any problem with it.

3. Helicopter88 started working on that, and he got it to compile, but it didn't boot (stuck at HTC screen) https://github.com/midnight88/pyramid-3.4.10
[HTC EVO 3D] pbailey212:
Revised kernel works great. I can now continue on with my secret candy crush addiction with out interruption
[HTC EVO 3D] mrg666:
I will give it another shot. There are many ways to do it.
[HTC EVO 3D] mrg666:
The problem was most probably due to the compiler flags. I was micromanaging the compiler flags but some of the flags change from one toolchain to another. I have now simplified the compiler flags into a common smaller set. The rest of the flags will be determined by the toolchain based on the optimization level chosen (-O2 currently) and the architecture set. This is a safer way and there is no noticeable performance loss.

I am now testing the 4.7.4 stable toolchain. If everything goes well, I will be using this toolchain in the future.

Edit: I have applied the rwsem patch again and the kernel built with linaro 4.7.4 using the reduced cflags is working excellent so far.
[HTC EVO 3D] mrg666:
I have been searching for a good sound processor that works well with the updated sound driver in the kernel. I think I found it.

http://xdaforums.com/showthread.php?t=2168756

Just freeze Music and Music Enhancer in /system/app (I use link2sd for this). And flash the file "srs_mod_for_nxt.zip" in the above link via recovery. I use Google Play Music. Sound settings will appear in settings/Equalizer of Google Play Music with the same interface you can find in JB roms.

There are many other options I know. But this one works best for me.
[HTC EVO 3D] Master Gowa:
Just thought I'd report that my phone froze for 2 mins. I just exited out of an app (I think it was Google's Local or Dolphin Browser but I don't remember because this was hours ago) and the phone froze up on the sense clock/weather widget. The little rolodex animation between minute changes was happening but it got stuck in mid flip/change. The phone wouldn't respond at all. Then about two minutes later it updated like nothing happened and all was good again. This happened on the 6/5 build.
[HTC EVO 3D] mrg666:
If you can supply a dmesg, I can look into it. But make sure you use the latest update on 6/5 (check md5). My phone has gone through the most grueling tests today without any trouble. There were also several confirmations since the last build that freezing was resolved.
[HTC EVO 3D] Master Gowa:
Will that still be useful because it was 4 hours ago and the phone didn't fully crash? I've been using it since.
[HTC EVO 3D] mrg666:
I didn't see anything unusual in this log.
[HTC EVO 3D] Master Gowa:
No worries.
[HTC EVO 3D] t3khe4d:
wanna say thanks for this tip! SManager worked great, but, I would like to run it from init.d folder and I'm still having prob running just that command from there, I have no cpu apps installed and just the script in init.d folder and it doesn't effect the cpu, just using leedroid tweaks to view cpu freq I can see it never turns off, if I use Smanager works perf!

any ideas on where to look for answers, or am I stuck with rolling Smanager?

thanks in advance for any input,.... from anybody! :highfive:
[HTC EVO 3D] mrg666:
3.0.81 MiRaGe kernel is posted in the OP.

- synced with Linux 3.0.81

- reapplied rwsem patch

- built with 4.7.4

- simplified optimization flags to ensure stability

- updated Qualcomm Crypto engine with the latest fixes from CAF msm-3.4 kernel

Enjoy!

Edit: Tekhead, you got PM.
[HTC EVO 3D] t3khe4d:
you ROCK! :highfive:
[HTC EVO 3D] johnnyslt:
mrg666, you should check out the rwsem commits that I've found, they really make the phone "fly". Also do you have row scheduler? If not... you should.

:D
[HTC EVO 3D] ZWYATT:
Running 6/8 build since yesterday.

Runs like a champ. Many thanks. :thumbup:
[HTC EVO 3D] mrg666:
Yes, I have seen them. I didn't want to add more variables when I was testing the gcc 4.7 compiler. I will pick them up soon. I am not that sure about the read-over-write idea in the row scheduler. But I will test it too. Thanks!

Did you check my bcmdhd update? It seems to be working more reliable with JB for me. If you pick that up, you will need the previous net/wireless commit before that.

Thank you!
[HTC EVO 3D] mrg666:
Here is a test kernel after applying many patches from Linux 3.10-rc5. I have picked all of the rwsem patches and thanks to johnnyslt for the heads up. I have also added an important patch that accelerates the tlb code significantly. I am quoting Peter Zijlstra:

"Since the introduction of preemptible mmu_gather TLB fast mode has been broken. TLB fast mode relies on there being absolutely no concurrency; it frees pages first and invalidates TLBs later. However now we can get concurrency and stuff goes *bang*."

My testing gives me the impression that both johnnyslt and Peter Zijlstra are right. Check it out and please post if you have any feedback.

http://www.mediafire.com/download/g4cb34rtgf4r4la/MiRaGe_shooter_test_kernel_813.zip

Edit: I have updated the test build since the default frequency was 1728 which is too high for testing. Please download again ... sorry.
[HTC EVO 3D] johnnyslt:
Great work ! ! ! You just took it to another level :highfive: .

I managed to test your bcmdhd patches, it seemed to work OK, but I only tested for a few hours.
[HTC EVO 3D] mrg666:
Thank you! Do you happen to know a fix for 3G not connecting without toggling it in JB. It is happening when I turn off WiFi. I am trying to fix that problem now. :(
[HTC EVO 3D] johnnyslt:
Well it should connect automatically, did you made your build from the shootervm repo? Maybe there are some problems with the APN settings, or some prop missing from build.prop.

Put a log here, to see what's happening after you disable WIFI.
[HTC EVO 3D] jmkarnai01:
So it is going into deep sleep but draining at the same rate as if it wasn't in deep sleep. Any ideas. Tried lowering max CPU and running the same programs as the kernel it came with. ROM is Mazda's newest AOKP 4.2.x. The kernel is very smooth and fast, just trying to figure out that when sleeping why it is not leveling off
[HTC EVO 3D] mrg666:
Incompatibilities with JB ROMs are expected since this kernel is for stock ICS ROM. I recommend using the default kernel.
[HTC EVO 3D] digitalhigh:
Latest kernel works great with my jb miui...
[HTC EVO 3D] mrg666:
Thanks for the info!
[HTC EVO 3D] Meowdib:
I miss this kernel on my Note II. Thanks for the good times.
[HTC EVO 3D] mrg666:
Thanks for stopping by! I am sure it is great when you are looking at the screen but how do you carry it?
[HTC EVO 3D] tvall:
Belt clip case thing is the most common method I've seen. Using Bluetooth for calls.

I want to make a Bluetooth headset in the same shape and size of an old flip phone. That would be perfect for note users who don't want to hold a tablet to their face, and don't like appearing to be talking to themselves.
[HTC EVO 3D] Meowdib:
Wallet case, in my pocket. You get used to the size... at least, that's what she said! :D
[HTC EVO 3D] mrg666:
Hey look who is here. This is Tvall!

Doesn't bluetooth eat the battery? If not, let me check the kernel of Note II to steal the bluetooth code.

LOL
[HTC EVO 3D] Meowdib:
The reason I got the Note II was because I don't have to worry about the battery. I can have everything on and it will probably last a day and a half, without optimizations. If I leave some stuff off, it usually lasts 2 days. If I use Greenify, it lasts a little longer. I'm gonna try the Juice Defender to see if I can get 4 days, normal usage, which is no games but talking on phone, SYNC everything and browse Internet a lot. Plus I'm running http://xdaforums.com/showthread.php?t=2134099 , which is nice.
[HTC EVO 3D] THC Butterz:
does anyone know if usb otg has been tested with r002 hardware?
[HTC EVO 3D] mrg666:
USB OTG is working with 002 hardware. I have tested it with a mouse, keyboard, and an external usb flash drive. You will need a powered USB hub to make it work along with micro USB adapter cable.
[HTC EVO 3D] mrg666:
The 06132013 build of MiRaGe kernel is available in the OP with the following changes

- Synced with Linux 3.0.82

- backported all of the rwsem updates from Linux 3.10-rc5

- backported many tlb updates from Linux 3.10-rc5

- backported many ARM updates from Linux 3.10-rc5

Enjoy!
[HTC EVO 3D] cupliz:
Seems good, stable like rock...

Thx

Sent from my PG86100
[HTC EVO 3D] thewraith420:
Does this kernel support usb fastcharge?
[HTC EVO 3D] mrg666:
The kernel does fastcharge when there is a suitable charger. But if you mean the force fastcharge hack, no. It was added initially but I have removed it later. You will find the related discussion in this thread.
[HTC EVO 3D] busventinc:
Mrg666 nice build I am on negas ROM no errors no lag apps load up quickly for me the best build so far congrats and thank you
[HTC EVO 3D] ohbuckeyeman:
Completely agree. Best kernel I've used.
[HTC EVO 3D] mrg666:
Here is a new build of MiRaGe kernel with the following changes

- backported the latest row io scheduler from CAF msm-3.4 kernel and set as default

- Linux 3.0.83-rc1

- cputime and proc/stat updates and optimizations

Depending on the feedback on ROW scheduler, I am planning to remove SIO scheduler in the next build.

Linux 3.0.83 will be announced officially tomorrow but I have already included rc1 here since it is a very minor patch.

Enjoy!
[HTC EVO 3D] mrg666:
I have been testing the ROW I/O scheduler but I haven't seen any benefit of ROW over the good/old SIO scheduler in any benchmark. I have applied all patches I could find to the kernel block system hoping that it would help ROW show a better performance but there is still no difference. I am a little frustrated and disappointed with the amount of time and effort I have put into this scheduler.

I am updating the kernel in the OP with the latest block updates to be fair in our testing as much as possible. After what I have seen, I think I will remove ROW in the the next build since it is bigger and more complex than SIO. We don't need this overhead when there is no benefit of it. Please post your benchmark results if you can find any benefit
[HTC EVO 3D] t3khe4d:
was messin' around earlier when you posted this,... not sure if this is what you meant.

EDIT:

meh,... I wouldn't consider these as conclusive.
[HTC EVO 3D] digitalhigh:
Hey Mr.G...

So, testing latest version of kernel on my ROM, trying to get a baseline and scores for all 5 kernels. Discovered a few problems...

No bluetooth...tries turning on, never gets there. Same with 4G. And with video recording, I get an error about can't unlock the hardware for camera. I can get you logs if you want, but it's a JB 4.1 ROM, so I figured you may already be aware of the reasons for these issues.

Point is, I remember you kind of mentioning the possibility of cooking up a JB kernel some time soon...is that still on the table? I really like your take on kernel building, and would love to be able to offer a fully working version of it with my releases. If not, I totally understand.
[HTC EVO 3D] mrg666:
Hi DH,

If you can help with testing, I can work on fixing the problems with your ROM. I have been building JB 4.2 from Evervolv repo since some time. Bluetooth and camera are working there with a special JB branch of MiRaGe kernel. The only difference so far between the ICS and JB branches is the bluetooth fix. Camera and 4G have been working fine. I have built the latest JB branch of MiRaGe kernel for you below. If you can test and let me know if bluetooth is working, it would be great.

http://www.mediafire.com/download/qle3ojicdvusheq/MiRaGe_shooter_test_kernel_833_jb.zip

Regarding camera and 4G, if you can let me know the kernels that has working camera and/or 4G in your ROM, I will check the code there to patch mine. Also, posting dmesg and logcat with the camera/4G errors would be great. I am assuming that the ROM you rmention is MIUI and, AFAIK, their kernel source is not available. Please let me know if this is wrong.

JB ROMs are sometimes very different from each other. I don't think I can come up with a universal JB kernel because of that. But we can make MiRaGe work specifically with your ROM .

Cheers!
[HTC EVO 3D] digitalhigh:
Unfortunately, no, still no BT or Video recording with the test kernel. As far as who has what working, you can refer to the pdf here to see who's kernel did what. :D

http://xdaforums.com/attachment.php?attachmentid=2062141&d=1371937678
[HTC EVO 3D] mrg666:
I thought WiMax was not working with MIUI but it is marked working now. I am not sure how you tested OTG, I will double check that. Let me see what can I do with BT and Camera in your ROM. But no promises since I need to add MIUI on top of AOSP JB and Sense ICS I have been already juggling. I would appreciate if you can drop MiRaGE from MIUI until I make BT and Camera work.
[HTC EVO 3D] cupliz:
Hi mr.g

Do you planing to try porting zen i/o sceduler??

Im not developer but i use another device that using custom kernel and find the better result from using zen, maybe you can take a look for a while...

Sent from my PG86100
[HTC EVO 3D] mrg666:
Based on the information here, Zen is almost the same as SIO, SIO, is based on on NOOP, Deadline, and V(R), V(R) is similar to Deadline. I am avoiding adding so many variations of the same code in the kernel. We have SIO and ROW in addition to Noop and Deadline. ROW is the newest scheduler and developed by Qualcomm specifically for flash-based mobile devices. It is actively developed at CAF. That is why I have added it. If you can point to the benchmarks showing Zen's better performance than the rest, I can replace SIO with it. But there is no space in the kernel for similar code doing the same job, I am trying to avoid dead code in the kernel as I posted in the OP.
[HTC EVO 3D] cupliz:
You can take a look on this

http://xdaforums.com/showthread.php?t=2140930

Thx for your time

Sent from my PG86100
[HTC EVO 3D] mrg666:
I have uploaded the new build of MiRaGe kernel

- synced with Linux 3.0.84

- backported kernel/smp updates from Linux 3.10-rc5

- backported latest interactive governor updates Google common-3.4 kernel

- cleaned up log spamming of atmel touch driver

- backported ashem updates from Google common 3.4 kernel

- merged the latest update of ROW scheduler from CAF msm-3.4 kernel and set as default i/o scheduler (SIO is gone)

With the latest interactive cpu governor updates, cpu stats show more cpu time spent at the lowest frequency. I regularly see >90% cpu time spent at the minimum frequency (with the configuration of my phone, yours can be different) which is ~7% higher than previous builds. It seems like this improved the battery life.

I have been testing ROW I/O scheduler more than a week now. I didn't see much/any difference in the end-user experience although there are slight performance improvements in file system benchmarks. But there were no problems either with stability or battery life. In the end, ROW is the latest i/o scheduler specifically developed for mobile devices at Qualcomm/CAF. So let's stick with the latest code and retire SIO which is now almost two years old without any updates.

Enjoy!
[HTC EVO 3D] bigwillyg:
Interesting. Good to note.
[HTC EVO 3D] mrg666:
You can pick the commits from the repo. The dependency commits are there too. Let me know if I can help any way. Both row sched and interactive gov are at the latest patch level right now.
[HTC EVO 3D] jlip5617:
Great kernel

Sent from my PG86100 using Xparent Red Tapatalk 2
[HTC EVO 3D] johnnyslt:
mrg666, what do you thing about this "driver" https://bitbucket.org/morfic/trinity_four/commits/2c563b7837ac4bb26c39c200c3c1c66f3a94a1cf I know that its for quad cpus but maybe we can use it?
[HTC EVO 3D] bigwillyg:
The commits are commits are working perfectly, I had issues with duplicate code but that got sorted out quickly. Thanks for the help.
[HTC EVO 3D] mrg666:
This is very interesting. I have been trying to simplify and optimize the community version of msm_mpdecision in the last couple of days. There is still a lot more space for optimization with that code. CAF version of msm_mpdecision is even larger and more complex. But the auto_hotplug code you linked is less than half the size of mpdecision I currently use. It also looks simpler and more efficient.

I am already disabling mpdecision and using it only to turn off the second core when screen is off. This auto_hotplug code does the same at a smaller size. I will try for sure. Very nice find, thanks!

You're welcome. The new interactive governor is working even better than the previous update I was using.
[HTC EVO 3D] johnnyslt:
I'm glad you like it, all the patches related to it are on this LINK & LINK.

I hope I you can make it to work, because I can't wait to KANG it from you :p