mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-01 05:34:34 +00:00
limit UFS discard size to avoid UFS unmap timeout issue Bug: 146203801 Test: print log in recovery mode Change-Id: I484b44abc1e14a19a7dd753e927c52af3565fe65 Signed-off-by: Randall Huang <huangrandall@google.com>
15 lines
593 B
Plaintext
15 lines
593 B
Plaintext
on fs
|
|
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
|
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
|
|
|
on init
|
|
setprop sys.usb.configfs 1
|
|
# Don't lose recovery logs- keep warm reset for coming out of recovery.
|
|
write /sys/module/msm_poweroff/parameters/warm_reset 1
|
|
# Enable thermal mitigation
|
|
write /sys/devices/virtual/thermal/tz-by-name/backup-charge/mode enabled
|
|
|
|
# Block layer tuning: discard chunk size up to 128MB
|
|
# Otherwise, contiguous discards can be merged
|
|
write /sys/block/sda/queue/discard_max_bytes 134217728
|