Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1058291rdb; Wed, 6 Dec 2023 07:33:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiGNDhpJXgZ7XsO65rXpmduu3EO8XkSl70YgFAjef+6K6BEeUXd3cJb5wXgwriN/l0IHxh X-Received: by 2002:a05:6a20:a1a6:b0:18f:d275:9f33 with SMTP id r38-20020a056a20a1a600b0018fd2759f33mr973562pzk.119.1701876783577; Wed, 06 Dec 2023 07:33:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701876783; cv=none; d=google.com; s=arc-20160816; b=kraNXpC5PW7OECt82+zi7T8QFn2dGYoBkCY0GykEdV2jyJmy6RjXni/iNOkl/loOeH BYTGTL+g1NHnf2NmSUVswWVNN8yGQvJVPHZiE5HR4creTsXOkH9fltIIcyagEzRsvdNa V6vOREijN5MrQyFY46cj0W+VABPrjp+/qZ7r1lIB1MIgP3aVywqmJiQirMZR9qjeVJjo FNPV5CwatF4pDrlcVCkLrQeDMQf1eU3jZRsfX+aXT0kLSvXXMGGsAy9sUtSX2Azv6F2E McC1TMn1Uvkx1A5+E+q5hja5BLsho6jITdUagxKIRVI7yiUdEslHopJEQBJtsWk8GQuD Bk1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vPpu55CWctU5kwFhjf/7SlTo/I53ViTakRJXmAVb0e0=; fh=/QYiyRPsPa17C2v2F+w/y1ByTbTWNhIHTWCnQ1zg0to=; b=Wr3vd+5zkhR2Ww24dlT+eFKfxjsxrnAWdBjr1Mir+NsrwJGCXd0wbB2twyP1JMWlLh 3lluKpoMgTX6IgAN/ZxZIoLPdpr1SiQi3GQXtsBY49n+6olJQfmMQNqR4FIlb5Hs8mHG TFSXJmvrnXBCVH0KrYFYvP2bKJiQrhsn029Mrkzd5lQvKZBE8J8L+YVPhAA4MB+4UtD9 ktQcvb879F89m/pVkYaTGAWC39N6gAqDTrCgBjW5CXLgDi6GyWzkP1EkX/+5P9fAgYoL 9F0llID8E7l+UmjkWCFdr5uH/NFEbqllH8XzX+0zifHGJuJ79zy7uggqcWfaeu6lfSJE C2cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rGASEMZu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id m2-20020a632602000000b005c66368cfb2si65592pgm.451.2023.12.06.07.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 07:33:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rGASEMZu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DF29C80BA680; Wed, 6 Dec 2023 07:33:00 -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 S1379179AbjLFPcr (ORCPT + 99 others); Wed, 6 Dec 2023 10:32:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379142AbjLFPcq (ORCPT ); Wed, 6 Dec 2023 10:32:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38ED28F for ; Wed, 6 Dec 2023 07:32:53 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B75DC433C7; Wed, 6 Dec 2023 15:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701876772; bh=w1otnxj6ZQubR19XyLc2pJyxuUrOYv5s6Wn1rb3d1zM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rGASEMZu2w8Un5785u0aGDVqoWrEGsXz1MReexBAxddidRe4ZZe5zAr1Sm0k93D+u Ui2+j1KIQLPLlEMwubHnwKWoqH9i2LMROw+PNo+os8rAPeQ4hST37N62nDpHBIkPO4 uHH8Emz7IPGW/hZ6oLAl6gSzocpcZnFhp6YtRXrD5oszVH52J7j9aOgXwG0nWmcR3T k6K524JwL7SyQMLDxr20AN1PKLPXkVriRV40ck2DScbYe+1PPJuMSCQUvXO70HkFBw uGJnKtfwIFtCkPIEyrUnhg4Hi3AGxm9XoGnIVmFItvXFPxt/PpS5LdtUW6oEHHL6xL hEgUg9hmtXlZg== Date: Wed, 6 Dec 2023 21:02:42 +0530 From: Manivannan Sadhasivam To: Naresh Maramaina Cc: Bart Van Assche , "James E.J. Bottomley" , "Martin K. Petersen" , Peter Wang , Andy Gross , Bjorn Andersson , Konrad Dybcio , Matthias Brugger , AngeloGioacchino Del Regno , chu.stanley@gmail.com, 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 Subject: Re: [PATCH V2 1/3] ufs: core: Add CPU latency QoS support for ufs driver Message-ID: <20231206153242.GI12802@thinkpad> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Wed, 06 Dec 2023 07:33:01 -0800 (PST) On Wed, Dec 06, 2023 at 07:32:54PM +0530, Naresh Maramaina wrote: > > > 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. > If a vendor wants to disable this feature, then the driver has to be modified. That won't be very convenient. So either this has to be configured through sysfs or Kconfig if flexibility matters. - Mani > > > > > > > > > + * @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 > -- மணிவண்ணன் சதாசிவம்