Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4076531rdb; Thu, 14 Sep 2023 11:01:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7wQE2dUq0G+aR5yNIYzHGs5lsXNWo/oiegLQOCSd6t9m2WaeUdqh2xulAKD0kBe3pCUFy X-Received: by 2002:a17:90b:3a92:b0:274:6695:e889 with SMTP id om18-20020a17090b3a9200b002746695e889mr2747880pjb.41.1694714489592; Thu, 14 Sep 2023 11:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694714489; cv=none; d=google.com; s=arc-20160816; b=0jqLYJnyy5TF5TFWW8Tb2LEWdpiZo0r/hWR4wAcMWT34QtDQ5kJC61LHR2xnZ0l4sE Q8yLqAUnQT0vSd/LszQ29dCJc37a7pbLzeEFVZSufnBUFOYI4LO62vnNxFqvE4jYdOKO OujJJaNi6VjUNm+wtDMODFkY+u9qjn+QVe7hnj3EOitfnOw2dWtV0Si69E/zpG7IyAUb 5IBWWyTkROtgvmu2NLTpX1yfWQHyyGiFP9usFFjGdhK8TdOZpyeDmwWRUGV1PS2CYJaR A8jSW0pTO4qB7atSiaqzUGFfhumafcdJbDrm9SmLGtaecXfY1dKa1x0xiKIwufZZOpW1 dldw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RjZZyJ/Se3E0TQ3jLCr+da6k3IlxB/LfHfaGLcvsi7I=; fh=BXX8ERWX26+aVcIBHRj739hG3EFRK68rENJFo7eReGE=; b=uhYFTA0QjqT02avJZ9dXIgL6DOntckO0wmC80G6SxjdWcuVllhmxTEO44tEeqPa64n 43pdYWYX0WmhWFxFYvEHXpF7rP3G8YdW/nATfw1EToMXIltkv0TRazqY5bdenuvhZec1 O0Cv0bgPXDcc95ZffU1dOhpqXYHB8rzoJroTYN4CJCc+LMOZF38aKwpOCxM2QztJvpI7 HeW6EOgtKRH2LVv8YuIITYjw4qg1tLkG6u+Bs/XcCeAbl4g7WWrsUPyGq6SaqX3ZlHpw shLybZG+Zf7zf1scXvfIiB4sl/TjMhdtztClrZSedb5iTe2tIBa6xQYoFMGQnvNoL99y aIUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=B9+4TZrt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b00563e25c07c0si1860480pgb.270.2023.09.14.11.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 11:01:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=B9+4TZrt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0C38381BFCC5; Thu, 14 Sep 2023 04:35:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233707AbjINLfu (ORCPT + 99 others); Thu, 14 Sep 2023 07:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233393AbjINLfs (ORCPT ); Thu, 14 Sep 2023 07:35:48 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 717C3CC3; Thu, 14 Sep 2023 04:35:44 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38EAoVTL026571; Thu, 14 Sep 2023 11:35:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=RjZZyJ/Se3E0TQ3jLCr+da6k3IlxB/LfHfaGLcvsi7I=; b=B9+4TZrto6zNGoK7VetoALXrY2WytvaNYfmSUgd4J4vT/wCoitGPSg/AhLPT0pyudrGR YtCOG3M6HX3Npq/eL9K8I6Otk+B65X+Lr1YUmoL/Pnb6QF0Ec+ZDD1hVnW1hc9yLZgSB QBxukN0VMIl4O2tYu18d5Q6KzzY2nfE9MtkXiHJaxVrhagsjg1QMtUgF4QJ/K0g7RH0D 37Pb69Pk+OErmnynrmTH7Da0ZTPjRdxCLtFs66F2NxfwFiVxgYGC0oTJiCDcqppidVY9 OwNFmfGW0CpvQ6IhEYEClvHJTQWl24EOtUY2xFOi42YH1ux5slte8TUa9Wad/UyTuf2C Jw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3h0dj9bk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 11:35:36 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38EBZabK032324 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 11:35:36 GMT Received: from [10.218.45.181] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Thu, 14 Sep 2023 04:35:32 -0700 Message-ID: <8d95d169-452f-e426-938f-ccadf26de9ca@quicinc.com> Date: Thu, 14 Sep 2023 17:05:29 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH 6/6] scsi: ufs: ufs-sysfs: Introduce UFS power info sysfs nodes Content-Language: en-US To: Can Guo , , , CC: , Bart Van Assche , "Bean Huo" , Lu Hongfei , open list References: <1694411968-14413-1-git-send-email-quic_cang@quicinc.com> <1694411968-14413-7-git-send-email-quic_cang@quicinc.com> From: Nitin Rawat In-Reply-To: <1694411968-14413-7-git-send-email-quic_cang@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: I3NxTihUEE4BksUB7IsrAuudxKQSsCyP X-Proofpoint-GUID: I3NxTihUEE4BksUB7IsrAuudxKQSsCyP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_09,2023-09-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 suspectscore=0 mlxlogscore=967 phishscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 malwarescore=0 bulkscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140099 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 04:35:57 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email On 9/11/2023 11:29 AM, Can Guo wrote: > Having UFS power info available in sysfs makes it easier to tell the state > of the link during runtime considering we have a bounch of power saving > features and various combinations for backward compatiblity. Please fix spelling mistake *bounch -> bunch > > Signed-off-by: Can Guo > --- > Documentation/ABI/testing/sysfs-driver-ufs | 48 ++++++++++++++++++++++++++---- > 1 file changed, 43 insertions(+), 5 deletions(-) > > diff --git a/Documentation/ABI/testing/sysfs-driver-ufs b/Documentation/ABI/testing/sysfs-driver-ufs > index 0c7efaf..25169f2 100644 > --- a/Documentation/ABI/testing/sysfs-driver-ufs > +++ b/Documentation/ABI/testing/sysfs-driver-ufs > @@ -1214,12 +1214,50 @@ Description: This file shows the average latency (in micro seconds) of write > > The file is read only. > > -What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_sum > -What: /sys/bus/platform/devices/*.ufs/monitor/write_req_latency_sum > -Date: January 2021 > +What: /sys/bus/platform/drivers/ufshcd/*/power_info/gear > +What: /sys/bus/platform/devices/*.ufs/power_info/gear > +Date: September 2023 > Contact: Can Guo > -Description: This file shows the total latency (in micro seconds) of write > - requests after monitor gets started. > +Description: This file shows the gear of UFS link. > + > + The file is read only. > + > +What: /sys/bus/platform/drivers/ufshcd/*/power_info/lane > +What: /sys/bus/platform/devices/*.ufs/power_info/lane > +Date: September 2023 > +Contact: Can Guo > +Description: This file shows how many lanes are enabled on the UFS link. > + > + The file is read only. > + > +What: /sys/bus/platform/drivers/ufshcd/*/power_info/mode > +What: /sys/bus/platform/devices/*.ufs/power_info/mode > +Date: September 2023 > +Contact: Can Guo > +Description: This file shows the power mode of UFS link. > + > + The file is read only. > + > +What: /sys/bus/platform/drivers/ufshcd/*/power_info/rate > +What: /sys/bus/platform/devices/*.ufs/power_info/rate > +Date: September 2023 > +Contact: Can Guo > +Description: This file shows the high speed rate of UFS link. > + > + The file is read only. > + > +What: /sys/bus/platform/drivers/ufshcd/*/power_info/dev_pm > +What: /sys/bus/platform/devices/*.ufs/power_info/dev_pm > +Date: September 2023 > +Contact: Can Guo > +Description: This file shows the UFS device power mode, i.e., the power mode > + set to UFS device via the Start Stop Unit command. > + > +What: /sys/bus/platform/drivers/ufshcd/*/power_info/link_state > +What: /sys/bus/platform/devices/*.ufs/power_info/link_state > +Date: September 2023 > +Contact: Can Guo > +Description: This file shows the the state of the UFS link. > > The file is read only. > Thanks, nitin