Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp356832imm; Wed, 11 Jul 2018 03:50:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfH2iUiX3AnlkhrBYr6Jc0JK0CfqVJAG2oXNTErJm58aQVqyFngdxGYAqI0Ijo89FYpDT8A X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr29586825pfk.173.1531306202403; Wed, 11 Jul 2018 03:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531306202; cv=none; d=google.com; s=arc-20160816; b=x+6ieGw3VG34SLQq7y6bWg/rdoxjBoez4NIj8/L7T7rlS0PIdzdfq1f45LIn0WYYS7 Qu+VyNRvGhLQM3Gwcg+2aLtw6zzi6UoJkRu+1AuUMyodt8KsTzxUS+/Ozjywx9yt3d04 6ZZntwp91PmSEAYH0QGYi/5hhzRpXtNeNRajnTFZP1r41o7wNjGC044Mmpc0lQgCKqBy HCDGNwCsu7Lq6d6NbwXAoa8+sYZI86U7QokAbPVT9qfxxmyap3JkR/ywYIrDl6MDc95H 17cDHRQUT4pXaQqQDVu2ks42IVmbhcUUi1PBDcJRTeDz2AW495gz4s5OVgt5zaCAqAzv ObsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=Rsjs2EmYCryQTkpsHBA4LQ6PbeGsfnUv6Ajae8t/ihM=; b=jYTQojnP+bJVcgouhY7U4EEzVJX1Lc6vya37B3sT5FjSdsWoaDH0l+Z+MRkh47In7M hCDgdx7TD0vDv++C9lByv12L6qWsW+aJLgOLAJChPVkBsN4p3ZwqpS0t1dHn8xCgVhMX v0eEaEh5Ab1O8EXbYrrMjJtyh3UOeW9zC3y/it5MgmRHO66ECOBx8qDHeOtc02iUQKl8 HN4b/rcG+hanfTtQV3KFNycNaqr8DrtqZuFEE0YnEaDa9AyjmVP7cT25edCFINcdJcMf aaL0++L6LEyuh6kPFeC+ZKz9W/7Wi/EopaPxMBkPxD+ORNIqBKwTXu4AWU/zrbq8JN8C J9Sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si18959489plj.216.2018.07.11.03.49.47; Wed, 11 Jul 2018 03:50:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732422AbeGKKvd (ORCPT + 99 others); Wed, 11 Jul 2018 06:51:33 -0400 Received: from mga07.intel.com ([134.134.136.100]:18717 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbeGKKvd (ORCPT ); Wed, 11 Jul 2018 06:51:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2018 03:47:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,338,1526367600"; d="scan'208";a="215118191" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.168]) ([10.237.72.168]) by orsmga004.jf.intel.com with ESMTP; 11 Jul 2018 03:47:46 -0700 Subject: Re: [PATCH v1 3/9] scsi: ufs: Override auto suspend tunables for ufs To: Asutosh Das , subhashj@codeaurora.org, cang@codeaurora.org, vivek.gautam@codeaurora.org, rnayak@codeaurora.org, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: Sujit Reddy Thumma , linux-arm-msm@vger.kernel.org, Gilad Broner , open list References: <6981189193244970a912c8b3f390a00bc37ed14a.1530880006.git.asutoshd@codeaurora.org> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Wed, 11 Jul 2018 13:46:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <6981189193244970a912c8b3f390a00bc37ed14a.1530880006.git.asutoshd@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/18 15:30, Asutosh Das wrote: > From: Sujit Reddy Thumma > > Override auto suspend tunables for UFS device LUNs during > initialization so as to efficiently manage background operations > and the power consumption. > > Signed-off-by: Sujit Reddy Thumma > Signed-off-by: Gilad Broner > Signed-off-by: Asutosh Das Acked-by: Adrian Hunter > --- > drivers/scsi/ufs/ufshcd.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > index 77e2b3e..b03f3ea 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -89,6 +89,9 @@ > /* Interrupt aggregation default timeout, unit: 40us */ > #define INT_AGGR_DEF_TO 0x02 > > +/* default value of auto suspend is 3 seconds */ > +#define UFSHCD_AUTO_SUSPEND_DELAY_MS 3000 /* millisecs */ > + > #define ufshcd_toggle_vreg(_dev, _vreg, _on) \ > ({ \ > int _ret; \ > @@ -4528,6 +4531,9 @@ static int ufshcd_slave_configure(struct scsi_device *sdev) > blk_queue_update_dma_pad(q, PRDT_DATA_BYTE_COUNT_PAD - 1); > blk_queue_max_segment_size(q, PRDT_DATA_BYTE_COUNT_MAX); > > + sdev->autosuspend_delay = UFSHCD_AUTO_SUSPEND_DELAY_MS; > + sdev->use_rpm_auto = 1; > + > return 0; > } > >