From 030be3a5f803aecedc888a901ed5f2c51a4cc8ba Mon Sep 17 00:00:00 2001 From: Sayali Lokhande Date: Tue, 31 Mar 2020 23:37:20 +0530 Subject: [PATCH] davinci: rootdir: init.qcom.rc: limit discard size to 128MB This change limits discard size for UFS(sda) to 128MB in order to avoid long IO latency. Change-Id: Iccf6f7561abaac13bc8c35b03f696cdf56c184ee --- rootdir/etc/init.qcom.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 160cfa8..9c6dcd0 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -117,6 +117,9 @@ on boot # Create hvdcp_opti directory mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system + # limit discard size to 128MB in order to avoid long IO latency + write /sys/block/sda/queue/discard_max_bytes 134217728 + # Enable qcrild and data services enable vendor.qcrild enable vendor.qcrild2