yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] lasic:
Yo can download from MEGA without account or app (just click download with browser), but you can attach file to your post and I think it is the option.
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

With PE WQ disable we have a great boost of performance.

v6.0 works great both smothness and battery...thanks for your awesome work ;)

PS: I'll test battery drain with PE WQ disable if the battery drain is however low in general, I think that it could be better to disable by default as [MENTION=3441913]duki994[/MENTION] said....anyway I'll report after some days of test ;)
[G2 Android Development] capoooro:
System hangs during normal use on G+ and needs an hard reboot, this is the log.

I hope this could help.

dorimanx_debug
[G2 Android Development] g.paganini:
This is what i got

qcom,speed1-pvs3-bin-v0 =

< 0 0 0 >,

< 300000000 775000 72 >,

< 345600000 775000 83 >,

< 422400000 775000 101 >,

< 499200000 775000 120 >,

< 576000000 775000 139 >,

< 652800000 780000 159 >,

< 729600000 790000 180 >,

< 806400000 800000 200 >,

< 883200000 810000 221 >,

< 960000000 820000 242 >,

< 1036800000 830000 264 >,

< 1113600000 840000 287 >,

< 1190400000 850000 308 >,

< 1267200000 860000 333 >,

< 1344000000 875000 356 >,

< 1420800000 885000 380 >,

< 1497600000 895000 404 >,

< 1574400000 910000 430 >,

< 1651200000 925000 456 >,

< 1728000000 935000 482 >,

< 1804800000 950000 510 >,

< 1881600000 960000 538 >,

< 1958400000 970000 565 >,

< 2035200000 985000 596 >,

< 2112000000 995000 627 >,

< 2188800000 1010000 659 >,

< 2265600000 1025000 691 >,

< 2419200000 1055000 738 >,

< 2572800000 1085000 827 >,

< 2726400000 1115000 900 >,

< 2803200000 1130000 937 >;

Let me mention once more... I never ever touched voltages in my life :angel:
[G2 Android Development] dongerado:
Hello!

Just had full freeze while browsing with Firefox. Had to force reboot.

Maybe there is something useful in log!

Except that, phone is flying! :)

Thank you, Dori!

https://drive.google.com/file/d/0ByGoxfFE7YgyTjB3TjBISlQ1NjA/view?usp=docslist_api
[G2 Android Development] wisefreakz:
Confirming 6.0 is a beast... With PE WQ disabled.... Is a beast times 10.

Magic is in the air... Thanks Dori.
[G2 Android Development] masteril:
Is it only me or notifications are seriously delayed in 6.0?(screen off phone sleeping)
[G2 Android Development] dorimanx:
My kernel delay notifications. Its sleeping longer, and wakeup when there is bigger wakeup notify.

I will not change that. And its that way from 2.0 or later. Suspend code is updated many times.

Sent from my LG-D802
[G2 Android Development] xGiox:
I got that problem too,whats app messages are delayed up to half hour and happens only when screen is off(and it not only version 6 its from the first dori kernel i tried',try this it fixed the issue for me ' https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer ' ,Sorry for the useless comment in developer thread tho. Also let me add i enjoy using this kernel and had only few issues not worth reporting.
[G2 Android Development] duki994:
Weird. It's interesting why they set voltages a bit offsetted. Perhaps very good silicon :D

If you use Xposed, disable Amplify and GravityBox. They sometimes cause reboots. Look in logcat to see if ROM rebooted due to some app. Look for lines beggining with "E", especially near end of log closer to reboot. E - error, I -info, W -warning :)
[G2 Android Development] g.paganini:
No Amplify or GravityBox installed . I have CoolTool , Greenify , Inteli3G , and Lucky Patcher :) I found some errors about mounting file system , but as some previous posts reported , it was a freeze than i had to manally hard reset. Other than that this kernel works best for me and as i see , for others too. Battery life and memory managment is great .
[G2 Android Development] gamertwo1:
Better performance and more free memory with v6.0. Great work dori :)
[G2 Android Development] sjk971005:
I've been having a problem for quite a while, but have not asked as I thought it was a problem with the app.

When I play mitos.is, my screen will just turn off, and when I turn it back on, it will instantly turn back off. I either have to try it 10+ times or quickly slide to open the camera, take a picture, click the picture, then unlock my phone.

I recently tried Inazuma ROM + Xceed kernel and did not have this problem a singe time, and upon testing the new update for this kernel with cloudy g2 3.3 - the ROM I had always used, the issue came back.

Would this be a ROM issue or something to do with the kernel (ram issue?)?

I wanted to ask if unlocking my phone when this happens and taking a logcat in the dorimanx app would be the proper way to report.

EDIT: I was thinking it was a memory issue as the app has to be restarted after this happens.

EDIT 2: attached log. App didn't force close this time.
[G2 Android Development] dyepnoodle:
korean variant users envy you guys. we still have crazy batt drain without this kernel :(
[G2 Android Development] purpleraintoxicity:
Phone is stuck when adding contact using WhatsApp.

Had to force reboot
[G2 Android Development] wisefreakz:
To me this could be 2 things:

1) proximity sensor bug

2) if you use some screen protector that covers the proximity sensor.

Our G2 has the feature to identify if the phone is in our pocket - and if yes, will go screen off all the time.

Cheers
[G2 Android Development] dorimanx:
i dont see kernel error.

something about camera buffers... i didnt change any camera drivers.

so it's came from ROM/APP
[G2 Android Development] nidzaaaa:
Cloudy 3.3 + 6.0

Reboot while typing in whatsapp..
[G2 Android Development] purpleraintoxicity:
Seems like whatsapp gives people problems
[G2 Android Development] dorimanx:
same thing with camera buffers bug.

it's APP bugged. was updated few days ago.

or ROM + APP = BUG. i didnt change anything about camera driver.
[G2 Android Development] nidzaaaa:
Yes you're right.. I was sendind a pic, or typing a comment.. Thanks..
[G2 Android Development] botioni:
will ther be kernel support for Korean models?
[G2 Android Development] duki994:
I don't think it's about image sending only. Or image file at all.

App powered up sony's imx135 sensor (front camera) and messed up buffers. Probably imaging function(s) are bugged and send invalid data to buffer or null. This can only happen if you took picture from app :)
[G2 Android Development] nidzaaaa:
Ofc, the pic was taken in whatsapp...
[G2 Android Development] djmcho:
OP is not clear. Do you wipe anything before installing?
[G2 Android Development] Nigglenuts:
Wipe cache.
[G2 Android Development] sjk971005:
I am quite sure it isn't as it only happens for that app (not other times when I hold phone that way), there is no feature turned on to auto-turn off the screen, and it doesn't happen on xceed.

Could anyone try reading the log? I really want to use this kernel as xceed is not as smooth
[G2 Android Development] duki994:
Then he can just look at ROM Logcat and see what data/vars/arguments/functions app sends to ROM :)

He will surely see in logcat what app causes proximity sensor problem :)

All messaging apps with calls have proximity sensor java services.
[G2 Android Development] nidzaaaa:
Again.. Reboot in sleep..
[G2 Android Development] krija:
Try to set interactive governor for CPU0. No more reboots for me with same setup like yours.
[G2 Android Development] dorimanx:
no data, dont change cpu0.
[G2 Android Development] dorimanx:
News Update!

Kernel 6.1

14/10/15

*Updated slimbus driver that operate the hdmi and mirracast.

*Merged huge update to kernel timer code that needed every where!

all logic is based on time in nano seconds, so bugs in that lead to crashes.

Found few critical bugs that added with wrong patches in the deep past.

*Updated NTP code from 3.10.y and merged new driver to sync time after power loss.

*Merged few kernel core fixes.

*Tuned lowmemkill driver to be less aggressive and not burn too much power by releasing ram

when there is no need.

*Added few changes to kernel debug script, to add more info for me, and simplified check operation.

have fun :)
[G2 Android Development] purpleraintoxicity:
Flashed. Will report if any bug found
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

6.1 is working good.

ZEN iosched tunings seem too relaxed for heavier I/O and starting/stopping apps.

Now I'm testing these settings:

sync_expire = HZ / 4

async_expire = 4 * HZ

fifo_batch = 8

Seems to work more smoothly on both heavy and low I/O and CPU loads. It eliminated some of microlags.

I thought that fifo_batch set to 16 will lower overall system load with heavier I/O. It did, but with one big flaw. More file chunks made phone microlag since most apps need to read/access smaller chunks of files. So fifo_batch is fixed settinf. Anyway it'll take and fill batch with data/files from other app or ROM just to fill to set number (16).

I don't know how code behind this works, but earlier settings slowed phone down a little bit, while allowing less load, less throughput fluctuations and maintaining high I/O operations throughput.

Those settings from above in my post work a little bit tighter and ensure smoothness, but may introduce more I/O throughput fluctuations. CPU load is higher only at really heavy I/O which is highly unlikely to be achieved without destabilizing ROM in process, so in real work you should notice just a bit more smoothness.

LMK is now saving more apps in RAM without compromising smoothness or overloading CPU. I feel much less heat from CPU while heavy multitasking on 6.1. You really did a great job on mm aspect of this kernel :)

Just my observation :)
[G2 Android Development] immi803:
Awesome update

[MENTION=2376110]dorimanx[/MENTION]

6.1 is amazing, microlags vanished, well done dori

Is lcd driver update on way or any such updates, display power consumption optimization ?

And huge thanks for such a wonderful work, thumbs up

Keep up the good work:good:
[G2 Android Development] _FroX_:
Freeze while whatsapp so no log. Flashing 6.1. In general all ok, seems that when wake up has some lag around 20 seconds (using default profile), maybe too deep sleep? Hehe

Great work as always

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] dorimanx:
i will leave LCD driver alone. no need to ask about it.

it's stock in most. i have other things to mod.
[G2 Android Development] dorimanx:
maybe too many apps in RAM. and kernel must clean them from RAM on wakeup to boost performance and give ram to ROM and launcher.

so you get LAG.

i cant manage your system. you are the ADMIN of it.
[G2 Android Development] _FroX_:
Yep i know. No too much apps, BUT we know that chrome eat our RAM so... solved. Bluetooth calls works perfect also with last version. Today i'll test the battery life.

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] nidzaaaa:
All cores ondemand, 9h sleep, still on 100%, like intellidemand... Disconnected before sleep..

[MENTION=2376110]dorimanx[/MENTION]

One little sugestion. I think you should set Westwood instead of Cubic as default.

At least for me, gives 20-30% higher speed.

Tested on wifi wcdma.. The biggest difference i see when i'm far from router, when signal is minimal...
[G2 Android Development] dorimanx:
the instruction say:

user should read google, set what he likes, if lazy to read google, leave as set by LG :)

every one can test what they like. that what i am giving you, stock not give you anything :)
[G2 Android Development] nidzaaaa:
Again.. Almost stock settings

Cloudy 3.3 + 6.1

Im going to full stock or srk's latest rom..
[G2 Android Development] dongerado:
I had same problems (mounting errors). Changing scheduler to row helped me.
[G2 Android Development] dorimanx:
i have changed the way DEBUG LOG looks inside.

the last kernel message is now in the middle of the file! not at the bottom.

so there was no mounting problems. it's was the online dmesg normal messages.

and in last kernel log, there was nothing wrong! no panic or bugs report.

look for Last Kernel dmesg Info before BUG/Opps/Panic triggered:

then the log start: 500 lines. and then other things.
[G2 Android Development] purpleraintoxicity:
5.9.2 was fully stable and speedy for long term.

6.1 seems to becoming laggier after a day.

Is there something changed that can affect in such way?
[G2 Android Development] duki994:
LMK is now much less aggresive. It can contribute to lags after a day of use.
[G2 Android Development] gamertwo1:
Lagging problems in v6.1 as compared to 6.0. My phone got hng several times than run after few seconds but today while playing candy crush got hang and have to reboot manually through vol down+pwe key. Log attached
[G2 Android Development] RohanM:
Yes even Tapatalk scrolling is now laggy ...
[G2 Android Development] dorimanx:
i see the this too

I will tune LMK to work harder. LP is too ram hangry. i have no choice, it's or LAG, or good performance

but more hot device and more battery drained to kill and restart apps in RAM.

we dont like LAG.. so heat and more power usage it is...

also i have merged few good updates from 3.10.y main line.

new build will be up soon... i am working.
[G2 Android Development] Nightshadow931:
Tapatalk is laggy here too on stock. It's app's fault, it's the same on every phone..
[G2 Android Development] 139277:
Too bad about the lag, temperature and battery life are great with 6.1!
[G2 Android Development] dorimanx:
News Update!

Kernel 6.2

16/10/15

*Tuned low mem killer driver to work harder and when ram pressure is in range of 85-94% it's will

order quick RAM release first by low priority apps in RAM, then to middle, and only then to highest RAM drainers.

*Merged changes to BINDER code from 3.10.y, it's should prevent few unexpected bugs with ROM stuck.

but kernel is OK... binder needed to run apps and ROM system.

*Merged fix for GPU ION Ram DMA corruption bug.

*Merged few mods to NET code, and profiling code.

Have fun.

this build should solve the device LAG after day of use. as ROM and apps drain RAM, and create shortage.

Now LMK will deal with them and restart them with low ram usage.

some apps written really badly, and they cant release RAM that used for some work, so they end up using up to 100MB for keyboard or some widget.

when restarted then using only 20mb.
[G2 Android Development] iall5tar:
Dunno guys but I didn't have any issues about tapatalk with 6.1

Cheers
[G2 Android Development] LeoPosas:
Snappier, smooth, fast, nitro for CloudyG2-3. ;):good:

Superb job master [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] masteril:
6.2 performance profile xda app scroll=stuck and the only option is to use power button to shut down log:

https://www.dropbox.com/s/2w59k8ksu89pmke/dorimanx_debug.zip?dl=0
[G2 Android Development] cybernetus:
Little Ofttopic .

Official Lollipop for brazilian D805 : http://csmgdl.lgmobile.com/dn/downloader.dev?fileKey=FW79X6M232BRAPY46EA8ZS1/D80530A_00.kdz

:)

i believe this solves our signal problems :)
[G2 Android Development] duki994:
I had similar, if not same bug, showing i a bit different way in one of earlier 5.x kernels. Now that I see too much similarity from my experience in msm-cpufreq set_cpu_work, I suspect that some timers may not be adjusted or functions expect older ones. Or, more probably, some dts change that made this instability.

Function to get source/base freq from PLL isn't getting good data and clashes. CPU and other units can't work without being told of source freq and they crash. No source freq = no freq multiplier works = crashhh. Ba dum tsssss.

Also some HW IPI can do this kind of crash.

[MENTION=2376110]dorimanx[/MENTION]

Check this if you have time. There may be nasty bug lying around.
[G2 Android Development] djmcho:
On 6.0, pretty much.. After a day or two the phone starts to seriously lag and pause. This is on battery saver and performance.
[G2 Android Development] cybernetus:
Another off topic ( for d805 users ) :

I downloaded the official kdz of the Lollipop version of LG Brazil and extrated the modem*.bin .

For anyone needs, this is the flashable zip and the modem*.bin of the official kdz : http://cybernetus.com/d805/baseband/

Thanks :)
[G2 Android Development] Shaolin007:
But using 5.9.2 kernel same charging speed but did not get this much hot.

While using phone also it is still creating heat....dont know y?
[G2 Android Development] Adinaky:
To be honest, I don't pay much attention to the temperatures as long as my phone runs good. Except from when I charge it, I didn't notice very high temps, it seems very normal. Of course, it also depends on the outside temps of the place you are located.

But let's continue the discussion in the Q&A thread if you want, because this is not all that dev related.
[G2 Android Development] wisefreakz:
Weeeeee... Confirmed... No more signal Drops... [MENTION=2376110]dorimanx[/MENTION] can remove the hack from kernel and i guess we can again use D802 version as the hack was the only difference between the two versions.

Thanks boys...
[G2 Android Development] dorimanx:
Good news :)

So all d805 users should install new modem, and flash d802 kernel.

I will remove the d805 build.

Sent from my LG-D802
[G2 Android Development] dorimanx:
Last Kernel dmesg Info before BUG/Opps/Panic triggered: there was no /proc/last_kmsg to read from

Rom stuck, there was no problem with kernel.

I have 0 problems with last 5 kernels.

But if we search your bug reports, we get high sum of reports.

Maybe its time to clean all, use kernel and rom, as is, with few apps. And see how its goes.

Sent from my LG-D802
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

v6.2 works great (every new release of kernel is better than previous).

Maybe LG doesn't support us anymore but with this community and your kernel our g2 can only thank for your awesome work ;)

Good weekend to everyone.
[G2 Android Development] masteril:
I flashed 30f this week so the rom is "NEW" and most apps reinstalled/restored.i was on cloudy 3.3 before
[G2 Android Development] cybernetus:
Amazing :)

I change the zip and if anyone have problems with the new zip send me an PM.
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

We have some inconsistencies in msm_vidc dts values

Here's a diff

https://www.diffchecker.com/wtoglghy

In dts code below, we have one zero more than needed in <49880000>. We need <4988000> value so DDR RAM sets good value and works as intended

qcom,enc-ddr-ab-ib = <0 0>,
<120000 302000>,
<364000 302000>,
<804000 302000>,
<1608000 604000>,
<2576000 967000>,
<4680000 1404000>,
<49880000 1496000>; /* notice one 0 more than it should be - MSM8974AC dts fixed this */

Code ^^^ is for encoding, so this change should bring stability when recording in prolonged periods. And in 4K video, if anyone uses modded camera app.

And we can try to enhance our ISP to work as in MSM8974AC. It's exactly the same ISP. So we change it to be like on MSM8974AC

MSM8974 - our SoC

qcom,load-freq-tbl = <979200 465000000>,
<783360 465000000>,
<489600 266670000>,
<244800 133330000>;

MSM8974AC

qcom,load-freq-tbl = <1036800 465000000>,
<783360 465000000>,
<489600 266670000>,
<244800 133330000>;

Only difference is that 979200 is changed to 1036800.

If i read correctly, our ISP is already set to go to max 465MHz if needed, just like in MSM8974AC. I guess that first values are some kind of bus freqs or bus data rates needed.

By looking at other settings (voltages, current limits, freq tables....) it seems that QC just updated eMMC standard on MSM8974AC version and probably forced higher clocks on ISP and GPU.

So it seems that our SoC uses perfectly close to same amount of power when running on 2.5GHz with same thermal dissipation capability :D

Classic marketing.

Same *insert_cursing_word*, different package :D
[G2 Android Development] mohayta:
please excuse my noob question but can i flash this over the latest cm 12.1 nightly which is based on 5.1.1 lp ? a simple "yes" or "no" would be so helpfull, thanks in advance.
[G2 Android Development] Diechel:
No
[G2 Android Development] 60nine:
no..
[G2 Android Development] runekock:
Though I won't claim to understand, this seems like an important find, thanks.

Well, the 800 and 801 are undoubtedly the same chip. Still, it is possible that early production had some minor bugs that limited frequencies, and were sold as 800s only. And that later production was binned so that the best chips sold as 801s.

What I'm trying to say is that most 800 chips will likely run fine at 801-frequencies, but some may not.
[G2 Android Development] wisefreakz:
How hard is to repoint D805 as D802 at OTA app?
[G2 Android Development] duki994:
It's easy.

In android app in Java, it can be done relatively easy. In shell (scripts), much easier :)

It's a matter of simple if statement :)
[G2 Android Development] gamertwo1:
More free ram with v6.2. Thanks [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] Diechel:
Will rewrite D805 to D802 in next version of the OTA app, for now use model rewrite. Also implement a ping function to determine the best mirror :)
[G2 Android Development] Ginel:
Power-efficient Workqueues is enabled on default settings?
[G2 Android Development] duki994:
Isn't it better for server to report network load and then choose mirror? It can be done in PHP in backend. Report relative bandwith load in % and app choses which mirror is less loaded at the moment. It can work quite fast.

Ping is just for starting latency. Some networks are gonna have low latency and slower bandwith.

Just a thought :)
[G2 Android Development] iall5tar:
Yo [MENTION=3441913]duki994[/MENTION] your report are always awesome!!!

I would like to have your knowledge about all of this... Unfourtunatly all I know is that this kernel works like a charm!!! Even doesn't knowing the numbers cD

Cheers!!!
[G2 Android Development] Diechel:
Thank you for thinking with me.

I get some small data (JSON) from the server for the information in the app and i think ping can have great impact on the performance. For downloading of the kernel the load is maybe interesting, but that should be implemented by [MENTION=2376110]dorimanx[/MENTION]. Maybe he can make a simple php script which will only output (echo) the bandwidth load so i can use it. The app now uses fixed mirror (shine) which maybe get high load when a new version is released. With the ping thing i hope that it will be spread a bit.

Tell me if i'm wrong :)

For me the pings are like this (netherlands):

dorimanx.com = 115ms

shine = 42ms
[G2 Android Development] jeebspawnshop:
Instead of complicating it, why doncha just make the app do this before downloading; randomize a number between 1-10; if the roll is 1-5, download from Primary; if the roll is 6-10, then download from Secondary.

In the end, the load will be spread approx 50/50 anyway :D

But if you to account for non-app users manually downloading from one server (usually Primary) and gumming up the bandwidth, then just skew the random roll as 1-3 Primary, 4-10 Secondary. Bam!
[G2 Android Development] Diechel:
Good idea, waiting for dorimanx to respond.

Maybe the server load is not heavy at all so it doesnt matter from which server it's downloaded. So i will only implement ping function for better responsiveness of the app.

Ping is only measured when initializing default parameters after installation and can be done manually but pressing a button or something.
[G2 Android Development] dorimanx:
I dont know the load on servers, but they have good bandwidth.

Its will be great to split the load in app.

So not all will use only one mirror.

Sent from my LG-D802
[G2 Android Development] dorimanx:
This is kernel 5.6 log.

My script added old debug log in zip.

The real one is with txt extension.

I will fix that in next build.

Sent from my LG-D802
[G2 Android Development] dorimanx:
I will take a look, but what if its stock must be as is!

I didnt changed that.

Sent from my LG-D802