yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I was asking because i saw some errors in log related to sdcard but not critical. It's likely not because sdcard is defective but moreover due to a bug in mmc driver. That weird error is even present in stock kernel from Samsung. I think i'm able to fix it.

I've also an sdcard, i'll insert and see if i get the same error in log.

Btw i've uploaded a patched stock kernel DUA3 for both S8 / S8+ ... you can flash it like a a2n kernel update ....

All settings stays on place ... once you flash back a2n kernel then the a2n app works as usual with your settings.

In stock kernel the a2n settings from app will not be applied at boot. it's useful to see if some bugs are also present in stock kernel. So it's useful to check if it's a Samsung bug or it's a bug caused by my changes .. you know ? That helps debugging.

So you could test if random reboots also happens with stock kernel.

And what about bt disconnections ?

Is it fixed now in latest pre-release ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Dev for me no reboots or freezes with the pre release 10/04.

All my Bt devices work fine (Car stereo, Boose headphones, airpods)

I must say that since the latest test versions I am with the Rom Stock and no longer Alexis.

In my opinion especially now that we are testing it is better to use Rom Stock to avoid errors right?

However, I have the usual 5-second block after a restart as you know, I noticed that it always happens after the Samsung logo comes out during startup, maybe the two are connected, do you have any news about it?

Unfortunately I don't have an SD to try ...
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
To be 100 % safe is better with stock ROM for now. At least till this kernel is bug free.

As for the 4 sec freeze at boot: i'm actually trying to fix it.

If i'm not wrong it started since i've disabled the stock hmp driver.

It's probably a race condition.
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
This of course until you give birth to your Rom! 😍

It could be because sometimes it goes smoothly without problems ...

Could you try loading a test kernel with Hmp enabled as stock, what do you say?
[Samsung Galaxy S8 & S8+ Cross Device Development] bntnja:
Thank you!

If a random reboot happens again then I will try the stock kernel. But for now, it's stable no reboot yet.

And I don't have any problem with bluetooth disconnection. When I use my BT speaker, it works fine. No drop whatsoever!
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
sorry to talk about my AA issue again (it is blocking to me)

Issue is always the same (even with Pre-Release kernel): at the very first connection with latest kernel installed and stock setting, AA system does not start at all (black screen on CAR) and mobile is totally frozen and unresponsive.

Today, after 2 minutes blackout while touching display and buttons, mobile reset and please find attached the LOG.

Only after a power ON-OFF the AA system started but the mirroring by Screen2Auto is unstable and it very often gets disconnected during usage.

The February Kernel never shown such behaviour.

thank you.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@traversone

Thanks for your logs !

In the meantime you can test how it goes with the stock kernel:

index - powered by h5ai v0.28.1 (https://larsjung.de/h5ai/)

index - powered by h5ai v0.28.1 (https://larsjung.de/h5ai/)

xda.mister-freeze.eu

choose your model, then check the "General" folder, let me know later.
[Samsung Galaxy S8 & S8+ Cross Device Development] Triger972:
Hello,i got one random boot today when i start telegram

Here my config :

Big CPU:2.7ghz

Little CPU :1.8ghz

Zram :50%

Low memory killer :16mb

Rom: Alexis rom 9.2

I have a random bt disconnection with eadphone cambridge audio and my music crash every 5 seconds with this kernel to resolved this problem i need to restart samsung s8
[Samsung Galaxy S8 & S8+ Cross Device Development] leonidasZ953:
3rd day and all is fine..No reboots no lags/spikes

Rom Hades

All stock gpu/CPU

Link 128

Zram 50%

Balance and power save profiles are fine
[Samsung Galaxy S8 & S8+ Cross Device Development] R1xON:
sorry may i ask what is Your device?

and do you get better battery life with this kernel?

noob question for all, please help. as for me im using S8Plus G955FDwith LightROM, is it safe use the Kernel?
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
This rom recomended for stock rom one ui or other custom rom based One UI
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Better to use the Rom Stock, which you can always lighten using the debloat tools that you find in the app section if you are not familiar with adb.

To save battery in the A2N App setting select the balanced profile and deselect in Cpu boost and touch screen boost to 0.
[Samsung Galaxy S8 & S8+ Cross Device Development] leonidasZ953:
LightRom it's good, but i lock to hades, is more smooth from others
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Since I got back on the Rom Stock I have not had any more lag and reboots.

Tested with zram 25% -50% and stock cpu / gpu values of course, kernel 10/04.

Now I also have a good battery life I am on the 5h screen without even lowering the frequencies, I did some tests and it seems that the consumption is due to the use of zram, I also had overheating and with zram deactivated they are gone, for now I leave it on to help the our dev to test, but then I will disable it forever, in my case it does not give me noticeable benefits.
[Samsung Galaxy S8 & S8+ Cross Device Development] Zkiller112:
Hello!

I would like try this but don't know if they have issue to made phone update (security update).
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Welcome to the A2N group!

There is no security issue in using the device, update to the latest build, then unlock bootloader, twrp and flesh kernel, follow the guide in the first post.
[Samsung Galaxy S8 & S8+ Cross Device Development] Zkiller112:
Thanks i will try this !! :)
[Samsung Galaxy S8 & S8+ Cross Device Development] Triger972:
Anyone have link mega for stock rom pie samsung ?

Other links increase the download time :(
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
I use alexis9.2.1 ROM
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Hy dev ,report after i change ROM to Alexis ROM 9.2.1 the kernel is fully stable just only got reboot when OC 2.7 that no problem because that a risk of OC and for other is good no problem i use 75% zram and i play PUBG is smooth on HDR 60FPS but sometime stuttering for smooth 60FPS is fully 60FPS sometime stuttering and i think this is was memory management overall is too good

Now i wait for new update for LMK ,OC,and better memory management👍👍👍👍
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Samfw
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Another test kernel, in the hope to fix some leftover issues !

a2n_kernel_g950x_9.x_test4.zip

a2n_kernel_g955x_9.x_test4.zip

Tip:

if you need to change zRam size then i do recommend to reboot instead to wait, because new zRam driver is quite slower when it comes to change the size, but it's quite faster at normal operation.

Next A2N app version will inform you to reboot after changing zRam size.

So now let's hope that it finally works properly !

Changelog: check my GitHub or wait till i'll write it (once it works 100 %)

@traversone

now it's your turn !
[Samsung Galaxy S8 & S8+ Cross Device Development] Zkiller112:
Amazing ! I try it since yesteday, my phone is so fast! Like the first day!

Thanks from france!🥰 (you can guess it with my english skill)
[Samsung Galaxy S8 & S8+ Cross Device Development] Zakles:
masterpiece! astonishing. even Super Sonic didn't reach the speed at which my device is running. thanks, developer. (all by default, dvfs 95, 4 hours - no reboot, no problem) sorry for english)
[Samsung Galaxy S8 & S8+ Cross Device Development] Triger972:
I have a problem when i upgrade your kernel i have a error with safetynet in last magisk any Idea of this ?
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
do not worry, friend! it is not related to kernel at all...it is a Magisk API issue.

Many of us have same issue but (my) device is still certified with no significant regression on APPs. Bug fix is coming soon.
[Samsung Galaxy S8 & S8+ Cross Device Development] R1xON:
thank you for answering my Questions.

so after reflashing and Fiddle around with some ROM, im down to 2 Choices:

1.Hades

2.Alexis.

i still dont know which one better since its similar. any insight from the Senior here?

i will Try and Flash this Custom Kernel afterward.

i use my phone for Daily Call, Lots of Whatsapp for updating work progress. some browsing and Gaming(not to much)
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Report reboot when open facebook ,menu marketplace

I was think because of my settings

Big cpu 2.7

Little cpu 1.8

Gpu min max 572

Dvfs 95 all

Zram 75%

But i report it to sure because of my settings is too extreme or else reason
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Stock Rom (debloated)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Did you (again) set gpu min freq to the same value as max freq ?

As i told you before this triggers an error in the driver and cause the reboot but i'll check the log.

Min freq should be always smaller than max freq.
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Everything is fine for me, no reboot. (y)

All stock settings except Little CPU 1.9GHz and Big CPU 2.4GHz.

I only notice that the blocks of 4 or more seconds to restart seem increased frequency Dev..:cry:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You have filesystem error on /data partition.

Sometimes such errors are autofixed on boot.

Anyway if the driver can't repair it on boot, then it's likely that it'll reboot again.

If so, the only way to fix it is to format /data.

If reboot still occour even after formatting then it's likely that your eMMC is broken.

Note: filesystem errors only happens if one of the 2 situation will happen:

1. After a dirty shutdown/reboot, mostly caused by too high/unstable OC.

or

2. if the eMMC is simply at his end of lifespan.

@Devil90

i've tried a lot of things, but it's a hard to find issue.

Anyway, it's related to the mess caused with our buggy HMP implementation.

It's already much better than the Samsung version, but the drawback is this bootscreen glitch.

I believe it's caused by the init process, it's loaded at first for executing ramdisk (bootscripts).

And the problem is that the cpuset stuff is mounted too late and even if i move the init process from "0-7" (all cores) to "0-3" (little) it's possible that it has then some child processes that will again run on all cores and this causes the glitch. Now i'll try if i can manage it anyway, it's like impossible mission lol.
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Dev, it was absolutely not to press to solve, indeed you are doing a great job ultimately to listen to us all and we are happy with it. ;)(y)

However I agree, in the end it is just a nuisance (at least for me who often restart the device) and in any case it does not imply errors, let's not talk about having that Samsung hmp setting that is really worth it.

However, I have noticed in some tests that with zram disabled it happens rarely or almost never, perhaps due to the less weight in loading the zram driver? Obviously it's just a guess.
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Ouh 2 days ago i clean install alexis rom format data too

Thx for sure me my reboot is caused by me thx dev 😄😄😄

Edit: and how about LMK that has fixed? Can i change it?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes, all right ! - I'd also hate this annoying issue, but in my case i'd only reboot the phone if i've to reboot to TWRP in order to test fresh compiled kernel you know ?

Why do you need to reboot often ? - With my old phone running my custom kernel i was online for 1 month without having slow downs.

No, the zRam driver is loaded and enabled at "property:sys.boot_completed=1"

This is the case when the "SMS Services" app appears in app menu.

No problem.

LMK wasn't buggy at all, but it's considered to be unstable if it's tuned too tight.

The Android system needs a certain amount of free RAM to work properly.

by default it was set to 64 MB, that means there's almost always at least 64 MB free RAM to make space for new memory allocations like opening a new app that wasn't actually in RAM.

If this value is too low it can cause severe lags and freezes and in the worst case scenario it could even freeze the whole system for long time, so that you've to reboot.

According to my experience this happened quite often in old Android devices with low amount of RAM and moreover with too old unstable kernel.

Now maybe such extreme behaviour will never happen again, but who knows.

As i said default was 64 MB and i've changed to 128 MB because the smallest app has around 150 MB. (required RAM size)

And some bigger apps have 200 - 300 MB RAM requirement.

So if you don't care about multitasking and want always a snappier phone, then set 256 MB.

Otherwise for multitasking set 64 - 32 MB. 16 MB maybe works as well, i didn't test it so far, but i guess that you'll face some latencies once the RAM is completely full.

Also how you want to set it ? - Do you have the full version ?
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
I don't have the full kernel but i have the init.d code hehe for LMK i found code on some thread and its wrong code when i check 🤣🤣🤣
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
Hi all, good morning.

Test in car with AA are definitely OK !!!! Thanks again to DEV.

But 5 hours later, while navigating thruough APP menu to search clock APP, mobile rebooted. On the SIM card PIN input screen it rebooted again!

I have balanced profile enabled, disable boost activated on both CPU/GPU and both Suspend Maximum Frequency set to the hint values. Apart from reboot event, could someone comment on the meaning/impact of such frequencies?

Here is the log: I have read in the thread it could depend on data partition corruption, could'nt i?

thank you.
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Many times I have to turn it off for work reasons, and also at night I always turn it off out of habit lol 🙃
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Hi, no FS-erros detected.

The reboot was caused by the ROM, which ROM are you using ?

To be precise, RescueParty was triggered:

Rescue Party | Android Open Source Project

source.android.com

You could also provide this log:

/data/system/uiderrors.txt

according to the android source website.
[Samsung Galaxy S8 & S8+ Cross Device Development] Trasher29:
Had another random reboot while phone was on standby.

Profile: balanced

Zram: 50%

Lmk: 128
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Report dev no reboot again after i make 2,6ghz big cpu 🤣🤣🤣
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
100% stock ROM by Samsung
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Dev a curiosity, I was fiddling with the chrome flags and I noticed the "restrict to little cores" function but I deduce that it is useless given our custom Hmp which implies the load of the main applications only on the big cores, right?

Leave this maximum frequency that in my opinion your reboots are because your chip doesn't hold 2.7Ghz, so you won't notice any difference.

Out of curiosity what is your binning?

You can find it by entering download mode under the heading

CPUCL0=LITTLE

COUCL1=Big
[Samsung Galaxy S8 & S8+ Cross Device Development] bntnja:
2 random reboots but I only have 1 last_kmsg file. It happened when I was using Google Chrome.

Stock settings except DVFS and 50% zRAM

No MicroSD card insert also

Thank you
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@Devil90

You can move apps from big cpu to little cpu like you want.

But it'll only stay on little cpu for the time when the app is open on the screen.

Once you press the home button and re-open the app it'll be set back to big.

But works fine for own services and everything else.

If you want to do some experiments with little/big core, you can do easily with ADB as follows:

e.g. move whatsapp to little CPU:

1. open whatsapp and then in ADB type "top" and you'll find the process-name.

For me it's: com.whatsapp

Then find the pid: or grab it directly from "top"

top
q // to exit from top ...
PID=$(pidof com.whatsapp)
# check current allowed cpus
cat /proc/$PID/status | grep Cpus_allowed_list
#Cpus_allowed_list: 4-7
# move to little
echo $PID > /dev/cpuset/background/tasks
# verify
cat /proc/$PID/status | grep Cpus_allowed_list
#Cpus_allowed_list: 0-3
#move again to big
PID=$(pidof com.whatsapp)
echo $PID > /dev/cpuset/top-app/tasks

Right now i found out once you press the home button and the app is basically running in background .. you can try with "com.sec.android.app.music" (Samsung music app) ... then the app is automatically moved to the little CPU.

That means listen mp3s with screen OFF will not use the big CPU, but executes on little.
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Thanks Dev, that was just what I had in mind, so as to save even more battery with the apps I use the most that are lightweight and test Little to 2.0Ghz. (y)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Right ! - But keep in mind, once you re-open the app it'll be set again to the previous config.

That means you could write a script like this for several apps you want to move to little and then execute the script in a loop that checks your apps every 20 or 30 secs to be in the little cpu.

Finally you could move it to init.d scripts.

Usually i had planned such feature to implement it in my app, but it's quite tricky.
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
Yes, everything is clear, now I will do some tests and the apps that work well without delays I will move them permanently via init.d script.

In my opinion it is a great idea to implement this feature in the app, it would be an exclusive thing also because I think nobody has done it so far.

Then I think the Little Cpu with OC 1.9/2.0Ghz is able to handle some light apps.

We'll see, I really like testing. ;)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@ up you are fully right, but every new idea maybe is cool and easy to say but it takes every time a lot of time to make it really working to the end-user. I think this project has enough unique features that work quite stable. We have limited time to live, so my plan was not to spend my whole live in developing things, even if i really like it. But live is not only coding cool stuff.

I'm making this kernel stable and then it's time to start with ROM development.

Also shortly i'll add support for Note8. It all requires time.

Otherwise we will never move to next Android version if we implement new features all the time. ;)
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
I never expect my chip is cannot holding 2,7ghz i realize it when other people use under 2,7ghz and works fine no reboot and other my device when 2,7 with lightprocess like social media and etc that not have problem sometime reboot but no problem when play game

I got 3 or 4 reboot under 5 minute that make me angry sometime because my phone reboot when front of enemy 🤬🤬🤬 after that i try lower clock little bit and got no reboot just only stuttering sometime i dont know how to tune it to make no stuttering any idea ?

Edit: my binning is

CPUCL0=3

CPUCL1=6

And how about that? good or what i dont understand it hehe🤣🤣
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Changelog

Kernel V. 2021.04.17

Source code update: DTF1 -> DUA3 - thanks @ Samsung

HMP_CUSTOM: update - should fix several bugs e.g. with BT

zRam: updated driver for higher efficiency in MM and higher security (encryption) - thanks @ minchank

zRam: improved performance and compression ratio

MM: optimized CMA*/RBIN* usage - for the better memory allocation

MM: saved around 100 MB of a wasted RAM from RBIN - zRam driver will use it now

Debug: reverted some debug log buffers sizes to stock - probably it caused some instabilities

Fixed BT disconnections - thanks @traversone for testing in Android-Auto !

Improved stability

HMP_CUSTOM: updated driver

Optimized MM

zRam: updated LZ4 lib

Encryption: enabled hardware acceleration

Optimized boot-script for boot glitch fixup (needs some testing) ;)

Added some patches e.g. EXFAT support provided by @ remilia15

Some more minor kernel tweaks

Uploaded also patched stock kernel - DUA3

Uploaded twrp with latest a2n kernel inside

*MM = Memory Management

*CMA = Contiguous Memory Allocator

*RBIN = recyclable reserved RAM for camera (228 MB)
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Yeah
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
As I thought your binning is lower than mine, I have:

CPUCL0=5

COUCL1=7

That's why you definitely can't handle the last few oc big / LITTLE frequency steps.

You should set 2.6Ghz / 1.9Ghz and see how it goes, the other settings leave everything in default (except zram and dvfs that you adjust to taste).

You shouldn't have lag.

@ace2nutzer This update is awesome, the startup block seems to be gone too, great! (y)
[Samsung Galaxy S8 & S8+ Cross Device Development] Trasher29:
Had a random reboot in the newest version while charging.

Profile: balanced

Zram: 50%

Lmk: 128
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
I found that setting the Dvfs at 95 ° with the same frequencies, the general performance increases considerably, obviously without reaching the limit temperature.

This is also confirmed by the benchmark...

Cpu Big=2.6Ghz

Cpu Little=1.9Ghz

All settings default exept cpu dvfs.

Max benchmark run temp 55°
[Samsung Galaxy S8 & S8+ Cross Device Development] recoman:
New version, best performance and good,

Deep sleep not worrking. ? Fix problem. Thx dev mate
[Samsung Galaxy S8 & S8+ Cross Device Development] Trasher29:
Just had another reboot while phone was in standby.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I don't think so.

If you set 95 °C then it goes up to around 100 °C if you run Geekbench, for very short time indeed, that's why you even won't notice the heat with your hands.

55 °C was probably only GPU Temp, but never ever CPU Temp.

The real heat starts from 50 % progress in geekbench .. due to multithreading tests ....

Till 50 % it's just a single core bench.

Even with stock Freqs you'll hit over 100 °C in Geekbench.

Sure it works fine, check what is preventing deep sleep in your phone.

There are some nice apps for this like "BetterBatteryStats".
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Wooo,many report reboot and here i stable dev great update for me hehe

Edit: 12 hour with settings

BIG cpu 2,6 sometime 2,7ghz for gane is 2,6

LITTLE cpu 1,8ghz

Gpu 260 - 572mhz always on

DVFS 95°C All

Zram 75%
[Samsung Galaxy S8 & S8+ Cross Device Development] Devil90:
I measured it with CPU Float app, at the end of the test 100% gave me the temperature of 55° and peaks of 65°.

Is there a more precise way to measure it with Adb?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Sure, that was GPU Temp lol.

cd /sys/power
# enable debugging ...
echo 1 > cpu_dvfs_debug
# here you can see some informations like "peak_temp"
cat cpu_dvfs_max_temp