Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp84040rdb; Mon, 4 Dec 2023 22:00:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGM3Ys/2R5Q8qM0ShBoFG4Cdt3+KqMF4Che+8Gg+me2kHMkxIhzGYp7TZKIXTsWvCW1R/j6 X-Received: by 2002:a54:4589:0:b0:3ae:4cab:526a with SMTP id z9-20020a544589000000b003ae4cab526amr5508163oib.14.1701756004135; Mon, 04 Dec 2023 22:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701756004; cv=none; d=google.com; s=arc-20160816; b=bAH0/8BzzUBx2JRjI5dO2we8b3g3OxbuhDMNGxmDmIdTrsDKgUchCTMrfa5V17Ai4M rl0nxcFoN4e38wZYE2XUKgcihvqoCJatY30GQxG7qVDFNCu6OJNEJNJMwsD4CVvoWIBw 7Zi0iAWzDN0cdyM93wj0E5lc8HZKOKQvOWAx1mEMR72N3G8DRA5t53P6tKL/qAcResOP e1LbJMf+lsLzw/BHUikxTAy/gpsOUqEG5gR4nVaoKqQNCLn6tCwbM6sIB1IwQkHJJZ1/ ZKHKpqJnoEdbv8N6aeP/xxvG3yCLl+XAwcxKDv5g9Mzt2kqkOg2CaFaBv8ODQ3Gaep7o UBcA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3LK9jcnO2LKsXvZ4d4db8H6yT9gdmGLVtbrluxK8Gv0=; fh=9MWEQ7cbZKADuAvSTdMV5tO/eM+Jn7z+SZeU1npe7AE=; b=uw0qE0iIzpMBONRIxDHdDWjQ+z22nBUGFF2/k6QqWQ1g6GRUS3sqjL6lXTtyXxldo7 FLKFSHLzKk0gu9EWyEYrTjocqnSrrEbsoZHki+F1DP6JiscFWLN+FSsMf4UYqlWTX85I fGfYcap4D3HclnTMsHYrVfqHiznFiAmjwz+ZkOukk50sezrQtefQ26IjNZ0k9IC1TUyA XVVTwGF3vYzFef+Yi2PnmGhn0anin4ZRqsQrJIobUFqPLA9FMbXKJC3V6iZ/qDUKS4cl hleJcgEBMdfBBoV88eipUEFeO7CfJZRjiP93hD6K+2ItqLMm2G3kxR1uUTJK/0ky9L9U IFqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=o8m8mIqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i17-20020a63cd11000000b005c66368cfb2si4817915pgg.451.2023.12.04.22.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 22:00:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=o8m8mIqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 625F180A852A; Mon, 4 Dec 2023 22:00:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234899AbjLEF7q (ORCPT + 99 others); Tue, 5 Dec 2023 00:59:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344321AbjLEF7k (ORCPT ); Tue, 5 Dec 2023 00:59:40 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FA52134; Mon, 4 Dec 2023 21:59:46 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B530TCh010074; Tue, 5 Dec 2023 05:59:26 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=3LK9jcnO2LKsXvZ4d4db8H6yT9gdmGLVtbrluxK8Gv0=; b=o8m8mIqi/aC0QrUWWiuWVZjs9GXCeX+xG8xlFpLj4irv22PQlGNrgUs/TZN7Hy7ycN0m RkkZxtrCGk4XibHSUdjiDc3ZwFLx7Zh+ghQXRkvB6iKND+aNNlT68UeAH7/FZvBMwM+S igz96hsNywiVf/AHgU3eEcPaEJn6JqsRuiIPtsavJxD139PVLgJN52EJnCS8NYPLH6IB gn0tBNKjJarZ8lNvL9JJCuwUFvnc0daqEVOGQHDsEmYUCfKizlU3KQ9I+SeBRzR82GG8 BIdONGQ3MZsJCSenhCcJ0o13Mn4IjpFQOTStJXW9WFUCau87kpugwGVCYjEfJg6Dc8rA Ng== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3usdf7jdek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Dec 2023 05:59:26 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B55x0Y2022211 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 5 Dec 2023 05:59:00 GMT Received: from [10.217.219.220] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 4 Dec 2023 21:58:54 -0800 Message-ID: <692cd503-5b14-4be6-831d-d8e9c282a95e@quicinc.com> Date: Tue, 5 Dec 2023 11:28:51 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2 1/3] ufs: core: Add CPU latency QoS support for ufs driver To: Bart Van Assche , "James E.J. Bottomley" , "Martin K. Petersen" , Peter Wang , Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Matthias Brugger" , AngeloGioacchino Del Regno , CC: Alim Akhtar , Avri Altman , , , , , , , , Nitin Rawat References: <20231204143101.64163-1-quic_mnaresh@quicinc.com> <20231204143101.64163-2-quic_mnaresh@quicinc.com> <590ade27-b4da-49be-933b-e9959aa0cd4c@acm.org> Content-Language: en-US From: Naresh Maramaina In-Reply-To: <590ade27-b4da-49be-933b-e9959aa0cd4c@acm.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 94TVaSz2EVX3106dVDD8YYFE_UR_i5ND X-Proofpoint-GUID: 94TVaSz2EVX3106dVDD8YYFE_UR_i5ND X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-05_03,2023-12-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 spamscore=0 clxscore=1015 adultscore=0 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312050048 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 22:00:01 -0800 (PST) On 12/5/2023 12:30 AM, Bart Van Assche wrote: > On 12/4/23 06:30, Maramaina Naresh wrote: >> +    u32    (*config_qos_vote)(struct ufs_hba *hba); > > Please remove the above callback since this patch series does not > introduce any instances of this callback. > Sure Bart, i will take care of this comment in next patch set. If some SoC vendor have a different qos vote value then this callback can be added in future. >> + >> +    /* This capability allows the host controller driver to use the >> PM QoS >> +     * feature. >> +     */ >> +    UFSHCD_CAP_PM_QOS                = 1 << 13, >>   }; > > Why does it depend on the host driver whether or not PM QoS is > enabled? Why isn't it enabled unconditionally? For some platform vendors power KPI might be more important than random io KPI. Hence this flag is disabled by default and can be enabled based on platform requirement. > >> + * @pm_qos_req: PM QoS request handle >> + * @pm_qos_init: flag to check if pm qos init completed >>    */ > > Documentation for pm_qos_init is missing. > Sorry, i didn't get your comment, i have already added documentation for @pm_qos_init, @pm_qos_req variable as above. Do you want me to add this information some where else as well? >>   struct ufs_hba { >>       void __iomem *mmio_base; >> @@ -1076,6 +1089,9 @@ struct ufs_hba { >>       struct ufs_hw_queue *uhq; >>       struct ufs_hw_queue *dev_cmd_queue; >>       struct ufshcd_mcq_opr_info_t mcq_opr[OPR_MAX]; >> +    struct pm_qos_request pm_qos_req; >> +    bool pm_qos_init; >> +    u32 qos_vote; > > Please rename "pm_qos_init" into "pm_qos_initialized". > Sure Bart, i will take care of this comment in next patch set. > Thanks, > > Bart. > Thanks, Naresh.