Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2917474rdb; Mon, 4 Dec 2023 11:00:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi27pKUlN3MDrMEUQerGKnDqFDcdkoy6Cusf618hyhITPRYGBrdJ8cQDrUbfR9kThp52Ya X-Received: by 2002:a17:90b:1a86:b0:286:a454:6b44 with SMTP id ng6-20020a17090b1a8600b00286a4546b44mr12513pjb.27.1701716449126; Mon, 04 Dec 2023 11:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701716449; cv=none; d=google.com; s=arc-20160816; b=Efa6yoGl1NaPk8ZDUhYZku68F7e/GoL6ic0COuypgdzkeq0pKIKr5fci9Tda3lDBZh FafZU0uo4FMlYPUMMiE5MafO3DQOKy4LSYp6vHcVCPUa7VnzSDlWmLMOs4eKmz5MSX/o aiTYeECTDuB/whosFaDw+GggoQpuf7/r8E9PrMVU2x0tfvj4TiMrZONSyk9tRzY0Rqwy du+/Da+77m++6R6+luJCF0w8rnUSu6DBsMhbxS70Kx/M5dpkah3lrxkBWVHXhOokpdw5 Up9Ys81KUImQn/GXX9fn0aK8+5V5mbbxyc3tEbTYSfdgASuQKvwuuIQWGM/QBiLR1e93 PFPg== 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; bh=N1TuqS/7C7MDnJYXgnCCq7sNkI/3dfj9oPHuyt6Lz0g=; fh=dKu+sYNrRtzeigjI6+9xwxaZGVwMHWXoZQNT94DkZaM=; b=nrIK7c4qG0YcNJhBitMei1fR6M9Fdsiw6+9ao8j6U8eOc5PhhFPFG14uhdan/R7IKd FXpebKkFqKg94RxtBrszx3Qw+U7SUjpLNNNv3LqdErdqpn+3ZesRKl6M0fv2PFDcHHsk mXyiNA7P9jiIga0aM8PNtfjehQJs6nGN9Ua5LdC/KdLtSrBbBLrq40CQF9uqMub6Ggpj nz/76I71OdT24I9cNIxmKvaC26KNf9cgSlRG8DjM07TXtazXRw7taVmjshDNzvzbLOCn 8SE+F4UFcNJeDFz7LrAiiMBpEQLkgk7KGlpIqGqIeyMgvCK7i6kg8sc8r37BakiJudCN 0CmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id mb14-20020a170903098e00b001d087d08161si3267980plb.32.2023.12.04.11.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 11:00:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 9E603802BD7D; Mon, 4 Dec 2023 11:00:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230432AbjLDTAf (ORCPT + 99 others); Mon, 4 Dec 2023 14:00:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbjLDTAd (ORCPT ); Mon, 4 Dec 2023 14:00:33 -0500 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A9F3D5; Mon, 4 Dec 2023 11:00:40 -0800 (PST) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1d001e4cf7cso19426805ad.2; Mon, 04 Dec 2023 11:00:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701716439; x=1702321239; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N1TuqS/7C7MDnJYXgnCCq7sNkI/3dfj9oPHuyt6Lz0g=; b=L50mEP/RjTLfGLZHinpsWm1fN2yS+mVPWeISYoi84N6RoRi97wZake/V2F0hDo9wsG ht38us+Z8QtgBY+S5US7wowkICCqkQ6tA9xTC/4iATiV55O6vLa1Z71EUponCII4dQ85 QWZ7QzxRE0ei7nrL+dprw4l4o+GrUahU3/dTChReab3/pjrznUGojVQ8cZYGUgGEA+Iz lG+dp1MhW/PtPNXgz5mTHsKEE5rETk1VoQE4nGnmP7rP+ncl9F9WGyHh5czGaTro3lO7 /Vm2E81mFfApXfXskdtf7QSZfF5flUGd9OfgwoCncBe4kg1srB8WKZ1kUcPwOFWYJnON Yslw== X-Gm-Message-State: AOJu0Yw4xl3SElhIUTjYAjdSuRfnXP9XT3kQ3aUhEib0UbmQQLHCkH69 azS0+8KWL2Md/3TfTFAnhj8= X-Received: by 2002:a17:902:e5c8:b0:1d0:7d9a:3bc3 with SMTP id u8-20020a170902e5c800b001d07d9a3bc3mr2090541plf.79.1701716439379; Mon, 04 Dec 2023 11:00:39 -0800 (PST) Received: from [10.46.23.145] ([156.39.10.100]) by smtp.gmail.com with ESMTPSA id i31-20020a63221f000000b005bd2b3a03eesm7940081pgi.6.2023.12.04.11.00.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 11:00:39 -0800 (PST) Message-ID: <590ade27-b4da-49be-933b-e9959aa0cd4c@acm.org> Date: Mon, 4 Dec 2023 11:00:36 -0800 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: Maramaina Naresh , "James E.J. Bottomley" , "Martin K. Petersen" , Peter Wang , Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Konrad Dybcio , Matthias Brugger , AngeloGioacchino Del Regno , chu.stanley@gmail.com Cc: Alim Akhtar , Avri Altman , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, quic_cang@quicinc.com, quic_nguyenb@quicinc.com, Nitin Rawat References: <20231204143101.64163-1-quic_mnaresh@quicinc.com> <20231204143101.64163-2-quic_mnaresh@quicinc.com> From: Bart Van Assche In-Reply-To: <20231204143101.64163-2-quic_mnaresh@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 11:00:46 -0800 (PST) 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. > + > + /* 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? > + * @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. > 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". Thanks, Bart.