Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20132826rwd; Wed, 28 Jun 2023 20:48:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68DvBamRLVPurdg1zV2v8v+J764eXVWO1I3kh7vEmso6kQGm1XxjWLQMWzGdhBnSng0nIK X-Received: by 2002:a05:6359:60a:b0:134:c279:c821 with SMTP id eh10-20020a056359060a00b00134c279c821mr8001333rwb.28.1688010487660; Wed, 28 Jun 2023 20:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688010487; cv=none; d=google.com; s=arc-20160816; b=xtta1zXpSTN88+mgn5vkbpD/WBYhTEQF3TDu+luq73hbEVTXNmL6ZT/77aTM37dLmR /WyiRyGEFc2kW7J6WZlZWs/AouBYkboMwlsb13PeeYzssjzoLJKGCz3qiVJY81womAfV cYQKb7TYUeS0+AKl1t/1haPM3NiOpCejrgccSMWUzTxc3vGkYhEqaJdBA0ZGwAJ0hYqN OUIuvcvzzuhd62ydvj/UdirPYSfOpB24KaRnAS+1UmJaYdj3Vcx3x0tcpNGEKvmTstwV WN4+eTg2sNxCeTuT/SlLxq7u3eW9mzqFG8Cddc4FySCbyfXWJG3IPR0+Cb1kw3HtsySt cF+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :date:message-id:in-reply-to:cc:to:from:sender:reply-to:subject :mime-version:dkim-signature:dkim-filter; bh=u5DsHg6ggkF/1rIcP6TAqj75zRX9a4htppIh4mOdKpo=; fh=YjG+6X/EvV744emv8o1rIkSIbfBkpXn05z4vspZXAXQ=; b=bMxoWsryfZdcxmKcbFt8Gw4pgAobp1nUS0C7FWeyCQUr9TkCbOxPiKYD9qeH5pgU1y ceSaHcIrMH3DEyVh9x54a8hvXCdAodWKVa2f1cSWGxmpn6RW0GJqKXCuwKmhpxS0EOI3 PKB3s5HR9hAsLRH/hSXJWeQgOK+Oxct3cqCMQLvNtL+Awfm6HpIx7egCR5RJ5d2iH2Sq CeOydaUz0DKODa9zxCAKBpIKVtxgXi1nZOKvJRCbqZkJeqGo+mUVz2Qamuaksi8OyYvT pnKDVTFXC7wFuaLXnTFgkHZObY7DnMwDz0pBH2h9oMM5hyz5fwAvKmIALDHc5Uiigs5H EnMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=p8idRiEP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a170902e5c200b001b5118e7629si10472835plf.516.2023.06.28.20.47.56; Wed, 28 Jun 2023 20:48:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=p8idRiEP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231812AbjF2DdR (ORCPT + 99 others); Wed, 28 Jun 2023 23:33:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjF2DdK (ORCPT ); Wed, 28 Jun 2023 23:33:10 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85ADA271B for ; Wed, 28 Jun 2023 20:33:06 -0700 (PDT) Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230629033303epoutp01236b0dbb6446b4d7e59f827abedb472d~tA8XSyqzh1266212662epoutp01H for ; Thu, 29 Jun 2023 03:33:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230629033303epoutp01236b0dbb6446b4d7e59f827abedb472d~tA8XSyqzh1266212662epoutp01H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1688009583; bh=u5DsHg6ggkF/1rIcP6TAqj75zRX9a4htppIh4mOdKpo=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=p8idRiEPX6hYP2oqqWGm+6m8nfQ34BAibhoqSBXnBMaLmzKhWamh8qjGkUI9ACQCb SZUkSYVOPPNYneDb7G4Jb4QgZGi0kgxT0Inqr/TbRZJgqhHgYeFmWAnmA/prU3nSNz 3AOC8i7IQ7MJxQ4+e/c8D4y7lTpSueQCnZAdIQZQ= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20230629033302epcas2p33d0ba10ec94e85602736e0c461ff1e28~tA8Wrz7Pn1597615976epcas2p3h; Thu, 29 Jun 2023 03:33:02 +0000 (GMT) Received: from epcpadp4 (unknown [182.195.40.18]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Qs3tk5s9nz4x9Q0; Thu, 29 Jun 2023 03:33:02 +0000 (GMT) Mime-Version: 1.0 Subject: RE:(2) [PATCH] scsi: ufs: Optimize the WB flush process to save device power consumption Reply-To: j-young.choi@samsung.com Sender: Jinyoung CHOI From: Jinyoung CHOI To: Avri Altman , Lu Hongfei , ALIM AKHTAR , Bart Van Assche , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Asutosh Das , "Bao D. Nguyen" , Keoseong Park , Arthur Simchaev , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "opensource.kernel@vivo.com" , Tang Huan X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <1296674576.21688009582803.JavaMail.epsvc@epcpadp4> Date: Thu, 29 Jun 2023 12:11:52 +0900 X-CMS-MailID: 20230629031152epcms2p178df92a3dce855dca2c661bed5d2a272 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-CPGSPASS: Y X-CPGSPASS: Y X-Hop-Count: 3 X-CMS-RootMailID: 20230628110055epcas2p2c957a4a995635c8e9280958c9a34a8f6 References: <20230628070229.61855-1-luhongfei@vivo.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> >> In the original logic, WB Hibern Flush was always on. >> During suspend flow, the host will determine whether the device needs >> BKOP or WB flush, and if so, it will keep VCC supply. >> WB flush is only a part of BKOP, and device that needs BKOP do not >> necessarily need WB flush if the conditions are not met. Therefore, >> if WB flush is not needed, it will be better to disable WB Hibern >> Flush,..... >I beg to differ on this conclusion. >If you expect SLC write performance, without fluctuations, >the host should let the device manage its wb buffer on its own. >This is exactly what flush on hibernate does and better leave it be. > >Thanks, >Avri Hi, Lu Hongfei. I agree with avri. In fact, I am not sure if there will be a significant improvement in power consumption. In addition, for the toggle of the function, a code that compares with the existing value must be added to prevent unnecessary queries. Best Regards, Jinyoung.