Files
device_google_redfin/init.recovery.device.rc
Randall Huang bb42b2be15 init.recovery.device.rc: limit discard size to 128MB
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>
2020-05-29 21:19:58 +08:00

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