diff options
| author | Subhash Jadavani <subhashj@codeaurora.org> | 2017-10-12 14:32:35 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-23 23:43:33 +0200 |
| commit | a06cbd1a2ca2c350ecb2e072580c182e0d28e6f4 (patch) | |
| tree | 564a03b3260b607bf8e96f07fbead99f86fef332 /drivers/scsi | |
| parent | 56c3690e7a3086899bafa56f32aa890fae48d8a9 (diff) | |
scsi: ufs: change the clock scaling polling period and up threshold
We have noticed that UFS load based clock scaling is ramping up to highest
frequency during low power usecases but never scales back to lower
frequency during the remaining usecase run period. This increases the
oveall power consumption for a given low power usecase. We analyzed UFS
data transfer pattern for different low power usecases and updated clock
scaling polling period & up threshold which helps with power numbers
without affecting performance numbers.
Change-Id: I74cf8a1f07d1b1a0ac112f28fc98a8a82cac1d28
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'drivers/scsi')
| -rw-r--r-- | drivers/scsi/ufs/ufshcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index d01ac8df1134..31bdcec2c56a 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -389,8 +389,8 @@ static int ufshcd_devfreq_get_dev_status(struct device *dev, #if IS_ENABLED(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND) static struct devfreq_simple_ondemand_data ufshcd_ondemand_data = { - .upthreshold = 35, - .downdifferential = 30, + .upthreshold = 70, + .downdifferential = 65, .simple_scaling = 1, }; @@ -400,7 +400,7 @@ static void *gov_data; #endif static struct devfreq_dev_profile ufs_devfreq_profile = { - .polling_ms = 40, + .polling_ms = 60, .target = ufshcd_devfreq_target, .get_dev_status = ufshcd_devfreq_get_dev_status, }; |
