From: Manivannan Sadhasivam <mani@kernel.org>
To: Nitin Rawat <quic_nitirawa@quicinc.com>
Cc: quic_cang@quicinc.com, stanley.chu@mediatek.com,
bvanassche@acm.org, quic_asutoshd@quicinc.com,
avri.altman@wdc.com, martin.petersen@oracle.com,
beanhuo@micron.com, konrad.dybcio@linaro.org,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
agross@kernel.org, andersson@kernel.org, jejb@linux.ibm.com,
linux-arm-msm@vger.kernel.org, quic_ziqichen@quicinc.com
Subject: Re: [PATCH V2] scsi: ufs: ufs-qcom: Update UFS devfreq Parameters
Date: Thu, 20 Jul 2023 13:56:02 +0530 [thread overview]
Message-ID: <20230720082602.GA4863@thinkpad> (raw)
In-Reply-To: <20230716074907.12356-1-quic_nitirawa@quicinc.com>
On Sun, Jul 16, 2023 at 01:19:07PM +0530, Nitin Rawat wrote:
> To support the periodic polling mode without stop caused by CPU idle
> state, enable delayed timer as default instead of deferrable timer
> for qualcomm platforms.
How about,
"Devfreq uses the default DEVFREQ_TIMER_DEFERRABLE mode which uses the deferred
timer for scheduling the devfreq load monitor function. This causes the load
monitoring to be done only with non-idle CPUs and not making use of the idle
CPUs. Hence, use the DEVFREQ_TIMER_DELAYED mode which uses the delayed timer
thereby making use of idle CPUs as well for load monitoring."
> And change UFS devfreq downdifferential threshold to 65 for less
> aggressive downscaling.
>
This change needs to be done in a separate patch. Also please provide any
benchmark if available to justify the patch.
> Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
> Signed-off-by: Asutosh Das <quic_asutoshd@quicinc.com>
Your signed-off-by should come last, as you are the one sending this patch.
- Mani
> ---
>
> Changes in v2:
> - Realigned the commit text
>
> drivers/ufs/host/ufs-qcom.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
> index 82d02e7f3b4f..a15815c951ca 100644
> --- a/drivers/ufs/host/ufs-qcom.c
> +++ b/drivers/ufs/host/ufs-qcom.c
> @@ -1388,8 +1388,9 @@ static void ufs_qcom_config_scaling_param(struct ufs_hba *hba,
> struct devfreq_simple_ondemand_data *d)
> {
> p->polling_ms = 60;
> + p->timer = DEVFREQ_TIMER_DELAYED;
> d->upthreshold = 70;
> - d->downdifferential = 5;
> + d->downdifferential = 65;
> }
> #else
> static void ufs_qcom_config_scaling_param(struct ufs_hba *hba,
> --
> 2.17.1
>
--
மணிவண்ணன் சதாசிவம்
prev parent reply other threads:[~2023-07-20 8:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-16 7:49 [PATCH V2] scsi: ufs: ufs-qcom: Update UFS devfreq Parameters Nitin Rawat
2023-07-20 8:26 ` Manivannan Sadhasivam [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230720082602.GA4863@thinkpad \
--to=mani@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=jejb@linux.ibm.com \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=quic_asutoshd@quicinc.com \
--cc=quic_cang@quicinc.com \
--cc=quic_nitirawa@quicinc.com \
--cc=quic_ziqichen@quicinc.com \
--cc=stanley.chu@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).