Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp995460rdb; Wed, 6 Dec 2023 06:05:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4zzgd+LHqt2D91fpQtGIZMkaq0GRoAPXwNed6PYXVUlL8UL7lgwCczKalDU6cJ07Iqsix X-Received: by 2002:a17:903:4281:b0:1d0:d168:daa9 with SMTP id ju1-20020a170903428100b001d0d168daa9mr631648plb.37.1701871556593; Wed, 06 Dec 2023 06:05:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701871556; cv=none; d=google.com; s=arc-20160816; b=TaHo3D1Qk/jPY3iFr+fHPpFq6ho0Q1nARjRp32ONrqgP0xmhnihxMdbM02ZR4y1kQR Tf89oQkkdT+WfIH2Y6ZsSD0bkMohp0/uXKXpvfPN1SlRbKs9KbYfVWvzlOcM1fySc7yy yNLGeSVQntOwsA5ri4rn58W/MOhSXtFKkzKoV2C79vwVwb4iBwlfpjf5O7q9pBrZ55eq AWVxGsKsXwbJzwl1dgX/qGIdCBWQT1msnkrt765vXi+MPhQlDNi737omakHYcjRl2O/1 uw5/Gy6UknwgQMmwbg4zaAbHFEehIzjvt3K3zMvapZznOGDbkrWkVvbb8MoW+hDraxw4 tewQ== 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=QG7okk0DW5cV2WX4FjsH7Jm7c1uVFG7K9CMd5t4kVqM=; fh=9MWEQ7cbZKADuAvSTdMV5tO/eM+Jn7z+SZeU1npe7AE=; b=WXjq7kG6hFh22p0lrAwBPzy0MVtsxoV9dVMm70wd1I3xa5Yd5WN/fuwx6VlG28WpWX O5+5lykO3QC6tiqMvkX9OdQ3HSfnwmIwu6pipKrKiaNF3ehGTvemXFxYTGApimAgP0r1 fQ+AAzW/2zSVjsjqXbq798olXa6fcK+6QRJbFQVTF6yC3juXAhiNpEAA/n5mZcTmZ7qK qWcwYlsOH6sFGhEy0oa+6k8MdhrlVSwZlL9As27m9TuHxHej2YWF+YQYhxj0VhtO/nES PL50dQnsWSh/5+3ZuPG0xBqO2sDXdXdfkFP58MApuuwTjoo3pqitQPwfXgbHAWumcmfc Hu/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="R/EGB0VQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id w12-20020a170902d3cc00b001d0513ec98csi9496455plb.224.2023.12.06.06.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:05:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="R/EGB0VQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 31A098086834; Wed, 6 Dec 2023 06:05:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378779AbjLFOFW (ORCPT + 99 others); Wed, 6 Dec 2023 09:05:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378713AbjLFOFV (ORCPT ); Wed, 6 Dec 2023 09:05:21 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB255D1; Wed, 6 Dec 2023 06:05:27 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B68bbfK026852; Wed, 6 Dec 2023 14:04:19 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=QG7okk0DW5cV2WX4FjsH7Jm7c1uVFG7K9CMd5t4kVqM=; b=R/EGB0VQNpyP9G8YGeD+aYjHJrPIZ87QLxDYt9FULf6eovzWHcl2GY1i0n2VDA/1UTjs 1QlfpucLmuR7ky+kKyqdCLOgeN0l2LZ2oFZIXMEFyrmxop3EgFqgGoma/dT+WiAlbKYR Ek2Yh33hMuvU4PiYFkhVAea0D2r2+hpI0f03DLa8AbIJzb/O50TsHHK/cym9sCFvVaT9 l5/+wSqbXa9Gonryq3rz5CUuOYGUeE1ycfUIG4OoY3lXpgzfG6LQYcvD8MVcvGT3NTSl UK4NyeTiwh/F/4wYDz0DncNzI/xrxNqBzoUCmBzgH33Ez/aE/GVXoP/nowRQLXuZyLDv xw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3utd1n1yy2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Dec 2023 14:04:19 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B6E4HoZ025004 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 6 Dec 2023 14:04:18 GMT Received: from [10.218.37.200] (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; Wed, 6 Dec 2023 06:02:57 -0800 Message-ID: Date: Wed, 6 Dec 2023 19:32:54 +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 Content-Language: en-US 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> <692cd503-5b14-4be6-831d-d8e9c282a95e@quicinc.com> <5e7c5c75-cb5f-4afe-9d57-b0cab01a6f26@acm.org> From: Naresh Maramaina In-Reply-To: <5e7c5c75-cb5f-4afe-9d57-b0cab01a6f26@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: jNdJXZIgOmEwSo1frEafsf1-O-ipzEFK X-Proofpoint-GUID: jNdJXZIgOmEwSo1frEafsf1-O-ipzEFK 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-06_10,2023-12-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 adultscore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312060113 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 06:05:40 -0800 (PST) On 12/5/2023 10:41 PM, Bart Van Assche wrote: > On 12/4/23 21:58, Naresh Maramaina wrote: >> On 12/5/2023 12:30 AM, Bart Van Assche wrote: >>> On 12/4/23 06:30, Maramaina Naresh wrote: >>>> +    /* 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. > > How about leaving this flag out unless if a host vendor asks explicitly > for this flag? IMHO, instead of completely removing this flag, how about having flag like "UFSHCD_CAP_DISABLE_PM_QOS" which will make PMQOS enable by default and if some host vendor wants to disable it explicitly, they can enable that flag. Please let me know your opinion. >>> >>>> + * @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? > > Oops, I meant 'qos_vote'. Sure. I'll take of this in next patchset. > > Thanks, > > Bart. > Thanks, Naresh