[Kernel] Perseus -1.8GHZ [UPDATED] [11/19] - Galaxy Note 2 ROMs/Kernels/Mods - TeamUSCellular

Jump to content


Photo

[Kernel] Perseus -1.8GHZ [UPDATED] [11/19]


  • This topic is locked This topic is locked
1 reply to this topic

#1 na7q

na7q

    Amazing... Enough Said






  • 2,671 posts
  • Location:Uhmerica
  • Device:Note II & Electrify
  • Google Talk:mike.ph4
  • Google Plus:117490729411959897180

Posted 08 March 2013 - 04:27 PM

Kernel for TouchWiz stock ROM
Features/Changelogs:
http://forum.xda-dev....php ?t=1927852

 

CWM Flashable: Perseus-alpha36.3-r950-CWM.zip

 

Mirror: -----

 

Perseus alpha36.3 (26/04):

  • Fixed slice lookup issue on ABB: It's recommended you put your slices back to default before flashing if you changed them to borderline stability values. Please upgrade.

Perseus alpha36 (22/04):

  • Adaptive Body Bias control (ABB). (Experimental feature)

    Body biasing is taking advantage of transistor body effect for binning the chip depending on its quality. In fact, this is used on the latest Samsung SoCs both for reducing power consumption and validating bad chips by adjusting their electrical characteristics.

    The body bias is dictated by the voltage applied to the transistor gate (The usual voltages you're all used to) minus the voltage applied to the transistor body. The resulting bias can change the transistor's electrical characteristics in two possible ways:

    Before reading on: A transistor's voltage and operating frequency is defined/limited mostly on its threshold voltage. Wikipedia has a neat visual representation of this; voltage must raise to a certain point for the transistor to be able to switch and operate. This threshold voltage can be highly dependant on temperature, influenced by the body effect, and defined by the manufacturing process. What we're doing nowdays with undervolting is to get as near as possible to the upper bound of this threshold voltage.

    With that in mind:
    • Forward Body Bias

      A FBB is defined when the bias of the gate voltage minus body voltage is positive, meaning the gate voltage is higher than the body voltage. This has the effect of reducing the threshold voltage. By reducing it, you can achieve lower voltages, or be able to clock the transistor higher. However the side-effect of lowering the threshold voltage is that you are sacrificing power leakage, meaning that the lower the threshold voltage becomes, the higher leakage current in the transistor becomes. This leakage power rises exponentially with a linear lowering of the threshold voltage. This is what is called static transistor leakage.
    • Reverse Body Bias

      A RBB is defined when the bias of gate voltage minus body voltage is negative, meaning the gate voltage is lower than the body voltage. it has the direct opposite effect of FBB, it raises the threshold voltage thus you would need a higher gate voltage for switching, but however you also dramatically decrease static leakage.
    What happens is that you want to use RBB when idling, and a reduced RBB, or even FBB at very high clocks. 

    Samsung currently uses this on top of voltage scaling to bin their chips. Here's an excerpt of the stock body biasing on the 4412 Prime chip (I'm using that one as an example as it has better adjusted ABB values over the Rev 1.1 chips).
    ZDOUXP9.png

    To find out your ASV group: You can read out your ASV group in /sys/devices/system/abb/abb_info now.

    I have rewritten the ABB scaling logic/driver for CPU, GPU, MIF and INT voltages.

    In the current implementation, since it would be insane to have paired-up gate-body voltages divides the frequency range in several slices; even Samsung uses only three voltage ranges on the DVFS scale. I divided the frequency ranges as follows:
    • CPU: Divided into four slices, with frequency ranges of 200], 800], 1600] and ]1600 Mhz.
    • GPU: Three slices: 160], 533] and ]533 Mhz.
    • MIF and INT: Both only two slices with the bottom frequencies for each as middle-threshold.

    As mentioned above, controls can be found in /sys/devices/system/abb/ and the entries are self-explanatory. You can also change the frequency slice limits per sysfs, however in STweaks I only included the voltages for each slice only for now.

    Disclaimer
    {
     And that's about it in that regard. I have tried testing things over last couple of weeks, but I haven't come to a solid conclusion yet beyond what's presented by the stock characteristics: It's up to you people to do some advanced testing on the matter. My limited empirical testing in terms of voltages tells me it works as intended, but if a user with advanced measuring equipment would do similar testing to what I did back on the 4210 it would be perfect. }
  • zRAM: Switched over from LZO to Snappy compression algorithm, this provides much faster compression and decompression than the LZO implementation which was in the current kernel. I updated the Snappy libraries to the latest original CSNAPPY implementation, so this is extremely new.
  • Some kernel internal updates to speed up hotplugging and improve I/O latencies.
  • correctly (Unlike basically every other kernel out there till now) applied load averaging patch regarding fixing a Moiré pattern in the scheduler load calculations which was floating around.
  • Fixed mono and equalizer switches in the sound engine. (Thanks to sorgelig for beating me to it)
  • Fixed led controls to behave correctly with user-space apps.
  • mDNIe digital brightness reduction:

    You can now lower the brightness to basically nothing via this: it uses the mDNIe engine to digitally remove luminance from the RGB channel values, as opposed to reducing brightness via a proper backlight/display driver. The side effect of this is that you lose colour resolution somewhat, but is a practical and working method to reduce the too bright minimum values of our displays.

    You have three configurables:
    • A reduction rate which you want to apply, this is the intensity of the darkening you want to achieve.
    • The take-over point; the backlight driver gets fed brightness values from 0-255 (In reality values below 20 have no effect). The take-over point is the point where the digital brightness reduction starts, on a reverse scale. The reduction is applied linearly from 0, (Full reduction taking place), to the take-over point (Zero reduction). The stock slider doesn't go below 20 in the interface, so practically the full reduction rate is never applied unless you use a third-party brightness controller app, just to keep that in mind, but in practice it doesn't matter.
    • Auto-brightness input-delta: This is needed because the stock framework is retarded in the values it forwards to the kernel, you can adjust this to avoid having brightness reduction when you don't want it on auto-brightness. 

      Somebody needs to edit config_autoBrightnessLevels, config_autoBrightnessLcdBacklightValues in framework-res.apk\res\values\arrays.xml to fix this.

      Optionally, if you use a third-party app like Custom Auto Brightness which allows backlight values of down to 0, you can avoid this problem.
    The register hook needs to be enabled to be able to use this function.
  • EA8061 Note 2 owners only: increased the maximum brightness by 50 candela: the manual controls were limited to 250cd as maximum as opposed to 300cd which was only usable during auto-brightness, and unusable for any third-party apps.This doesn't apply to users with S6EVER02 controllers.
  • Unaligned memory access throughout the kernel when applicable.
  • Switched over to GCC 4.7.3 Linaro toolchain for compiling.

 

 

Credits: AndreiLux


Edited by na7q, 20 November 2013 - 12:58 PM.

Donations to me can be sent here!

 

anigif_enhanced-buzz-2014-1369138552-6.g

 

"just because you have an engine spot doesn't mean you can put in a jet engine"
- Zenzr

#2 BoгИX

BoгИX

    Amazing... Enough Said







  • 3,271 posts
  • Location:somewhere in the mountains of North Carolina
  • Device:XT1093

Posted 08 March 2013 - 04:28 PM

Discussion and support for Perseus Kernel can be found here:

 

http://teamuscellula...z-updated-0106/







1 2