Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9258055rwp; Thu, 20 Jul 2023 01:58:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPDvpSYvT3DIgOUBzUXqt0y5cvdLZlAj3cimCO/Y3bVdvNZLuQckYsOcj5MJfe1CisPkgc X-Received: by 2002:a05:6402:613:b0:51d:acda:2f4a with SMTP id n19-20020a056402061300b0051dacda2f4amr4793661edv.37.1689843507102; Thu, 20 Jul 2023 01:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689843507; cv=none; d=google.com; s=arc-20160816; b=xvjHI9EQwXChIDTZfUd8UTto5+j5CfS+JrXwe9FsB4Qb/enCbSgPnKBIP9/dOiya4z sozCHKKfOaCqO4NrElOvCRB36TFUgGxg4Uf7FPRi9qH36XPB1RBkuFde2KvNEFTmt77O vWDI+KafG6ZcIC5bCuksVZk5DexNgEWGcshaYfIFLi8GSCfPKagSfUYKtu8E5NL7NZV8 ei7WfdaCsW5cSCk/dQy6y4GsCXbc/A90Z4Q/JpFjQqmwtk8xzS6eDhLLjbg5ojtvqLlI yTojdEubN8i25z7+gjbCTpH/MoyFm2tJxGxXMb9jWTFUtKeRxq2Vtz3tltqFV84UbYe+ oZ9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EyndqOM+zL01JAYiubD5o26qpeUOKOe/kaBiFIs6mPg=; fh=ZpQW71MDSyBsMWA01fTUbpJBuhThjeet29A8KPg4g0Y=; b=y0GwKoQsNiPvSqg41IsrCdBW/JyE8AQNHE+K6W3+cpUO2/4cAbnrF/vJ+g1JjPW6E2 j+fQhpKXT8N+bwd1Qt5CAyXD08b16IF5JC/W7sjzRR2q3tAyLA0Du/QEQu6etKYd0U40 +cIokhkv5Q671fAzS4OxwYQrezOPoWzvsQrq6hOR0nbsMzWSCteQmWdeclPuJ/y3+TSq I01fJq8bQyGRNhoAMMeaRdLfG5bxMbRwpCV0lUcVAKiRzvfalgbkW7iKdlr1pyInlJma 0aKDTZsenek0MJlpZL/d1HENCSkYqcmb+bboHVk3DF0p4kd/gekHfJc8+lYuBJKVspnG CliQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hgwNTyWk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a056402164d00b0051df75a5cb3si537621edx.472.2023.07.20.01.58.02; Thu, 20 Jul 2023 01:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hgwNTyWk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231787AbjGTI0e (ORCPT + 99 others); Thu, 20 Jul 2023 04:26:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231644AbjGTI0a (ORCPT ); Thu, 20 Jul 2023 04:26:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD9C82D5D; Thu, 20 Jul 2023 01:26:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E7A36192A; Thu, 20 Jul 2023 08:26:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67FA3C433CA; Thu, 20 Jul 2023 08:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689841577; bh=8hXpYZiC5flMcBz6vQdYkhcT3AAczzerq09YWQX34Cs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hgwNTyWkIX9IAhNeqFtqPOGah7eaiV9bf+YbUC2Q2COcOrErULar1+CtssefQrxLM CNJN8xf7glOlEBIZujkUMCpAwCBXxVeE0nlEGFTZrlnhyYG2rUox5DClgUbq+RgpE1 cOdm/3wDyvRrLzLz5OIdnHPKyU5ovFzeMvHrWRidr2dIdlAewobJlZg9QLmSCNqy4c OG9Dxrvf5Lm2veAwozJtBEq9auoYsDwisSQMsyQlPm5HfYfEPueXe5JC+DI9h3mupQ xCxnwOyehlTfgFtvwLCuFPwD8rFw/vwsNIl8yO0lfLba2v0qeYrXpAdT/AKKt4ZRlX EPxhe9yDpIEdA== Date: Thu, 20 Jul 2023 13:56:02 +0530 From: Manivannan Sadhasivam To: Nitin Rawat 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 Message-ID: <20230720082602.GA4863@thinkpad> References: <20230716074907.12356-1-quic_nitirawa@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230716074907.12356-1-quic_nitirawa@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Signed-off-by: Asutosh Das 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 > -- மணிவண்ணன் சதாசிவம்