mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-01 11:26:33 +00:00
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>
This commit is contained in:
committed by
Cyan_Hsieh
parent
467876afbb
commit
bb42b2be15
@@ -8,3 +8,7 @@ on init
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user