yashsingh1/xdaforums huggingface dataset:
[Nexus 6  Original Android Development] bbedward:
I found some bugs related to CPU affinity setting/getting, bug in migration after lock released/interrupts enabled, and a couple of others.

Me and [MENTION=1481114]purian23[/MENTION] are currently testing these, stay tuned ;)
[Nexus 6  Original Android Development] pantmunu:
I'm still on zen 4 . pffft. ?
[Nexus 6  Original Android Development] lainemac:
same here. Tried to get a log but my computer wouldn't recognize the phone during the freeze.
[Nexus 6  Original Android Development] bbedward:
Anyone interested in a test build who is capable of providing logs if issues occur:

https://www.dropbox.com/s/tjizlmpzx9j5eq3/zen7_FU.img?dl=0

It basically features these commits:

https://github.com/bbedward/ZenKernel_Shamu/commit/4e0a7a35ac2b305865a7bf3c65a5df2e991362f2

https://github.com/bbedward/ZenKernel_Shamu/commit/3abdb8d7747204be40f1cf5342ca15ff620a2df6

Some stuff is trivial, but the one change that isnt is the set/getaffinity methods.

Basically affinity is locking/pinning tasks to certain CPUs. The issue comes in when hotplugging events occur (whether thermal related, battery related, or sleep/suspend related) .

The issue previously (I'm not sure how this got omitted from my BFS merges before) is that when BFS was getting/setting affinity for the different CPUs there was no guarantee that the CPU it was setting affinity to would be online.

So in other words:

BFS sets affinity of a process to a certain CPU

That CPU goes offline during the affinity event, or right before it

Later on, process "P" that that was assigned to (lets say CPU3 - which was offline when the affinity was set) resumes up when CPU3 comes back online

Process "P" resumes execution, and starts manipulating the memory addresses (which have long since changed after CPU3 went offline)

Other process "OP" also start using the memory addresses (0xFUBROH8U) that process "P" has been changing (may currently be changing). Potentially one of these addresses has been FREED because it was assumed to no longer being used (locks held by "P" become screwed up when CPU3 went offline)

At some point, an interrupt or process comes in looking for the address (0xFUBROH8U), which no longer exists

OOPS

As you can imagine, a ridiculous amount of tasks are going through the cpu scheduler all the time. Most of the time things probably go unaffected, but there are so many professes/tasks doing so many different things between 4 cores, somewhere along the line there's bound to be a problem.

I know I did not explain this very well, but that's the gist of it from my understanding.

What happens now, basically, is hotplugging events are blocked during affinity set/retrieve (as they should be).

Whether or not this is the issue you guys have been seeing I am not sure, but it is an issue I found none the less.

I would ask for PMs and such for test builds, but I don't wanna **** around I wanna squash the problem as soon as possible.

---edit---

This also has this branch merged:

https://github.com/bbedward/ZenKernel_Shamu/tree/arm_51

this is upstream rewritten FIQ handler, and other arm/kernel low-level stuff. (v7-m is there for compatibility with some of the other patches only, it doesnt even have a Kconfig or Makefile entry ------ I only feel like I need clarify because somebody will comment on my github and say "You don't need this you big dummy, pointless")

I gave purian23 a debugging build with all sorts of debug stuff added to it without the aforementioned fixes to help pinpoint the source of the problem in case the affinity fixes are unrelated. So you can all thank him for being the test dummy :laugh:
[Nexus 6  Original Android Development] mimsiroll:
Op, just wanted to ask what can we use to fully control your kernel? I mean what app can we use? I'm currently using fku because of the system monitor and color profiles. Can you tell me what your currently using?
[Nexus 6  Original Android Development] Fabioo123:
how can I reactivate haptic feedback?

I tried searching but I can not find an answer
[Nexus 6  Original Android Development] bbedward:
For wake gestures its in /sys/wake_gesture/vibrateor_value I think, some apps pike the wake gesture app will let you control it
[Nexus 6  Original Android Development] Xileforce:
Maybe the rockets should have stayed in Oakland.... ;)
[Nexus 6  Original Android Development] Megaflop666:
Cough, cough... GO CAVS!
[Nexus 6  Original Android Development] :
Aaahh. :/ What an upset! Oh well I'll always represent my home team! :)

Kernel running super. I've been all around and always end up back on Zen kernel.. Thanks again for all your time spent on this and for sharing with us on XDA op!!
[Nexus 6  Original Android Development] bbedward:
It's OK, Cleveland will take down golden state for you :good:
[Nexus 6  Original Android Development] Xileforce:
Never!
[Nexus 6  Original Android Development] bbedward:
#clevelandrocks
[Nexus 6  Original Android Development] akira.pwr:
What?s the best setting for battery consumption using kernel adiutor app?

My N6 isn't so friendly with battery drain, nothing terrible, but uncomfortable.

Thanks in advance.
[Nexus 6  Original Android Development] fedef12evo:
want to try f2fs using this kernel, is it worth the wipe? or it is same performance of ext4
[Nexus 6  Original Android Development] lainemac:
+1 I would like to know as well.
[Nexus 6  Original Android Development] cameljockey1:
The new 5.1.1 for T-Mobile is out. I can't run this kernel because it breaks WiFi calling not sure how. Have you looked into this? I am getting zen withdrawal. Awesome battery drain on the stock kernel encryption. Thank you.
[Nexus 6  Original Android Development] Tylog:
No source available
[Nexus 6  Original Android Development] bbedward:
You can try to lower input boost duration, input boost frequency. Maybe do a global -25mV or more under volt. That's about all you can do in the kernel, there's lots of stuff people do to kill app services and what not as well.

Performance is slightly better for writes, if you switch just make sure you keep important stuff backed up in case anything goes wrong.
[Nexus 6  Original Android Development] bbedward:
Golden State up next :good:
[Nexus 6  Original Android Development] wrongway213:
I'm oh so excited man.. We need this
[Nexus 6  Original Android Development] rignfool:
[MENTION=2632235]bbedward[/MENTION]

Any chance of having zen-decision un-hotplug cpu2 and cpu3 on screen off...

Or possibly giving us a tunable in zen decision to allow that if we wish?
[Nexus 6  Original Android Development] bbedward:
This already happens from the regular suspend driver. Except it disables cpu1-cpu3. Sometimes they don't come back online though which is the issue zen is fixing :)
[Nexus 6  Original Android Development] rignfool:
What about in the wake lock scenario... Does it online all 4 cores or does it only use CPU0?

Wondering if I'm wasting time with tasker ?
[Nexus 6  Original Android Development] bbedward:
Well the way it all works is:

- Screen goes off, device sleeps, all CPUs go offline except the boot CPU (cpu0)

- Screen goes on, all CPUs go online unless battery is <15% only 3 CPUs are on, and < 5% only 2 CPUs are on

You shouldn't need to do any online/offlining in tasker unless you're looking for a different behavior.
[Nexus 6  Original Android Development] rignfool:
What about when the screen is off... But the device is awake... How many cores are online then...

Sorry for asking so many questions...

EDIT: based on my usage today... Cores do not go offline when the screen goes off... However... The whole CPU will go to sleep with all 4 cores online...

So... At least for my usage... Tasker makes a difference when screen off wakelocked....
[Nexus 6  Original Android Development] Xileforce:
See ya guys in Oakland :)
[Nexus 6  Original Android Development] d3vilskid:
Not a fan of either team but this is going to be real interesting.
[Nexus 6  Original Android Development] dany20mh:
[MENTION=2632235]bbedward[/MENTION]

I heard Google released the Source Code for Kernel on Android M, I would love to see your kernel support for that too if you have time for it.

Thanks.

PS, https://android.googlesource.com/device/moto/shamu-kernel/+/android-m-preview
[Nexus 6  Original Android Development] bbedward:
Does the current any kernel work for it? The source doesn't look very different.
[Nexus 6  Original Android Development] urrgevo:
I'm willing to test this. Will report back

Edit: I'm going to wait for root first now that I think about it
[Nexus 6  Original Android Development] urrgevo:
I changed my mind. I tried the zenykernel zip and it bootlooped. I don't think I can pull a log for it since there's no SU, I'm still on m now.
[Nexus 6  Original Android Development] iStayHigh:
Same thing just happened to me too. I would love to have Zen back on my phone while running M preview.

Sent from my Nexus 6
[Nexus 6  Original Android Development] bbedward:
I will pushbullet some new test builds starting tomorrow or Tuesday :)
[Nexus 6  Original Android Development] otisman:
I'm on m and restore a backup from l no issues also flash diff Rom and zen 21 no issues also much alohas
[Nexus 6  Original Android Development] urrgevo:
OK. Those are images that you post there right? Silly question but I'm usually far from a PC, is there any way to flash them from the device?
[Nexus 6  Original Android Development] jiv101:
Yes in twrp bottom right click on images flash to boot partition
[Nexus 6  Original Android Development] papikev:
Thanks for pushing z22 test. Jump right on this tonight......:good: Man, love pushbullet.
[Nexus 6  Original Android Development] lobrau:
Just tried flashing the boot.img zen22 on android M and it wouldn't boot up. back to stock for the moment.
[Nexus 6  Original Android Development] urrgevo:
I had the same result on the jdx m rom version p5
[Nexus 6  Original Android Development] bbedward:
I guess I will just have to pull up my pants and flash M myself :p
[Nexus 6  Original Android Development] iStayHigh:
Yup same thing happened to me, i tried flashing both the boot IMG & zenykernel on jdx p5 m rom and got stuck on the color spinning screen

Sent from my Nexus 6
[Nexus 6  Original Android Development] urrgevo:
Please do! The only thing I want on m is layers working and this kernel. For a Dev preview its running solid and I don't want to go back.
[Nexus 6  Original Android Development] lobrau:
It's not bad, been running as daily driver since it's release. I do find that it sometimes gets weird slow downs and then begins to crawl for no apparent reasons (hopefully kernel related so you can fix that before they do). Other than that it's pretty stable. No major bugs that I've run into that would make me not use it till it's full release yet.
[Nexus 6  Original Android Development] iStayHigh:
Layers work with despair kernel

Sent from my Nexus 6
[Nexus 6  Original Android Development] bbedward:
Layers is unrelated to the kernel no?
[Nexus 6  Original Android Development] urrgevo:
Um...the stuff layers changes is the resources in frameworks and apps afaik. I guess ill play with that in a bit. That google white hurts my eyes.
[Nexus 6  Original Android Development] iStayHigh:
Yes it is,just need root for layers to work.

Sent from my Nexus 6
[Nexus 6  Original Android Development] pantmunu:
Layers has nothing to do with kernel . I guess.
[Nexus 6  Original Android Development] omvir:
Latest test boot.img still gives system ui crashes on CM. Its weird because some people aren't getting these crashes. I even tried a clean flash -.- still no go. Anykernel is working fine though.
[Nexus 6  Original Android Development] Tylog:
It work with any kernel solong you have Root. The commits for layers come from Google and are activated from ground up. Most Themes need some changes but all in all it works

---------- Post added at 01:40 PM ---------- Previous post was at 01:25 PM ----------

This Ramdisc **** is something what makes me crazy sometimes. You can use the same kernel and flash it 10 times on the same system with no changed configuration , 11 flash system ui crash. I hope i can find out in this life the reason for it. It's one of the funniest things ever.
[Nexus 6  Original Android Development] HeckNoTechnO:
Running the latest test zip with Chroma . no issues and seems to be running fine and battery life seems about the same as last release.
[Nexus 6  Original Android Development] purian23:
[MENTION=2632235]bbedward[/MENTION]'s Zen22 Test Image. It has been rebased on Android M Code. This should work on Lollipop as well.

Please test this out and let us know. Thanks

https://www.dropbox.com/s/f7j1yjkd3p15nbq/v3.10-zen22_test.zip?dl=0
[Nexus 6  Original Android Development] Efrenjr15:
will this work with AICP CM based rom?
[Nexus 6  Original Android Development] purian23:
It "should" but please try it out an let us know. Have a backup on hand just in case.
[Nexus 6  Original Android Development] omvir:
System ui crashes on latest cm 12.1. I'm using any kernel, and its fine.

But! Any kernel gives me random reboots upon receiving a phone call, so I'm really hoping this issue can be sorted out.
[Nexus 6  Original Android Development] urrgevo:
I tried this on M and it bootloops. Won't go past the swirling dots.
[Nexus 6  Original Android Development] iStayHigh:
I tried these files earlier, it booted up but got stuck on the color screen. Man I hope y'all get it working,would love to have zen back on my phone.

Sent from my Nexus 6
[Nexus 6  Original Android Development] Efrenjr15:
Got bootlooped on lates AICP 6-2 build, M builds and kernels are still "fresh" so im sure with time things will work together. zenykernel21 is still a beast so i aint trippin lol, keep up the good work.
[Nexus 6  Original Android Development] insty:
Zen22 working on 5.1.1 (stock rom).
[Nexus 6  Original Android Development] resynx:
zen22 has been running excellent on OptiPop!
[Nexus 6  Original Android Development] cameljockey1:
This should work with WiFi calling right? And the voice over lte won't break as well for the t-mobile stock roms? The new M kernel that is.
[Nexus 6  Original Android Development] cameljockey1:
Omg finally got zen back. Everything works on stock t-mobile 5.1.1 voice over lte and WiFi calling. Nothing broke at the moment. Thank you. From M kernel BTW
[Nexus 6  Original Android Development] bbedward:
[MENTION=4517211]Xileforce[/MENTION] it begins tonight :cool:
[Nexus 6  Original Android Development] Xileforce:
Indeed it does :cool: lol I only started watching basketball like a few months ago and got hooked xD
[Nexus 6  Original Android Development] MrBrady:
Zen22 (img) causes SystemUI FC with Euphoria (5.1.1r3). Won't fully boot because of the FC. The ZenyKernel version works fine though.
[Nexus 6  Original Android Development] bikeryder007:
Just wanted to thank you for getting wifi calling working on the t-mobile stock 5.1.1 rom. Everything is smooth and running great and all features are working as well!
[Nexus 6  Original Android Development] sithdroid2187:
Just loaded this kernel and tested wifi calling. It freaking works! Fantastic job dev.
[Nexus 6  Original Android Development] justibasa:
What did you do to get it working? I can't seem to get Wi-Fi calling working at all.
[Nexus 6  Original Android Development] sithdroid2187:
I just installed the test kernel that was posted a couple pages back. I'm on the stock factory image, rooted and my only mods are xposed and gravitybox.
[Nexus 6  Original Android Development] justibasa:
The reg test or the anykernel test?
[Nexus 6  Original Android Development] sithdroid2187:
[MENTION=3618866]justibasa[/MENTION] This one.
[Nexus 6  Original Android Development] justibasa:
What do you know, it's working. Thanks dude!
[Nexus 6  Original Android Development] tswltd:
Yeah, working very well. Great work!
[Nexus 6  Original Android Development] bbedward:
Happy Sunday!

Go Cleveland Cavs!
[Nexus 6  Original Android Development] wrongway213:
Man this is intense! Come on Cleveland!

Edit: (Insert banned from XDA here)
[Nexus 6  Original Android Development] iStayHigh:
Overtime again, man I tell y'all these NBA finals are fantastic

Sent from my Nexus 6
[Nexus 6  Original Android Development] rearden_metal:
Flashed the zen22 test build on T-Mo's LYZ28E 5.1.1 pure stock build, still can't get WiFi calling to stick. Proceeded to root, still nothing. Any thoughts?

Zen optimizations + WiFi calling would be killer.

---------- Post added at 08:19 PM ---------- Previous post was at 08:12 PM ----------

Also, just tried to flash the stock LYZ28E boot.img and WiFi Calling is still broken. Only deviations from stock should be custom recovery (TWRP) and root.

---------- Post added at 09:07 PM ---------- Previous post was at 08:19 PM ----------

As with most things in life, patience. WiFi calling started working about 30 mins after flashing. Sorry for the spam, and thanks [MENTION=2632235]bbedward[/MENTION] !!
[Nexus 6  Original Android Development] Smallsmx3:
What's the secret?
[Nexus 6  Original Android Development] wrongway213:
[MENTION=2632235]bbedward[/MENTION] Cavaliers corner here tonight? Man this is exciting, awesome we are getting a finals like this right here.. on pace to be thebest series I have watched in years thus far
[Nexus 6  Original Android Development] bbedward:
I'm all in for Cleveland :)

Let's finish it in 4,5,6 in Cleveland and I will certainly be at the downtown party :)
[Nexus 6  Original Android Development] wrongway213:
Feelin pretty good right now bro!
[Nexus 6  Original Android Development] branedamig:
I'll just leave this here.

Sent from my Nexus 6
[Nexus 6  Original Android Development] bbedward:
I'm not dead guys :p just working on the job hunt front as well as working on my app. Plus nice summer weather doesn't come many times a year in Cleveland so I've been enjoying it too.

Anyway,go cavs tonight :)
[Nexus 6  Original Android Development] wrongway213:
Go Cavs!:good:
[Nexus 6  Original Android Development] Megaflop666:
Come on cavs! Get it together!!
[Nexus 6  Original Android Development] bbedward:
Miserable performance but we're not done yet.

Let's bring in the next two and seal the deal!
[Nexus 6  Original Android Development] Megaflop666:
Ohio in the house! Go cavs!
[Nexus 6  Original Android Development] wrongway213:
Yeah last night was rough, definitely started to see that a lot of our bench is obviously not meant for this kind of pressure.. I think they'll pull together for game 5 though.
[Nexus 6  Original Android Development] yellowman82:
I think it all came down with the coach strategy which was great. Steve Kerr kept bogut out the starting lineup and went with Iggy which honesty have been one of the warriors best consisted player coming off the bench but him starting gave them a big push and the cavs had no choice but to play at the warriors pace it was a miss match for that Russian center and for Thompsons to guard Iggy.

Also great coaching by stopping the cavs leader lebron James by double teaming him every time he got the ball in the post which made him more of a passer. The center was the leading scorer and the role players struggled to hit shots and with lebron being double team there's was no way that he was going to score another 40 points which is what the cavs need from him for them to win, warriors made sure if they was going to lose this game it was going to be by the hands of the role players and not lebron. Next game should be good let's see if Cleveland have an answer for that strategy that Kerr came up with.
[Nexus 6  Original Android Development] Megaflop666:
Lebrons junk on national television jinxed the game...
[Nexus 6  Original Android Development] Megaflop666:
The lack of technical support questions and the overabundance of basketball talk all points to the fact that [MENTION=2632235]bbedward[/MENTION] builds a great kernel. ;)
[Nexus 6  Original Android Development] resynx:
Just had a random reboot on zen22 test and omni 6/8. Was just scrolling through gmail when it happened.

https://drive.google.com/file/d/0B4Dp2qRui0u0cmU3ZmVsQl9YZ00/edit?usp=docslist_api
[Nexus 6  Original Android Development] rui.ddevil:
[MENTION=2632235]bbedward[/MENTION]

Found a BUG using stock Android 5.1.1 and zen21:

1 - battery at ~15%: Core3 shuts down [OK]

2 - battery at ~10%: Core2 shuts down [OK]

3 - connect to charger [OK]

4 - battery at ~20%: Core2 an Core3 come back online [OK]

5 - Core3 stuck with "Performance" governor [BUG]

If I force another governor Core3 seems to go back to not-stuck state (normal?)

Can someone else confirm please? Thanks :)
[Nexus 6  Original Android Development] wrongway213:
[MENTION=2632235]bbedward[/MENTION] I'm quite curious if there's any possibility BFS could be causing these random reboots being reported, not just here but all over the forum. I do not believe BFS alone is causing it. However, i am beginning to grow curious with increasing reports (including my own experiences) if there is a correlation between having a CFS kernel set up for your primary ROM and a BFS for your secondary ROM (or vice versa) in MultiROM. I keep seeing errors of people getting reboots and many seem to think they are MultiROM related, and the one thing I have noticed is that it seems all reporting this issue are using one BFS kernel. Could something not be playing nice due to differing kernel parameters? Or would it require someone with more intimate knowledge of how MultiROM works to answer this question? I have quite a few logs I can link you to if you think there could be anything to look at, figured I'd ask if it's even theoretically a possibility first. Hells looked at one of them and told me to send it to Tasssadar at MultiROM but I haven't heard yet, that's when I started seeing others with this issue and noticed BFS seems part of it all the time. Hope you don't mind me tagging ya for your BFS expertise, I figure if anyone on this forum should know the difference between BFS and CFS paramaeters and what kinds of problems could happen if they got mixed up, it'd be you.

Edit: Suspicions somewhat confirmed, in that one of the users having issues was using Despair kernel (BFS) in secondary and getting random reboots with a CFS kernel in primary.. now using stock CM kernel (obviously CFS) in secondary and random reboots gone. Let me know if there could be anything to this or if I am just grasping at straws when you get a chance, or of course if you'd like the logs - don't wanna just drop 4 logs not from your kernel in your development thread and all.
[Nexus 6  Original Android Development] Nytrikx:
Car Auxiliary not working

I don't know if anyone else is having this problem. I'm using the latest version of LightROM by Dan developer and the latest version of your kernel. Headsets do have sound, is only when I use the auxiliary system in my car that there's no sound. Maybe is the cable itself. Jus want to see if anyone else is having this problem.
[Nexus 6  Original Android Development] papikev:
Been running Zen 22 since it was released with not a single reboot. I think it's been almost 2 weeks.
[Nexus 6  Original Android Development] bbedward:
I use the auzillary cord in my car every day ;)
[Nexus 6  Original Android Development] :
Are you using Viper Audio? It's a known issue (I have this as well) and independent of ROM/kernel. - http://xdaforums.com/showpost.php?p=59330196&postcount=259
[Nexus 6  Original Android Development] Nytrikx:
Yes I am. Thank you for the help
[Nexus 6  Original Android Development] dawiseguy77:
Recently been getting random shut downs and WiFi randomly disconnects too using cheap and easy version.
[Nexus 6  Original Android Development] otisman:
The sound of perfection! Hear a pin drop in hear lol
[Nexus 6  Original Android Development] Efrenjr15:
Never mind lol
[Nexus 6  Original Android Development] MandoH:
Going to give this kernel a try...
[Nexus 6  Original Android Development] MandoH:
Got stuck in a bootloop after flashing.. Can't get passed Google screen
[Nexus 6  Original Android Development] Efrenjr15:
What rom are you on?