Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1242083pxb; Wed, 4 Nov 2020 03:57:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrNjJ4DpYvfD8PjX5sMKJPaN1GtyzJbZhVg4bJ+mO3tiVptmE4j3MinAvc3ZXOvdGY0wRW X-Received: by 2002:a17:906:d7b7:: with SMTP id pk23mr25218394ejb.214.1604491031318; Wed, 04 Nov 2020 03:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604491031; cv=none; d=google.com; s=arc-20160816; b=XR5o9BP17/MaKI3cSgz+uS0kEbQrZQiPRYhH8oI5OiF6knGdWn93fSaFIORHWUjxkB idgzofMvLDi5w61K7AsxE04JfC4dhtqQa2AsuYZh7+AXH8TGvN7vT9OGjnCbR37hY+wr 4NMfhAXWBiEy5dNXnaJxroLFJ1Ow3P0lt0q55DJvr5A38uw7hakCcLI0XRJKoPb+aeSX MyE9jw9LJaCGFDXGeZ43/YkZsVN1t9tUCRHXhAdfANN/Ka14m8bAOwaVg2x+oEoWWshg 4w1J9+viV4qbHzNWGtebOkdQJdoAxVobvyKppIsDhDOJr4VOFF53gtsuZI8TkckmQkIW lYQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=csd/hcn2OklBGzojAn449pSXEfHgmN+5uFM6kHaa7ag=; b=lRs+QEMVrVIunvwLjdM4Ys1a66VRotBLz8fsGZvL58A2MH/BIJAlwOj+37npkaJN70 QdWS7P232nJjZBnW5Py/USnB9kdEqmfXDy6u8/0396ohb1NzIyanFgbI7wsouUISNDsT 1Gcn96Yd2NJnam0oNszuu31f/fY3PCpFr7Ee4SavoO8KN3LqappiWUKc+ge0ZBMYrXS5 L2UH78Gs9aZiVh99+a7uFqSRIQkySn7Fpiwd41CeR14zGVT9UlVTaN7jAsdRBa7uYzo6 +S6nNMS4xYUIbwQYD9Wl+qzlPj5dYz8+2qkdxC7ZmoYk4PZgw773Gv45l02avYlIXnLj 3UUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id d12si1360647ejj.595.2020.11.04.03.56.48; Wed, 04 Nov 2020 03:57:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729783AbgKDLz1 (ORCPT + 99 others); Wed, 4 Nov 2020 06:55:27 -0500 Received: from mga07.intel.com ([134.134.136.100]:16707 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbgKDLzX (ORCPT ); Wed, 4 Nov 2020 06:55:23 -0500 IronPort-SDR: xe5bITMnjVENrTZf90+AISoNj2c1bN9GSGozrbnRZX89AsS5rwX3NEgltRHTR5HQzHH0raOdMa 1k1k6U1LJJkg== X-IronPort-AV: E=McAfee;i="6000,8403,9794"; a="233367094" X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="233367094" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 03:55:21 -0800 IronPort-SDR: n3DiUsFOb2vBYKhrbpImWAcUlbSMM64+uh8Fc3xzbfkHbG7DKDMGYGoYpYfuwn6/fKJXdICuUG Dlh/BO/wCrgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="538893851" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.94]) ([10.237.72.94]) by orsmga005.jf.intel.com with ESMTP; 04 Nov 2020 03:55:19 -0800 Subject: Re: [PATCH V4 1/2] scsi: ufs: Add DeepSleep feature To: Bean Huo , "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Alim Akhtar , Avri Altman , Can Guo , Stanley Chu References: <20201103141403.2142-1-adrian.hunter@intel.com> <20201103141403.2142-2-adrian.hunter@intel.com> 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, 4 Nov 2020 13:55:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/11/20 12:57 pm, Bean Huo wrote: > On Tue, 2020-11-03 at 16:14 +0200, Adrian Hunter wrote: >> DeepSleep is a UFS v3.1 feature that achieves the lowest power >> consumption >> of the device, apart from power off. >> >> In DeepSleep mode, no commands are accepted, and the only way to exit >> is >> using a hardware reset or power cycle. >> >> This patch assumes that if a power cycle was an option, then power >> off >> would be preferable, so only exit via a hardware reset is supported. >> >> Drivers that wish to support DeepSleep need to set a new capability >> flag >> UFSHCD_CAP_DEEPSLEEP and provide a hardware reset via the existing >> ->device_reset() callback. >> >> It is assumed that UFS devices with wspecversion >= 0x310 support >> DeepSleep. >> >> Signed-off-by: Adrian Hunter >> --- >> Documentation/ABI/testing/sysfs-driver-ufs | 34 +++++++++++-------- >> drivers/scsi/ufs/ufs-sysfs.c | 7 ++++ >> drivers/scsi/ufs/ufs.h | 1 + >> drivers/scsi/ufs/ufshcd.c | 39 >> ++++++++++++++++++++-- >> drivers/scsi/ufs/ufshcd.h | 17 +++++++++- >> include/trace/events/ufs.h | 3 +- >> 6 files changed, 83 insertions(+), 18 deletions(-) >> >> diff --git a/Documentation/ABI/testing/sysfs-driver-ufs >> b/Documentation/ABI/testing/sysfs-driver-ufs >> index adc0d0e91607..e77fa784d6d8 100644 >> --- a/Documentation/ABI/testing/sysfs-driver-ufs >> +++ b/Documentation/ABI/testing/sysfs-driver-ufs >> @@ -916,21 +916,24 @@ Date: September 2014 >> Contact: Subhash Jadavani >> Description: This entry could be used to set or show the UFS device >> runtime power management level. The current driver >> - implementation supports 6 levels with next target >> states: >> + implementation supports 7 levels with next target >> states: >> >> == =================================================== >> = >> - 0 an UFS device will stay active, an UIC link will >> + 0 UFS device will stay active, UIC link will >> stay active >> - 1 an UFS device will stay active, an UIC link will >> + 1 UFS device will stay active, UIC link will >> hibernate >> - 2 an UFS device will moved to sleep, an UIC link will >> + 2 UFS device will be moved to sleep, UIC link will >> stay active >> - 3 an UFS device will moved to sleep, an UIC link will >> + 3 UFS device will be moved to sleep, UIC link will >> hibernate >> - 4 an UFS device will be powered off, an UIC link will >> + 4 UFS device will be powered off, UIC link will >> hibernate >> - 5 an UFS device will be powered off, an UIC link will >> + 5 UFS device will be powered off, UIC link will >> be powered off >> + 6 UFS device will be moved to deep sleep, UIC link >> + will be powered off. Note, deep sleep might not be >> + supported in which case this value will not be accepted >> == =================================================== >> = >> >> What: /sys/bus/platform/drivers/ufshcd/*/rpm_target_d >> ev_state >> @@ -954,21 +957,24 @@ Date: September 2014 >> Contact: Subhash Jadavani >> Description: This entry could be used to set or show the UFS device >> system power management level. The current driver >> - implementation supports 6 levels with next target >> states: >> + implementation supports 7 levels with next target >> states: >> >> == =================================================== >> = > > Hi Adrian > There doesn't have these equal sign lines in the sysfs-driver-ufs. > maybe you should remove these. or add + prefix. The "=" are from the patch below which is in v5.10-rc2 commit 54a19b4d3fe0fa0a31b46cd60951e8177cac25fa Author: Mauro Carvalho Chehab Date: Fri Oct 30 08:40:50 2020 +0100 docs: ABI: cleanup several ABI documents There are some ABI documents that, while they don't generate any warnings, they have issues when parsed by get_abi.pl script on its output result. Address them, in order to provide a clean output. Reviewed-by: Tom Rix # for fpga-manager Reviewed-By: Kajol Jain # for sysfs-bus-event_source-devices-hv_gpci and sysfs-bus-event_source-devices-hv_24x7 Acked-by: Jonathan Cameron #for IIO Acked-by: Oded Gabbay # for Habanalabs Acked-by: Vaibhav Jain # for sysfs-bus-papr-pmem Acked-by: Cezary Rojewski # for catpt Acked-by: Suzuki K Poulose Acked-by: Ilya Dryomov # for rbd Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/5bc78e5b68ed1e9e39135173857cb2e753be868f.1604042072.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman