• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL][09/11/2021] fsociety tribute for Google Pixel 4a [A11/A12]

Search This thread

momojuro

Senior Member
Jan 15, 2014
542
903
Samsung Galaxy A30
Google Pixel 4a
Hello friends,

New update is up! Thanks to my Telegram testers for their useful feedback and reports.

Changelog

fsociety tribute stable#1.90

Thanks to everyone involved in the following changes:
  • Android 12 official support with stock A12 kernel changes
  • Merge branch android-msm-sunfish-4.14-android11-qpr3 (July 2021 security patch - thanks to engstk)
  • Makefile: Prohibit VLA *
  • proc: cmdline: Patch SafetyNet flags (The device passes bootloader SafetyNet check - thanks to sultanxda & kdrag0n)
  • PM: sleep: Don't allow s2idle to be used (enforce the default deep sleep mode because s2idle is buggy - thanks to sultanxda)
  • clk: qcom: gpucc-sdmmagpie: Undervolt the GPU (thanks to lybxlpsv on Github)
  • Revert "defconfig: Enable the BPF JIT compiler" (to fix gaming lag issues) **
  • Revert "rcu: Speed up calling of RCU tasks callbacks" (it caused kernel panics)
  • Revert "qcacmn: Disable all of qdf_trace when WLAN_DEBUG is disabled"
  • Revert "mm: wakeup kswapd for order-0 allocation"
  • VFS: use synchronize_rcu_expedited() in namespace_unlock() (statiscally faster filesystem unmounting time)
  • qcacld-3.0: Fix regulatory domain country names. (thanks to kdrag0n)
  • sched: fair: Tune scheduler capacity margins for sm7150-ab (thanks to KenHV on Github)
  • sched/fair: Revert Google's capacity margin hacks (they aren't needed anymore - thanks to sultanxda)
  • sched/fair: Allow load bigger task load balance when nr_running is 2
  • sched/fair: Optimize test_idle_cores() for !SMT
  • sched/fair: Fix unnecessary increase of balance interval
  • sched/fair: Trigger asym_packing during idle load balance
  • sched/fair: Fix rounding bug for asym packing
  • sched/core: Optimize try_to_wake_up() for local wakeups
  • sched/core: Fix preempt warning in ttwu
  • soc: qcom: watchdog_v2: Fix memory leaks when memory_dump_v2 isn't built (thanks to sultanxda)
  • soc: qcom: Remove tracing (thanks to celtare21 on Github)
  • UPSTREAM: psi: eliminate kthread_worker from psi trigger scheduling mechanism
  • BACKPORT: cgroup: make per-cgroup pressure stall tracking configurable
  • arm64/dts: sdmmagpie: Disable per cgroup tracking via psi (for less system overhead and better performance - thanks to Freak07)

* This Linux upstream change makes the kernel more secure and less bloated code wise.

More info here: https://www.phoronix.com/vr.php?view=Linux-Kills-The-VLA

** Enabling the BPJ JIT compiler was supposed to bring better performance, but it had the opposite effect for some games.


Download & Links
 

momojuro

Senior Member
Jan 15, 2014
542
903
Samsung Galaxy A30
Google Pixel 4a
Hello friends,

FIrst of all, I would like to thank @Chrisnetika for their second donation. It is highly appreciated and I cannot express my gratitude enough for their kindness. I would also like to thank my testers on Telegram for their patience and cooperation.

Changelog

fsociety tribute stable#1.95

Thanks to everyone involved in the following changes:
  • Implement the latest ARM64 architecture patches
  • Merge tag 'android-11.0.0_r0.99' into techpack/audio (Aug. 2021 security patch)
  • Merge tag 'android-msm-4.14-s-beta-3' changes (Android 12 beta 3)
  • defconfig: Properly disable CONFIG_FAIR_GROUP_SCHED (as A12 stock kernel's change)
  • defconfig: Set CONFIG_DISABLE_TRACE_PRINTK (again)
  • Bring back the automatic compaction mechanism implemented in the #1.70 private build
  • mm: compaction: Run ZRAM compaction on automatic compaction
  • Switch back to lz4 zRAM compression algorithm
  • treewide: Suppress overly verbose log spam *
  • thermal: step_wise: Apply some CAF patches
  • drm/msm: add stub API for drm msm event notification
  • drm/msm/dsi-staging: Fix memory leak in drm_panel_get_timings() *
  • cpuidle: lpm-levels: Fix panics when CONFIG_MSM_IDLE_STATS=n *
  • cpuidle: lpm-levels: Allow exit latencies equal to target latencies *
  • drm/msm/sde: Skip unneeded register reads when getting write line count *
  • msm: ipa_v3: Mitigate usleep_range calls
  • Revert "msm: ipa_v3: block ipa_ws wakelocks"
  • Revert "msm: ipa_v3: Do not acquire wakelocks"
  • drivers: ipa_v3: Conditionally compile out ipa wakelock code
  • power/wakelock: Add a timeout to wakelocks globally
  • qcacld-3.0: Do not allow any wakelocks to be held
  • thermal_core: Use power efficient workqueue
  • sched/core: Use SCHED_RR in place of SCHED_FIFO for all users
  • sched/core: Fix rq clock warning in sched_migrate_to_cpumask_end()
  • drm/msm/dsi-staging: Fix transposed panel_switch and panel_post_switch *
  • mailbox/qcom-rpmh: Do not spam logs with busy TCS states
  • power/google: sm7150_bms: Silence logspam when charger is connected
  • gpio: Remove VLA from gpiolib
  • tty: okl4_vtty: remove VLA usage
  • Revert "drm/msm/sde: Wait for ctl_start asynchronously on cmd mode panels" *
  • Revert "pinctrl: msm: Remove explicit barriers from mmio ops where unneeded" *
  • Misc. building changes

    * Credits go to sultanxda
Download & Links
 
Last edited:

momojuro

Senior Member
Jan 15, 2014
542
903
Samsung Galaxy A30
Google Pixel 4a
Hello friends,

Today's new update!

Changelog

fsociety tribute stable#1.97
  • drm: Reduce latency while processing atomic ioctls (thanks to sultanxda)
  • drm/msm/sde: Remove remaining PM QoS usage
  • Set zRAM disksize to 4GB according to Qualcomm's default value
Download & Links
 
  • Like
Reactions: rhewins2268

Chrisnetika

Member
Jan 16, 2021
36
11
Google Pixel 4a
The exFAT drivers are built-in the kernel, but the partition mounting isn't being done by the ROM.
ohh? so frankly just need figure out fsck to mount it right? but that would mean editing system partition right? So in other words a magisk addon would been needed. It ok tho, simple solution is format my drive to fat32.Seems to be working between pc and phone so far.
 

momojuro

Senior Member
Jan 15, 2014
542
903
Samsung Galaxy A30
Google Pixel 4a
ohh? so frankly just need figure out fsck to mount it right? but that would mean editing system partition right? So in other words a magisk addon would been needed. It ok tho, simple solution is format my drive to fat32.Seems to be working between pc and phone so far.
The easiest and seamless solution would be to format the drive to FAT32 indeed!
 

momojuro

Senior Member
Jan 15, 2014
542
903
Samsung Galaxy A30
Google Pixel 4a
  • Like
Reactions: Chrisnetika

momojuro

Senior Member
Jan 15, 2014
542
903
Samsung Galaxy A30
Google Pixel 4a
Hello friends,

Here is today's new update! I would also like to dearly thank @CSmaug for their kind donation.

Changelog

fsociety tribute stable#1.98
  • Merge tag 'android-msm-4.14-s-beta-4' changes (Android 12 beta 4)
  • defconfig: Enable support for TTL spoofing (for those who could be interested in bypassing their carrier's hotspot throttle)
  • msm: ipa3: Use read memory barrier before reading events
  • Revert "drm: Reduce latency while processing atomic ioctls"
  • Revert "sched/core: Use SCHED_RR in place of SCHED_FIFO for all users"
  • fs: f2fs: Remove CAF tracing
  • fs: f2fs: Remove remaining CAF tracing code
  • drivers: msm: qcedev: demote additional dmesg spam to pr_debug
Download & Links
 

momojuro

Senior Member
Jan 15, 2014
542
903
Samsung Galaxy A30
Google Pixel 4a
Hello friends,

Here is today's new update! I would like to thank everyone involved in the following changes, and to my testers from the Telegram group.
There were no security patches for A11, but they were instead for A12 beta 5.

Changelog

fsociety tribute stable#1.99
  • Merge 'android-s-beta-5' tag's changes (Android 12 beta 5) along with its security patches
  • Merge 'android-s-beta-3_r0.3' and 'android-s-beta-4_r0.3' tags' changes to the audio drivers
  • Merge 'android-s-beta-4_r0.3' tag's changes to the WiFi driver
  • Update AnyKernel3 to 20210910 version
  • makefile: remove some clang13 spam
  • Set zRAM's page-cluster to 0 per Google's recommendation, but it's to reduce the latency rather than saving memory. x
  • Set zRAM's disksize from 4GB to 2.7GB because the former was too high. A (450% x our device's RAM (6GB) calculation was preferred, and resulted in 2.7GB). xx
  • Revert "drm/msm/dsi-staging: Fix transposed panel_switch and panel_post_switch"
  • Revert "qcacmn: Enable EAPOL/DHCP message tracing in Wifi driver"
  • qcacmn: Fix suspicious string concatenation warning in fwlog
  • qcacld-3.0: Disable ATHDIAG procfs debug support for Adrastea
  • qcacld-3.0: default_defconfig: Unset some debugging configs
  • qcacld: reduce log spam
  • Revert "cpuidle: Change idle policy to always enter C1 first" for battery life purposes
  • cpuidle: lpm-levels: Only cancel the bias timer when it's used
  • treewide: Silence more verbose logging
  • Under-the-hood scheduler improvements
  • Memory management updates
  • Implement arter97's changes to the msm serial driver which fix a possible runtime power management malfunction
  • cpufreq: schedutil: Don't set next_freq to UINT_MAX.
  • cpufreq: schedutil: Don't skip freq update when limits change
  • msm: kgsl: Report correct GPU frequency in sysfs
  • iommu: msm: Rewrite to improve clarity and performance
  • ion: Rewrite to improve clarity and performance
  • f2fs: reduce timeout for uncongestion
  • f2fs: Set uncongestion timeout for 250 Hz timer frequency

    x More info here: https://source.android.com/devices/tech/perf/low-ram and https://github.com/ecdye/zram-config
    xx Calculation equation taken from: https://github.com/ecdye/zram-config
Download & Links
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    So how do I install the a12 version without a custom recovery?
    You can install the kernel with a kernel manager/flasher like FKM (Franco Kernel Manager) on A11 and A12.

    Speaking of which, #1.99 is coming out this weekend after a month of work with my testers on Telegram!
    2
    Hello friends,

    Here is today's new update! I would like to thank everyone involved in the following changes, and to my testers from the Telegram group.
    There were no security patches for A11, but they were instead for A12 beta 5.

    Changelog

    fsociety tribute stable#1.99
    • Merge 'android-s-beta-5' tag's changes (Android 12 beta 5) along with its security patches
    • Merge 'android-s-beta-3_r0.3' and 'android-s-beta-4_r0.3' tags' changes to the audio drivers
    • Merge 'android-s-beta-4_r0.3' tag's changes to the WiFi driver
    • Update AnyKernel3 to 20210910 version
    • makefile: remove some clang13 spam
    • Set zRAM's page-cluster to 0 per Google's recommendation, but it's to reduce the latency rather than saving memory. x
    • Set zRAM's disksize from 4GB to 2.7GB because the former was too high. A (450% x our device's RAM (6GB) calculation was preferred, and resulted in 2.7GB). xx
    • Revert "drm/msm/dsi-staging: Fix transposed panel_switch and panel_post_switch"
    • Revert "qcacmn: Enable EAPOL/DHCP message tracing in Wifi driver"
    • qcacmn: Fix suspicious string concatenation warning in fwlog
    • qcacld-3.0: Disable ATHDIAG procfs debug support for Adrastea
    • qcacld-3.0: default_defconfig: Unset some debugging configs
    • qcacld: reduce log spam
    • Revert "cpuidle: Change idle policy to always enter C1 first" for battery life purposes
    • cpuidle: lpm-levels: Only cancel the bias timer when it's used
    • treewide: Silence more verbose logging
    • Under-the-hood scheduler improvements
    • Memory management updates
    • Implement arter97's changes to the msm serial driver which fix a possible runtime power management malfunction
    • cpufreq: schedutil: Don't set next_freq to UINT_MAX.
    • cpufreq: schedutil: Don't skip freq update when limits change
    • msm: kgsl: Report correct GPU frequency in sysfs
    • iommu: msm: Rewrite to improve clarity and performance
    • ion: Rewrite to improve clarity and performance
    • f2fs: reduce timeout for uncongestion
    • f2fs: Set uncongestion timeout for 250 Hz timer frequency

      x More info here: https://source.android.com/devices/tech/perf/low-ram and https://github.com/ecdye/zram-config
      xx Calculation equation taken from: https://github.com/ecdye/zram-config
    Download & Links
  • 15
    Hello, friend.

    Inspired by @wrongway213's original custom kernel for Pixel 4/XL, I decided to make my own project once I grab my hand on a Google device myself. The naming is a tribute to both his ideas and Mr. Robot. fsociety tribute's goal is to give the device a set of useful features while ensuring its stability for a daily life usage. Those features and changes are pulled from different places like blu.spark, Sultan kernel, Kirisakura and many more.

    Features
    • Built with Google Clang version 13.0.2 + LLD linker
    • Full -O3 build with chipset's flags included (thanks to @eng.stk and @Sultanxda)
    • AnyKernel3 powered installation to stay OTA and flashers (EXKM, FKM...) friendly
    • Latest ARM64 architecture patches
    • CAF patches and fixes
    • The device passes bootloader SafetyNet check
    • Security fixes from GrapheneOS
    • VLA-free kernel
    • Powersaving workqueues enabled by default
      (thanks to @Freak07)
    • CPU uses freq-energy-model with calculated capacities
    • Disabled several debug and logging options
    • 250 Hz timer frequency
    • Implement Sony LowMemoryKiller TNG from 55.0.A.11.25 update
    • Implement josenk's srandom driver (faster than random and urandom)
    • Implement zRAM deduplication with arter97's changes and automatic compaction
    • BBR v2 set as the default TCP network congestion control
    • ZEN v2 set as the default I/O scheduler with slight changes
      (read-ahead set to 512 for specific blocks)
    • GPU idle timeout set to 64 ms
    • KCAL - Advanced color control for Qualcomm MDSS v2
      (RGB calibration and post-processing features)
    • KLAPSE v5.0 support
    • Backlight min. brightness and HBM option (thanks to @flar2)
    • Boeffla wakelock blocker enabled
    • Haptic Feedback level Control w/ Fingerprint Haptic Feedback Control support
      (thanks to @eng.stk)
    • exFAT filesystem support
    • TWRP support (LZMA/LZ4 ramdisk)
    • WireGuard support
    • Other misc. optimizations and fixes

    Download & Links

    Credits go to

    @eng.stk for their clean sourcedrops' bases, their personal pieces of advice and also for their contributions
    @wrongway213 for inspiring me to achieve this project, their precious free time and also for their contributions (especially this thread template)
    @Freak07 for their guidance in solving my first kernel compiling issues and for his amazing contributions
    @arter97 for their contributions
    @kdrag0n for Proton kernel and their innovative contributions
    @osm0sis for AnyKernel3 and their contributions
    @Sultanxda for their outstanding contributions
    @flar2 for their clean contributions
    @HolyAngel for HolyDragon kernel and their contributions
    @tytydraco for their contributions
    @pkgnex for their tuning script and contributions
    @nathanchance for their compilation guides and repos
    @badaas for being a great tester
    @beeshyams for being an awesome tester as well

    XDA:DevDB Information
    fsociety tribute for Pixel 4a, Kernel for the Google Pixel 4a

    Contributors
    momojuro
    Source Code: https://github.com/fsociety-tribute/pixel4a

    Kernel Special Features: Boeffla Wakelock Blocker, KCAL, KLAPSE, Wireguard, Haptic Feedback level Control, Fingerprint Haptic Feedback Control

    Version Information
    Status:
    Stable
    Current Stable Version: 1.99
    Stable Release Date: 2021-09-11

    Created 2021-04-06
    Last Updated 2021-09-11
    9
    Hello friends,

    New update is up! Thanks to my Telegram testers for their useful feedback and reports.

    Changelog

    fsociety tribute stable#1.80

    Thanks to everyone involved in the following changes:
    • Fix an occasional kernel panic that had been affecting the previous versions
    • Revert "mm: compaction: Add automatic compaction mechanism"
    • Revert "qcacld-3.0: use power efficient workingqueue"
      (was causing higher idle battery drain due to its conflict with qcom_rx_wakelock disable)
    • Remove USB2 Fast Charge support
    • Add Haptic Feedback level Control w/ FPR Haptic Feedback Control support
      (thanks to engstk for their original work)
    • dsi: panel: add in-driver ULPS enabling (thanks to tbalden for their original work)
    • gpu: msm: Remove tracing
    • msm: camera: Stub out the camera_debug_util API and compile it out
    • cpuidle: enter_state: Don't needlessly calculate diff time
    • Revert "power: Reduce debug logging if logbuffer is still enabled"
    • defconfig: Disable Google logbuffer
    • defconfig: Set DISABLE_TRACE_PRINTK
    • defconfig: Disable Memory Dump driver
    • defconfig: Disable unnecessary errata
    • defconfig: Unset a bunch of debugging options
    • defconfig: Disable some sleep states debugging configs
      (thanks to Freak07 for their work)
    • qcacmn: Remove leftover debug function
    • arm64: vdso: Compile vDSO at O3 with Clang
    • arm64: dts: sdmmagpie: Disable debug monitoring
    • arm64: dts: sdmmagpie: Disable expedited RCU grace periods
    • arm64: dts: msm: disable kpti on sdmmagpie
    • arm64/dts: qcom: Disable CoreSight DT entries for sdmmagpie
    • hwtracing: coresight: Add entries from sdmmagpie-coresight
    Download & Links
    8
    Hello friends,

    FIrst of all, I would like to thank @Chrisnetika for their kind donation. It was heartwarming and definitely helped to cheer myself up. I would also like to thank my testers on Telegram, especially @beeshyams who has been working with me the whole month to make sure of today's update stability.

    Changelog

    fsociety tribute stable#1.65

    Thanks to everyone involved in the following changes:
    • treewide: Merge tag 'android-11.0.0_r0.85' of
      https://android.googlesource.com/kernel/msm (June 2021 security patch)
    • Merge fixes from CAF
    • Merge security fixes from GrapheneOS
    • wireguard: Update to version 1.0.20210606
    • Implement josenk's srandom driver (faster than random and urandom - https://github.com/josenk/srandom)
    • Implement zRAM deduplication with arter97's changes
    • mm: compaction: Add automatic compaction mechanism
    • techpack: audio: Merge last update
    • mbcache: Speed up cache entry creation
    • msm/sde/rotator: Remove unneeded PM QoS requests
    • drm/msm/sde: Remove unneeded PM QoS requests
    • msm: kgsl: Remove L2PC PM QoS feature
    • scsi: ufs: Add sultanxda's simple IRQ-affined PM QoS operations
    • scsi: ufs: Scrap Qualcomm's PM QoS implementation
    • qcacld-3.0: use power efficient workingqueue
    • qcacld-3.0: Nuke as much debug bloat as possible
    • qcacmn: Disable all of qdf_trace when WLAN_DEBUG is disabled
    • sched: fair: consider all running tasks in cpu for load balance
    • cpuidle: don't disable cpuidle when entering suspend
    • defconfig: Disable EDAC
    Download & Links
    6
    Hello everyone, today's new update for the first month of fsociety tribute!
    Magisk 22.1 or newer is now required for root!

    Changelog


    fsociety tribute stable#1.04

    Thanks to everyone involved in the following changes, especially to @eng.stk:
    • Merge branch android-msm-sunfish-4.14-android11-qpr2 (May 2021.1)
    • Android: Implement Sony LowMemoryKiller TNG from 55.0.A.11.25
    • net/wireguard: merge v1.0.20210424
    • lib/lzo: implement run-length encoding (set as zRAM default's compression algorithm)
    • ext4: remove additional tracings added by CAF
    • mm: oom_kill: Reduce some verbose logging
    • bpf: Eliminate CONFIG_MODULES limitation from JIT for arm64
    • scripts/kallsyms: set relative_base more effectively
    • scripts/kallsyms: shrink table before sorting it
    • scripts/kallsyms: remove unneeded #ifndef ARRAY_SIZE
    • block: Disable preemption during IPI consideration
    • block: Track DISCARD statistics and output them in stat and diskstat
    • block: Add and use op_stat_group() for indexing disk_stat fields.
    • block: Define and use STAT_READ and STAT_WRITE
    • block: Add part_stat_read_accum to read across field entries.
    • block: make bdev_ops->rw_page() take a REQ_OP instead of bool
    • defconfig: further disable audit
    • kbuild: Don't try to add '-fcatch-undefined-behavior' flag
    • Makefile: add -fno-builtin-stpcpy
    • Revert "kernel: Add API to mark IRQs and kthreads as performance critical"
    • Revert "msm: kgsl: Mark IRQ as performance critical"
    • Revert "drm: Mark IRQ as performance critical"
    Download & Links
    6
    Hello everyone, new update!

    Changelog

    fsociety tribute alpha#1.01
    • Reverted some under the hood commits to prepare for future updates
    • Different cpuidle fixes and optimizations (thanks to @wrongway213)

      Thanks to @eng.stk for these changes:
    • Merge branch android-msm-sunfish-4.14-android11-qpr2 (Apr 2021.1)
    • BACKPORT: GKI: hwtracing: Add a driver for disabling coresight clocks (backport from Pixel 5, less idle draw)
    • Revert "f2fs: Fix deadlock between f2fs_quota_sync and block_operation"
    • f2fs: shrink node_write lock coverage
    • Revert "kbuild: disable clang's default use of -fmerge-all-constants"
    • techpack: data: don't build emac-dwc-eqos
    • Remove some logspam in net/sched
    Download & Links