yashsingh1/xdaforums huggingface dataset:
[HTC Butterfly] SamePaul:
I didn't intend any belittling, just wordplay. Butterfly in nature is insect. That's all. :)

As for HPM, it was feature of Qualcomm chips starting with MSM8960, where each core is independently scalable. Unfortunately Android kernel didn't (and still doesn't) fully leverage this feature. Sorry me this moment of boasting, I'm working at Qualcomm :)

Apple always had tight integration between SW and HW. That's why their phones always were smooth and fluid, despite from bare HW perspective their phones were inferior comparing to high-end Android phones.

Android is targeted for multiverse HW environment and inherently suboptimal.

Moreover, initially it was so highly castrated for single-core model; the whole multi-core thing was so unnatural for Android arch, that it took 3 years before normal multitasking became more or less acceptable. But still far from perfect. For example, todays average Qualcomm chip has quad-core application processor (APPS) and 4 dedicated processors: power management (RPM), modem (MSS), sound (LPASS) and wireless.

Specialized processors are very power efficient and are able significantly offload tasks from APPS, effectively reducing need even in quad-core. Dual-core APPS processor would perform far better if all other processors were utilized correctly.

But Android doesn't allow it easily. The prominent "music tunneling" feature that was introduced in KitKat is simply letting to LPASS perform whole playback path itself - from downloading stream, decoding and output sound data to audiojack. Qualcomm chips support it for years (8960 is more than 3 years on market), but Android allows it just now and still is limited to MSM8974 of Nexus 5. Even another phone based on same chip probably won't be able to utilize this feature.

Apple would never have this problem. If HW supports something then SW will use all features and in most optimal way.

Another example - eMMC driver. I'm amazed why simply copying data from internal storage to SD card can cause whole phone stutter. Even graphics, which is expected to be completely independent, still choking.

So all this 8-core chips is pure market trick. Todays bottleneck is in software, in Android architecture - it is not able to utilize properly even 4 available cores.

Excellent proof for my words - latest phones from Blackberry. They are still based on previous-generation chips, but use real multi-core OS. And their phones feel far more fluent and fluid even compared to Samsung S5. Despite BB runs on dual-core 1.2GHz msm8960 and S5 runs on latest super-duper 2.5GHz 8-core Exinos.
[HTC Butterfly] kairi_zeroblade:
ohh..i see..hehe :D

good to see someone from Qualcomm here..well also in fact MSM8960 is the first platform to support Quad so kudos to that..all existing platforms from qualcomm were derived from its design..well all the facts you said are true..Android is less optimized, the main reason could be because Google never had it's own SOC Manufacturing/Binning division..Apple has its own SOC division responsible for bringing the optimized hardware to their phones..about eMMC performance it may be because of ext4 FS..for every Linux kernel release it has been noticeable that ext4 performance has degraded alot..

regarding 8-core gimmicks..Qualcomm was on the right track with just optimized 4-core SOC's but the heck why hexa and octa now??did they bite at Mediatek's bait??also why is mpdecision's source kept private??same with trustzone for Adreno??though i have no complains though if they were open sourced many could contribute and improve the binary's performance and fast-response core scheduling..
[HTC Butterfly] SamePaul:
well, not exactly. MSM8960 is dual-core with old Adreno. It's brother APQ8064 (which is actually in Butterflies) is quad-core with newer Adreno.

But like we both said, it doesn't really matters (well, except Adreno - this one matters :) ).

As for closed source SW... Anything that can disclose details of HW architecture, algorithms and implementation is usually kept secret. I agree that public contribution can be very profiting, but corporate games is something that is not really clear to me :(

On the other hand, we have SW division that writes drivers for all major platforms, but for example Linux and Android are very hard to influence significantly due to its openness. Inherently limited in amount of changes/improvements we can introduce. Apple with its self-contained product can do whatever they want as long as third-party apps continue to run flawlessly. And they go in optimization very far - they easily can take PCIe and eMMC standards and makes something proprietary but far more efficient. They don't need to care about compatibility because there is no such thing. Even if Google had its SOC they still would be limited because they must maintain compatibility with other vendors.

Btw, Qualcomm also goes same direction as Apple. We're going to drop standard protocols in favor of proprietary stuff for inter-chip connectivity when it comes to pure-Q joint (e.g. APQ+MDM+Atheros). It will be far better for customers than stupid bizzilion-core SOC.

And speaking of the devil. Story about hexa-octa is same old marketing sh*t that was on x86 10 years ago. We never run for hollow numbers, we always strive to performance and efficiency. Btw, Apple too. Our market share says for itself. But end-user loves buzz-words and blindly assumes that "quad-core" is better than "dual-core", and of course "octa" should be better than "quad". End-user doesn't bother to understand that his/her phone 90% of time hardly uses single core and in remaining 10% uses only 2 cores. Mediatek exploits this, they almost don't invest in improving ARM reference design and sell just what ARM gives them. But because of this their product is cheap and people love when they get something they consider "cool" and yet don't have to pay lots of money. Qualcomm understands this too, so we have octa, we have 64-bit arch, we have BIG-little etc. We have to, otherwise competitors well steal "crone" in a moment. Nobody wants repeat sad story of Nokia.
[HTC Butterfly] shiyingwong:
:good::good::good::good:

Nice to see such information here. Nowadays, consumers always prefer MORE Cores are better. But don't understand that FULLY UTILIZE is better. Android need to support multiples of HW, and developers having hard job to do a very very good compatible and very stable SW.
[HTC Butterfly] kairi_zeroblade:
As promised you get your final release!!

Grab update from here

Git source also updated..
[HTC Butterfly] shiyingwong:
So So happy to see this.....:good::good::good::good::good::good::good:

*******************************************************************************************************************************

Just flashed the kernel after flash the reset on the IC3.0.6 but bootlooped....
[HTC Butterfly] kairi_zeroblade:
Fix for final release
[HTC Butterfly] xunus:
How do i grab the logs you need?

Wonder if this is the correct one..

Extract it to get the file. After the bootloop, i went to recovery and type in adb pull /proc/last_kmsg

EDIT: Unfortunately, it still bootlooped:(
[HTC Butterfly] webdepp:
Same errors here... My last_kmsg looks the same like xunus' v2.log
[HTC Butterfly] kairi_zeroblade:
seems after i merged my own voltage control everything went gay..lolz..imma fix it now..so those who can help test do pm me now else i go to bed and have a beauty rest.. :D
[HTC Butterfly] SamePaul:
I guess nobody stepped in to sacrifice beloved Butterfly to evil kernel? :)

Still need assistance?

upd: yep, bootloop for me too and I'm on InsertCoin
[HTC Butterfly] kairi_zeroblade:
Xunus has a test kernel..but i will be updating it inline with the M7 feature set..also i do have a project to give you a 4.4.3 so i do hope all goes to plan.. :D test build will be released to you and Xunus a lil bit later.. :D my rules for testing strictly implies no sharing as i do want to make sure everything is ok before i make a grand release..also if i'd be generous you guys might get a new TWRP 2.8.x.x :D
[HTC Butterfly] SamePaul:
Battery life is disaster... I returned home, dropped phone on desk... and few hours later found it dead. Screenshots attached
[HTC Butterfly] slamming_sammy1:
Need HTL21 kernel ?

Looking to download this but looks like it's gone or expired:

HTL21 old releases:

4.3 Production build 3

Can someone upload it ? thanks!
[HTC Butterfly] kairi_zeroblade:
ok finally here's the link to a test kernel for 4.3 OTA.. :D

Test 4.3 kernel

its fully stock.. :D

op updated as well..
[HTC Butterfly] Deadly Sto(R)m:
No wifi here!
[HTC Butterfly] kairi_zeroblade:
how come mine is working??

try this..and let me know if it works so i can update OP..4.3 test
[HTC Butterfly] masterinc:
No wifi as well

---------- Post added at 09:38 AM ---------- Previous post was at 09:31 AM ----------

worked. but a bit lag
[HTC Butterfly] kairi_zeroblade:
its either you use it or go back to stock and wait for HTC to release it..also i thought you have wonderful and great devs here..lol..also on my side i dont have issues like you have..i wiped mine clean and installed OTA..its smooth as silk and buttery..you do your own tweaks as i did not include any..as i said its plain stock..

anyways here is the final release with wifi fix..NO ETA's for next build..people here want this and that but does not know how to be thankful and appreciative that someone spent time to make a custom kernel for their 4.3 OTA..

for the one who PM'd me about asking for my source for free..well i spent alot of time fixing all stuff and making it work on my unit and you are like asking for candy..LOL..i thought you are a great dev..

Final test 4.3 kernel (OP updated as well)

cheers!! and Happy Holidays!!
[HTC Butterfly] masterinc:
Happy holidays!!!
[HTC Butterfly] daorderdillon:
It's not your kernel lol it's them they are having error trying to connect to WiFi because they don't know how to install the kernel
[HTC Butterfly] it2007me:
u r0x dude! so where is the source code, i can not find it.
[HTC Butterfly] ricky886:
Waiting for Japan version kernel:D
[HTC Butterfly] kairi_zeroblade:
it ain't candy..ask HTC bout it..i spent countless hours debugging it and it won't be justifiable that you guys who are proclaimed "ehem" devs gonna have so easily..

peace..
[HTC Butterfly] it2007me:
Ok, tq vm. :D
[HTC Butterfly] kairi_zeroblade:
thank you for understanding..IMHO if you really are a dev..you should know how to get sources for the 4.3 OTA..took me just 6 hours to get it booting ya know.. :D
[HTC Butterfly] it2007me:
yup i know by using the stock modules..lol!
[HTC Butterfly] kairi_zeroblade:
what??modules must come in compiled all throughout the kernel..else kernel will panic if wrong modules will be compiled/loaded..have you studied your C??or have an insight on Linux kernel building??i am using my own Ubuntu kernel and at the same time i work as a programmer..and how should copying the modules from stock kernel make the ported source boot??

and at the same time the kernel log prints the timestamp of the module when it was compiled..if i have copied those stock modules my logs should be the same as the stock kernel..sheesh..

here's a sample from log showing the imprint of the timestamp as of when the module is compiled..

[ 316.381046] c0 7193 [WLAN] =========== WLAN placed in RESET ========
[ 316.780283] c2 0 [PM] CPU2: msm_pm_power_collapse: change clock rate (old rate = 0)
[ 317.201129] c0 7206 [WLAN] firmware_path = /system/etc/firmware/fw_bcm4334.bin
[ 317.201190] c0 7206 [WLAN]
[ 317.201220] c0 7206 Dongle Host Driver, version 1.42.1 (r344168)
[ 317.201220] c0 7206 Compiled in drivers/net/wireless/bcmdhd on Dec 25 2013 at 12:14:30
[ 317.201251] c0 7206 [WLAN] wl_android_wifi_on in
[ 317.201281] c0 7206 [WLAN] wifi_set_power = 1
[ 317.201312] c0 7206 deluxe_ub1_wifi_power: 1
[ 317.332061] c0 7206 [WLAN] =========== WLAN going back to live ========

it clearly says " Compiled in drivers/net/wireless/bcmdhd on Dec 25 2013 at 12:14:30"..and thats what you call copying..

attached here is that log file where it has been taken..

LOL..

is that the best you can throw at me??you can also check the checksum of the modules if they are the same as stock ones..i added a makefile flag for modules to shrink them a bit..proove here on XDA that i copied the modules from stock kernel..before making a statement..

if all of you dislike my work just let me know i will no further continue supporting this kernel and leave it to the experts as we speak..
[HTC Butterfly] it2007me:
1st of all, you are the one who start bashing me. come one dude! what is wrong with you??? i have no problem with anyone in Xda Dev.

why u wana start the fire and attacking me? FYI, i m asking for source code because the rule in xda (http://xdaforums.com/showthread.php?t=2354376) it open source, under GNU. u know that..

BOA also have no problem work with me..I can see that you don't like my work in here. U work as a programmer wow..so u an expert. it will more fun if we can built this together with the spirit of Open Source.

THIS will be my last post. I will stop developing all of my rom & kernel..no further continue supporting and leave it to the experts, YOU.

TQ VM, good bye Xda Dev.

p/s: im not dev and claiming "I am developer". i do it for free and for fun. we have an expert here. so, i'm leaving xda dev. hope that will make everyone happy. maybe sharing is not good..i will keep all my work for my self. :highfive:
[HTC Butterfly] kairi_zeroblade:
LOL..now you're starting to make me a bad guy afterall..after that harsh statement that "yup i know by using the stock modules..lol!"..LOL w/o proof of me even doing that..

i don't dislike your's or anybody's work..by the end of my day i still prefer something made by my own hands so that i don't end up complaining about this or that..its just simple you make you kernels your way and i make mine my way..unique of each set..where did i bash you from the beginning i did not even post in your kernel thread??

speaking of sources i have my git setup..
[HTC Butterfly] kairi_zeroblade:
Ok enough of the hanky spanky korean drama..

here is what i have promised a custom kernel for the 4.3 OTA..no lags or what ever..all features from 4.3 work(you guys test it and give feedback)..

features are the same as what is in the OP(voltage control, gpu overclock, etc etc etc..)

if you are to report something please follow the proper way..by providng me a clean

last_kmsg or logcat

..how to get a clean last_kmsg??well upon installation of my kernel you have to reboot it twice upon 1st boot..i have to port the kexec hardboot from M7 kernel so that there will be no need of rebooting twice(lazy to put it first..lol)

also feedbacks are welcome..(no violent ones or yet no harsh ones..)

4.3 Production build 1

later on tonight i will try to update the 4.2.2 kernel..for those who have not received the OTA to 4.3 yet..
[HTC Butterfly] praveen7682:
Please check you PM...I have sent a message for you which you will like i guess..
[HTC Butterfly] kairi_zeroblade:
pm replied..a bit of problem..lolz..
[HTC Butterfly] masterinc:
One thing that i really like most bout your 4.3 kernel is that, the color/display is much more vibrant...richer...
[HTC Butterfly] kairi_zeroblade:
wait till i can get it "editable" ATM its static.. :D

also pair the kernel with greenify and you get the best battery life out of it..

also what about that you do not like on my kernel?? :D
[HTC Butterfly] praveen7682:
I just flashed BOA Rom today with your 4.3 kernel....so far it's very good...WiFi working fine...I will monitor it and provide feedback if incase of any issues....
[HTC Butterfly] boa19861105:
HI Please check you message...I have sent a message for you Thank you
[HTC Butterfly] kairi_zeroblade:
Sense 4.2.2 kernel update get it here..

- updated Ondemand Governor..(test phase)

- a few minor fixes..

- HDMI Output is forced to 1280x720p with 60fps rather than FULL HD 1920x1080p with 24fps..
[HTC Butterfly] boa19861105:
HI

I want to know how to update to 4.3 source code from 4.2.2 source code
[HTC Butterfly] kairi_zeroblade:
Update to Sense 5 build(4.2.2)

- fixed a derp i made last night..lolz..

Grab it here.. (OP updated as well..)

Will try to release an update for the 4.3 OTA by this week before Holidays end.. :D
[HTC Butterfly] boa19861105:
You will source 4.3 release butterflies in your Git it?
[HTC Butterfly] chockchip:
HI I am on Boa 7.1 now and I would love to see how the battery goes with this Kernel? could u update on this? thanks.
[HTC Butterfly] praveen7682:
Battery is ok..average time per full charge is around 7-8 hours with games,internet on WiFi and 2g....kairi is planning to release an update this week...so wait for an update to come...
[HTC Butterfly] kairi_zeroblade:
on next update:

- thermald custom setting support..

- reverted some changes on ondemand(reverted back traces since perflock uses it to make the scrolling smoother by tracing cpu loads and dynamically adjust CPU clockspeeds based on the load..)

- more fixes..

edit: YESSS!!! i would like to share the news that finally we have a cleaner log meaning 4.3 Kernel is now (almost) stable..no more traces and no more weird stuff..log is attached.. :D
[HTC Butterfly] kairi_zeroblade:
Latest production build for 4.3 OTA..grab it here.. (OP updated as well..)

its my pre-new-year gift to all.. :D once everything is sorted out..i will start porting to other devices as well..

I would like to throw out a GREAT BIG THANKS to guys over the HTC One thread.. :D
[HTC Butterfly] boa19861105:
Mean?
[HTC Butterfly] kairi_zeroblade:
Happy New Year to all.. :D

next update will contain Screen Color calibration via sysfs or via 3rd party app.. :good: also a few updates and a few more fixes..
[HTC Butterfly] orochi9999:
hi,could u share ur 4.3sense5.5 kernel sources?
[HTC Butterfly] praveen7682:
4.3 Kernel

Hey i have been using your 4.3 latest production build and its awesome..One thing i notices the sound clarity which is really awesome..Thanks for your great work...
[HTC Butterfly] kairi_zeroblade:
thanks..

backporting the audio updates from 4.3 to 4.2.2 right now + screen calibration..will try to release an update soon..

also for Aukkdi version are you guys interested on a kernel??let me know..
[HTC Butterfly] davidjumani:
sorry noob here. all you have to do to install this is just flash this as a zip file in recovery right???
[HTC Butterfly] praveen7682:
yes thats right...
[HTC Butterfly] kairi_zeroblade:
I'm sorry to bring you that Color Calibration cannot be possible..it crashes..lolz..though making it static gives no issues..expect a release tonight for both 4.2.2 and 4.3..

Updates:

- a few minor stuff regarding HSIC from Kitkat..

- will implement OC but not that high as mainly my goal is to save power..also i implemented a Variable OC system which is aimed to be power efficient, performance wise and thermally safe..how does this work? CPU1 and CPU2 will use the max OC frequency while CPU3 will be a frequency less than the first 2 and lastly the last core CPU3 will be running stock frequency..as i have been testing this method there has been no significant impact on battery, performance and yet no thermal issues occur..:highfive:

- new Cache maintenance ops from Linaro/ARM..

- reverted a significant amount of RAM back to phone since i am getting stupid log messages regarding memory allocation..

- reverted HDMI commits and fixed the output to 1920x1080p at 60fps..it now works smoothly(display out)..i also have to retrieve the original carve out of memory for HDMI out for this..

- more code cleanups and derp catching..:p

Would like to thank all who inspire me to continue this..if BOA can cook a 4.4 ROM then i already have a kernel for it to use..
[HTC Butterfly] bluheart:
Fantastic work buddy. I am looking forward to your next update.
[HTC Butterfly] webdepp:
Yay! Looking forward to it. Great work!

What about your plans of backporting the audio updates from 4.3 to 4.2.2. Any progress? I experience audio issues since I updated to 4.3 when using Skype or any other VOIP apps...
[HTC Butterfly] juginkrebs:
geets for x920e or not??? :confused:
[HTC Butterfly] kairi_zeroblade:
yup succesfully merged them..the only thing left WIP is the color calibration..its an issue with ROM you need the audio noise suppression mod on the HTC One forum for it to get fixed..will release updates in a few hours.. :D

i already updated my Github for the latest 4.2.2 Kernel source from HTC..

update:

- i was planning to release a Viper One ported ROM for you guys but UNFORTUNATELY Team Venom did not gave its blessing to do so.. :( i am on the ROM for quite some time now and its working great..

update:

New build for 4.2.2 grab it here... (OP Updated as well)

New build for 4.3 grab it here... (OP Updated as well)
[HTC Butterfly] praveen7682:
Thanks for the update...that's sad...but I created a thread in DNA forum to have developers to create Rom for us...in that viper team told that they wanted to combine viper Rom for DNA and butterfly...they are looking for people who know porting and they can create a Rom for us...pls visit that thread and share your thoughts...that would help us a lot...
[HTC Butterfly] kairi_zeroblade:
ok so how's the update..i see people download it..and not even 1 soul reporting here..i am speechless..
[HTC Butterfly] webdepp:
I installed the kernel yesterday evening and as far as I can say, it's awesome!

Feels like battery life is improved and it's very smooth.

Gave me a bit more then 22k at AnTuTu Benchmark!
[HTC Butterfly] davidjumani:
Its a really awesome kernel and its running super smooth even better than the previous build. But I've noticed that when i underclock it only core0 stays within the limit but the rest go up to 1.7Ghz. Is there any way to limit the other cores speed??

I'm on the 4.3 Build 3.

Thanks
[HTC Butterfly] juginkrebs:
get for x920e or not :rolleyes:
[HTC Butterfly] Deadly Sto(R)m:
I have installed it but i am not brilliant enough to see differences. The main point, i need a battery saver kernel.
[HTC Butterfly] vithudu:
Yes, it's brilliant. I have just flashed build 8 for 4.2.2 and benchmarked with antutu: it given 22.188. And, phone runs smoothly than ever. Thank you kairi_zeroblade.

I'll report later about the battery. :laugh::laugh::laugh:
[HTC Butterfly] kairi_zeroblade:
Thanks for the feedback..regarding frequency setting i do not have that issue my frequecies stick if i change them except for the variable OC..it will always stick to what i set it..also read OP intro regarding the kernel..this is not a Record breaking kernel..i tried building a bench kernel without the delimiters and i can crunch a whopping 25k+ with this..but i mainly want battery life..

thanks let me know..will release a new build later with a fix from a derp merge..
[HTC Butterfly] kairi_zeroblade:
then kindly explain why am i getting almost 4 hours screen time??have you tried Greenify??this has already been saving me more juice than stock..and let me repeat it once more that i wont introduce any 3rd party stuff like an inkernel wachamacallit..firstoff i built this in contrast to other kernels available for HTC Butterfly as they lean towards full customization..i always want things simple and mostly lean on almost stock with a few stuff i built in..
[HTC Butterfly] davidjumani:
is there any way you could add a ktoonservative governor in this??? I'd really appreciate it!!!
[HTC Butterfly] kairi_zeroblade:
i will check..AFAIK ktoonsez has some specific stuff with regards to samsung ROM's thats why his Ktoonservative is a bit finicky to port..also as for my own purpose the default one's should do better..i already fixed ondemand and is doing great for me..as i mentioned a few pages back it has been overhauled and i added a few stuff to let it also be a battery friendly governor..you just have to tweak everything on your phone..i also encourage you to use greenify..