Commit Graph

60 Commits

Author SHA1 Message Date
Ivan Vecera
572664ebc6 sdm710-common: rootdir: Clean-up init.qcom.rc script
Remove unused services and unused property triggers.

Change-Id: I5cdadd4167b48c65db5d0106a9912c662db16e03
2024-01-22 11:42:04 +01:00
Ivan Vecera
9887379568 sdm710-common: rootdir: Clean-up init.target.rc script
Remove unneded stuff:
* migt module does not exist
* persist.sys.miui_optimization property is used by MIUI only
* the following are not shipped for any device
  - cnss_diag
  - dc_cal
  - displaycount
  - energy-awareness
  - ftcupdate
  - hbtp_daemon
  - init.panel_info.sh
  - sec_nvm
  - spdaemon
* vendor.audio.cit.spkcal.copy is used for calibration and we don't
  need it
* all commented stuff

Change-Id: I2dd4b936f57b18fc96fda0faf5a3d128a3add764
2024-01-21 19:44:20 +01:00
Ivan Vecera
d30fdc8d6f sdm710-common: rootdir: Clean-up init.qcom.sh
Keep only copying of modem files because setting of printk and
qemu.hw.mainkeys is superfluous and msm_irqbalance we can start
automatically during late_start.

Change-Id: If8ef0cfd9fdd7447e7375cbccae6b1edf103d8f3
2024-01-21 19:04:34 +01:00
Ivan Vecera
ab316705bf sdm710-common: rootdir: Remove init.qcom.class_core.sh
Remove unneeded script init.qcom.class_core.sh because there is
nothing for sdm710 and console service is started elsewhere.

Change-Id: I0fb02f632358092fdfd213a2affe15eb98c45e6f
2024-01-21 19:04:34 +01:00
Ivan Vecera
1ba00efa58 sdm710-common: rootdir: Clean-up init.qcom.early_boot.sh
Clean-up init.qcom.early_boot.sh so it just check (re)boot reason
and sets ro.vendor.alarm_boot appropriately. The rest of the script
can be removed as
* we don't want to override lcd_density
* setting of vblankoffdelay is being moved to init.qcom.rc
* chown/chmod of several sysfs knobs as well
* vendor.media.target.version and vendor.sys.media.target.version
  properties are being set in vendor.prop
* service vendor.atfwd is started automatically

Change-Id: I7cc9ade191a3c3707f6cb534ba6d962d9193e07b
2024-01-21 19:04:24 +01:00
Ivan Vecera
0833af2c38 sdm710-common: rootdir: Move all static parameters to init.qcom.power.rc
Move the rest of static configuration parameters from
init.qcom.post_boot.sh to init.qcom.power.rc.

Change-Id: I18d8aa7bdd4f2807246dafd9c47fc7fb9b65dc71
2024-01-20 14:57:56 +01:00
Ethan Chen
17dda4226e sdm710-common: Remove bogus tombstone directory directives
* /data/tombstones and /data/vendor/tombstones are both created by
  the system's init.rc.
* Creating /tombstones at the root isn't allowed since the root is
  mounted read-only.

Change-Id: I6c3a287056a2264d9e9ffe4557ecca8c6e03c0bb
2024-01-20 14:57:56 +01:00
Ivan Vecera
0bdc01c282 sdm710-common: rootdir: Do not try to create symlinks or dirs at root
Creating symlinks and directories at the root isn't allowed since
the root is mounted read-only.

Change-Id: Icf03d230cb3d1143ea051f64b552189b2b6bf299
2024-01-20 14:57:56 +01:00
Ivan Vecera
45be8b830f sdm710-common: rootdir: Do not try to load kernel modules
We are not using kernel modules and all drivers are compiled-in.

Change-Id: I20ab5dd2df77ad5ef25acfb623fc67229db91fe3
2024-01-20 14:57:56 +01:00
Bruno Martins
e473f471a3 sdm710-common: Delete class_main init shell script
Apart from useless battery capacity faking, all this does is to
start/stop data and radio services based upon the baseband type
of several QCOM targets. Since all the supported targets in this
common tree are of the same type, simply start all relevant services
unconditionally and get rid of one more shell script.

Change-Id: I1297b2537fcbea31d514bab5e248691cabdf523c
2024-01-20 12:23:38 +01:00
Ivan Vecera
6b09fbfd66 sdm710-common: rootdir: Kill LMK settings and add LMKD properties
Change-Id: Ia1cf90adae4b6eec564629a8828cd056bdbd8a8b
2024-01-18 18:40:19 +01:00
Ivan Vecera
2fc84fb012 sdm710-common: rootdir: Remove duplicates from init.qcom.post_boot.sh
* Remove devfreq and cpuset parameters from init.qcom.post_boot.sh
  as they are set in init.qcom.power.rc
* Remove powerkey input boost as our kernel does not support this
* Remove 'ondemand' governor sysfs items that do not exist as we
  are using schedutil

Change-Id: I652fa62e3b600c4c9c0b5e9a5480ad017e27379e
2024-01-18 16:53:24 +01:00
Ivan Vecera
60a4b4a7c6 sdm710-common: rootdir: Remove support for HBTP
Our devices do not use host-based touch processing. Remove the relevant
code.

Change-Id: Iab3d36417020bc5128b2ae5ad9189f68a6af335c
2024-01-18 16:32:46 +01:00
Ivan Vecera
749442a7d8 sdm710-common: rootdir: Remove unused functions
Remove unused functions from init.qcom.post_boot.sh.

Change-Id: I4e7b80b526ad069c6ea66d2044bd21f532a674e9
2024-01-18 15:54:50 +01:00
Ivan Vecera
5cade97193 sdm710-common: rootdir: Simplify configure_zram_parameters
* Remove code based on ro.config.low_ram property
* Simplify setting of ZRAM disk size as we always have 4GB or more

Change-Id: Ia9fb878f3f87fce9e13aa8c80a36638b841d1c50
2024-01-18 15:49:34 +01:00
Ivan Vecera
5894df9ab4 sdm710-common: rootdir: Simplify configure_read_ahead_kb_values
All our targets have 4GB or more RAM.

Change-Id: I82ecc837e06cfa8cf670921cd0985933dac47762
2024-01-18 15:41:56 +01:00
Ivan Vecera
5cf003d95f sdm710-common: rootdir: Simplify configure_memory_parameters
* Remove code-paths for product names different from our ones
* Remode code that depends on ro.config.low_ram as we are not using
  it and all our targets have 4GB or more RAM
* Remove enable_swap() that enables file based swap file
* Remove non-aarch64 code

Change-Id: I14dc70ed3acf18e96a8a884f0b0c344b0f6f5fa7
2024-01-18 15:38:58 +01:00
Ivan Vecera
4c26c72d82 sdm710-common: rootdir: init.qcom.post_boot.sh: Remove non-sdm710 code
Remove all code-paths for targets different from 'sdm710' and
adjust indentation of sdm710 code-paths.

Change-Id: Ieaeebc6324c0310b3a0a5d36c5883f00e4042acc
2024-01-18 15:26:06 +01:00
Ivan Vecera
394f0ca1e6 sdm710-common: rootdir: Do not try to install prebuilt apps
We do not have AdrenoTest.apk or SWE_Browser.apk so it does not make
sense to try to install them.

Change-Id: I0615e2e50526f960d5a6c221798ab5ebd1162d7b
2024-01-18 14:56:28 +01:00
Bruno Martins
555d5baf6b sdm710-common: Fix charger init trigger event after health AIDL move
Change-Id: I58e7c493d3b300b1efb1685fba637fee6b56bec3
2023-11-16 17:55:25 +01:00
Sebastiano Barezzi
7bbe3ca6e0 sdm710-common: Move to health AIDL services
Change-Id: Ibadf22d432791551c16d7f4e386b470574c390f8
2023-11-12 22:18:14 +01:00
Jaegeuk Kim
8455745b37 sdm710-common: rootdir: f2fs use fsync_mode=nobarrier options
from: device_google_bonito commit e02e4813256e51bacdecb
- fstab: use fsync_mode=nobarrier

  This patch proposes to skip FLUSH commands for UFS when fsync(2) for non-atomic
  files is called.

  == Pros ==
   - huge gain on random write/fsync test from 30MB/s to 90MB/s
     (e.g., Androbench)
   - extented flash lifetime
     (FLUSH command requires for FTL to write its metadata)

  == Cons ==
  In terms of stability,
  1) checkpoint issues FLUSH, so this doesn't hurt F2FS consistency.
  2) atomic write issues FLUSH, so SQLite w/ journal mode would be safe.
  3) non-atomic fsync() doesn't issue FLUSH, so there is one scenario to consider
  where:
     a. fsync() flushes data blocks to disk, and then node blocks. The last node
        block contains a flag as the candidate for roll-forward recovery.
     b. assuming that storage is able to flush disk cache in out-of-order manner,
        all the cached node blocks are written to the flash cell, followed by all
        the data blocks.
     c. cut power
     d. F2FS conducts roll-back to the last checkpoint w/o risk. Then, it starts
        roll-forward recovery which traverses the node block chain and finds node
        blocks written by b. lastly.
     e. After mount, user can see old or zero data from the recovered node blocks.

  Three points persuaded me to go with this:
  1) In the above scenario, it won't hurt filesystem consistency.
  2) Generally, firmware in embedded UFS/eMMC doesn't do out-of-order writes,
     since it doesn't have large cache to reorder write IOs likewise SSDs.
  3) It'd be okay to lose the last-called fsync() due to power-cut, since users
     won't be aware of it mostly.

Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I6d0fee62c081d55b462371412f390861f5f73a68
2023-09-12 18:49:54 +00:00
stic-server-open
21b9edea3c sdm710-common: rootdir: Revert "Enable discard option to retain speed"
* The discard on ext4 of kernel 4.9 is not perfect, it will greatly
  reduce the speed when deleting a large number of random small files,
  especially eMMC devices (such as sirius)

* f2fs discard is enabled by default, so it's useless to leave it here

This reverts commit bec522caca.

Change-Id: I35d6f7b26005ff9235c6d0644dd96dd6bf038e69
2023-09-12 18:49:54 +00:00
Ivan Vecera
df66af4151 sdm710-common: Build Lineage Health HAL
Change-Id: Ia426011557a36ed3a17860a49ed07e751e797450
2023-09-10 19:35:29 +02:00
Quallenauge
bec522caca sdm710-common: Enable discard option to retain speed.
Change-Id: I882a3f96824f679860ba915163bf21b500e1c5bc
2023-02-13 23:10:30 +01:00
me-cafebabe
c06482c06f sdm710-common: rootdir: Add F2FS userdata entry
Also sync the indents with EXT4 userdata entry while we're at it

Change-Id: I896b11e59f9ea4325bc51574b9e13c4cb734f493
2023-02-13 23:10:30 +01:00
Ayishwarya Narasimhan
94dbbb8095 sdm710-common: init.qcom.rc: Remove unused property
Remove persist.ims.regmanager.mode
property along with the service
which is unused

Change-Id: I6875dadffa2770d2f4ce19f44ec9b24b08523cc6
2022-11-23 20:28:07 +01:00
Murthy Nidadavolu
604b0d5386 sdm710-common: init.qcom.rc: Removed deprecated drmdiag entry
Eliminate drmdiagapp entries in init scripts. This app was deprecated
hence these entries were causing boot time degradation.

Change-Id: Ia8b14ef200a17b37c393f3e62c7be8849d575c71
2022-11-23 20:28:07 +01:00
Nolen Johnson
bc06873c2b sdm710-common: Remove usage of ro.data.large_tcp_window_size
* Not needed for us.

Change-Id: Ieee6bbbb858c0ee86769cded081fd82f3b9744ef
2022-11-23 20:28:07 +01:00
Ivan Vecera
d8c8f3ba92 sdm710-common: rootdir: Remove unused logdumpd service
Remove logdumpd service that cannot be and should not be used
as we are using logdump partition for metadata.

Change-Id: I4f058dc6482a5ce8133d87e2eb10667ad483b28f
2022-11-23 19:24:29 +01:00
Sebastiano Barezzi
68de91771d sdm710-common: Retrofit dynamic partitions
* Merge system, vendor and cust, giving us a whopping 6.4GB of space, pretty nice
* Mark standard block devices as super block devices (from https://source.android.com/devices/tech/ota/dynamic_partitions/implement?hl=en#selinux-legacy)

Change-Id: I2553aad99f5c458cf6ac6b4265dc5840127c13e9
2022-09-08 23:41:04 +02:00
Sebastiano Barezzi
3d13a18738 sdm710-common: Move to FBEv1
* https://source.android.com/docs/security/encryption/file-based
* https://source.android.com/docs/security/encryption/metadata

Change-Id: Ic089e29dbd9e0feab013d90777be30ed0e0d7b1d
2022-08-20 20:18:49 +02:00
Sebastiano Barezzi
5e20f0f039 sdm710-common: Use logdump as metadata partition
* We have a 64MB unused partition, why not use it

Change-Id: Ie0fafa8285eaebb24589073581ff9575f40c89e9
2022-08-20 15:44:55 +02:00
Sebastiano Barezzi
319dde804b sdm710-common: rootdir: Reorder fstab entries
Change-Id: I592841dc4572d80a680750e6ff52d07a3d6397d4
2022-08-20 02:21:11 +02:00
Sebastiano Barezzi
e49dca4944 sdm710-common: rootdir: Fixup second stage init mounting
* Following I0d7c3ab52fe49e75ce81a4630c1556df1c060824

Change-Id: I16d9b56c85e57b30b60e487627eb0dcc806e74fa
2022-08-19 15:24:17 +02:00
Sebastiano Barezzi
4f7adfe442 sdm710-common: rootdir: Stop chowning /data/vendor to system
* ??

Change-Id: I8894fd1653be88ae0dc4537b6c448ca406e8646a
2022-08-19 15:24:17 +02:00
Ivan Vecera
a7ea2ac6a7 sdm710-common: rootdir: Fix IR device name
ConsumerIR HAL uses /dev/lirc0 not /dev/ir_spi.

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: Ia77c673f8ef440a8f6066a14e2ce5e58e5fd6558
2022-08-19 15:24:17 +02:00
Sebastiano Barezzi
a6e75c68f0 sdm710-common: rootdir: Move init.fingerprint.rc to init.xiaomi.rc
Change-Id: I1fe2750091336647692daf0fab7d22b8f5ad0888
2022-08-19 15:24:17 +02:00
Ivan Vecera
0bae790389 sdm710-common: udfps: Allow access fod_status node in /sys/touchpanel
* focaltech_touch_mi used in pyxis exposes fod_status sysfs node
  in /sys/touchpanel

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: I9707e1837c41b0cbc3f03180774af1b53c4b2f6d
2022-08-19 15:24:16 +02:00
Ivan Vecera
782dfdd1a7 sdm710-common: rootdir: Add entry for SD card
* Add entry for SD card as Pyxis unlike Grus supports it

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: Ia4aa49b4ea4b0d632ec56ba48a4a2882fdcc2563
2022-08-17 23:33:40 +02:00
uixdess
a74adef95a sdm710-common: rootdir: Update power init script for sdm710
Change-Id: I62b02be1e9b2c496d3a6fea1e5e86e1edbee87eb
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
9d53dca6ad sdm710-common: rootdir: Don't hardcode bootdevice name
Change-Id: If8248d72c3495a4fe488d1b3afc77bf6540f3173
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
6e487862fb sdm710-common: rootdir: On charger, mount persist in /mnt/vendor/persist
Change-Id: Icd5c96513f2f4ebc5e120737411f1d247ca92946
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
1893570b90 sdm710-common: Import init.qcom.power.rc from sdm845-common
* 00d7748a9e, minus some stuff we already do in qcom scripts

Change-Id: I64cc283b073af748473b39851c02e1d4ade7b19b
2022-06-13 23:08:39 +02:00
Bruno Martins
8921898956 sdm710-common: Drop I/O prefetcher
This depends on the already removed QTI perf stack.

Change-Id: I06b9a57f868e77bbcbb77c3970aec723404689f4
2022-06-13 23:08:39 +02:00
Wei Wang
7f1e48e0f0 sdm710-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
9fd96b243b sdm710-common: Use QTI USB init configs from USB HAL repo
Change-Id: I966d251a2756c9d9e91f621cbc5872448d022de4
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
46a26ad73e sdm710-common: rootdir: Cleanup
* Remove unused or disabled shell scripts
* Remove init.qcom.factory.rc, it is used for debugging

Change-Id: I5495fccd63eb857e3cd7101c17809aa95f9e0b9c
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
2dce9eaae9 sdm710-common: rootdir: Remove Xiaomi charger modifications
* Make your bet, is it mount persist command or fs classes triggers that kills AOSP off mode charging? :xiaomi:

Change-Id: I608316b928b63e37ec82a2d160a316a606b3365e
2022-06-13 23:08:39 +02:00
Sebastiano Barezzi
1d535e45f1 sdm710-common: Add support for UDFPS devices
Change-Id: If31a314c50174c89b4b094dbd1d3da431917d238
2022-06-13 23:08:39 +02:00