summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitin Rawat <nitin.rawat@oss.qualcomm.com>2026-08-25 20:22:03 +0530
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-08-28 21:55:10 -0400
commitb2ededcb271b37510366cbf6853be193d681ba5c (patch)
treea9c3d65d62495661fa730d7195dd7059abebcc45
parenta3756f53baf1830c65149cfcb81cb96360976cf3 (diff)
downloadlinux-next-b2ededcb271b37510366cbf6853be193d681ba5c.tar.gz
linux-next-b2ededcb271b37510366cbf6853be193d681ba5c.zip
scsi: ufs: ufs-qcom: Fix sequential read variance
The current devfreq downdifferential threshold of 5% causes overly aggressive frequency downscaling, leading to performance degradation sometimes during sequential read workloads. Update the UFS devfreq downdifferential threshold to 65. This widens the hysteresis window and prevents overly aggressive downscaling, ensuring that frequency is maintained for loads above 5% and scaling down occurs only when utilization falls below this level, while scale-up still triggers above the 70% threshold. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Nitin Rawat <nitin.rawat@oss.qualcomm.com> Link: https://patch.msgid.link/20260825145203.265579-3-nitin.rawat@oss.qualcomm.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
-rw-r--r--drivers/ufs/host/ufs-qcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
index 8893ea7e4d84..b31c04b5461e 100644
--- a/drivers/ufs/host/ufs-qcom.c
+++ b/drivers/ufs/host/ufs-qcom.c
@@ -2291,7 +2291,7 @@ static void ufs_qcom_config_scaling_param(struct ufs_hba *hba,
p->polling_ms = 60;
p->timer = DEVFREQ_TIMER_DELAYED;
d->upthreshold = 70;
- d->downdifferential = 5;
+ d->downdifferential = 65;
hba->clk_scaling.suspend_on_no_request = true;
}