Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6496495pxu; Thu, 24 Dec 2020 04:05:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxO/FNc+YKW3DBpbUq4dM4QdxYfxXs72BSDVcd+8g9HNlQHp20eR1UKF6VjEmSWHOSACb1R X-Received: by 2002:a17:906:1f8e:: with SMTP id t14mr28136997ejr.350.1608811519739; Thu, 24 Dec 2020 04:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608811519; cv=none; d=google.com; s=arc-20160816; b=wqSTPemfMRoguwiUrwBn8tlH/CH1wHfWvnuB4zkWNbaLa8Tj1rqaMTJ+4NtcHLzty3 uLWxMnpJp7qYkZq2u+nBMDaorTrw6AgKuqVXjIG6OBuhNLThTak1jKDfc25NOk3X73iR B1jeolRSy0AaVjqpoA7wRBo81BdQaMmZTGKnQ7hoIfOnU8je+uwvjwZgNv1jVIyIBNJl K84egSO4VhAk6hC+xU7o43qJjQq8L/grQlTGIbjkjAHJBbrYgLDfVBq7/g4KhAoIgt9u SwzFWlKNz5j9BKXRTPymBE6zuLml/UfNvx7bIZeY7QGc3YBIZhkRk48WtW8dQBvBd0Lq nZGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=yzsn8Vxs757yl7BHdUzFyubVzeoZHsr9IiDUX1zD8zc=; b=b0VDAWZrYMChhclwBxpaX/X5xyOETA4ja/MkUzeq1BpobezoV+8Jv5Lqcq5KOXLFC5 OAiKWqk254NxaiqRIF90RVIoQs0a+iT6iISsHhUY+u34OshjVjw34HSymeLKtJkx7xjG YWQwEDlmQ/HS6nvg32/7S9TuGPmpf2eS9Q8k3GV4aV4wKXv7qSh2dgbrR5AK0Dz1fCgg 6H3zqVqjp/i1hSf+714kv+p3mHBMMwzaxuP/PnongkWn74eQKat3mt2qRg7+EKGDYu5F ZtmMtE53ZK0wnFfgjdoQDqdTC0EwKoJoQztJHI0krlZCdXSwkAl+VFfmGdwP6I0NA2Jc cqkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FpJp+Ilh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si15330663edb.213.2020.12.24.04.04.56; Thu, 24 Dec 2020 04:05:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FpJp+Ilh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726931AbgLXMC2 (ORCPT + 99 others); Thu, 24 Dec 2020 07:02:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgLXMC1 (ORCPT ); Thu, 24 Dec 2020 07:02:27 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8EEC061794; Thu, 24 Dec 2020 04:01:47 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id cw27so1957686edb.5; Thu, 24 Dec 2020 04:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=yzsn8Vxs757yl7BHdUzFyubVzeoZHsr9IiDUX1zD8zc=; b=FpJp+IlhsmMdNnsUqF8aI4pdK4FqwjQh3HB1yyOQIt5Oo0ZFqETQgxAIFM75ALPYTC FvCI6KxRazcUKJc4c7WkI8DPN6DB+hJJdNJCddYF72hMQSFIuqNK9O62j7zRLj80BCLH ozLQeLNCX9wiChonQ+oaCk5T8vEUXITckpEqLJ951854ggOsigYdJXWWbrV6C9pJ1Emn g8WMns50PjTT0KBOneP7R7ulTEJccOt3fC93pewVXTJbouAgu/g/A/fUDnjLFXhbpYJo 2f5QQJa1ZuZLmzOFiMSNNIRfnsj39mZ7NuL1eui6Z2dfv/0vNVm96mrM8eF9z0hzBimw YSkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=yzsn8Vxs757yl7BHdUzFyubVzeoZHsr9IiDUX1zD8zc=; b=Uoi9j0qzgoCgWv0rpuydv21PPTBsw48CSEIhHZ+4MWe4xoFWzCLkf4weZ2dbIZ8ReP G8juTr637ZqpJGRSVTUWpZzgZz+kZYrfmwV9+BLbIz71PBydT883vWeKlRyPP8AE1SUy fB2ZeCHK1MR8wKD6QSBSeNlA66uUaSFP8GsMqB7DDIGActYzN9ANG4j2hRVIG0kAwQ/8 OQrWTvZfcVs6qXOgf5MIEZH0Ly210xshDOtBfv5O1xWi8mXeFssPtRTYc3glRSyOUf4Z 6ifGsEB1pYfXBYGODCb1/pp7qnC56wINpbJHEFxrcolr2do7T/T1/7VEoxpzeKzbC4rZ uCaQ== X-Gm-Message-State: AOAM533TncwtbVBTfeYOVLqkRc1y0oJVdVQVAu+2VD3AZOd3ugi9C4ot oDzZLbG66/c9/6WKbAaqKII= X-Received: by 2002:aa7:c2d8:: with SMTP id m24mr28190070edp.300.1608811306048; Thu, 24 Dec 2020 04:01:46 -0800 (PST) Received: from ubuntu-laptop (ip5f5bfce9.dynamic.kabel-deutschland.de. [95.91.252.233]) by smtp.googlemail.com with ESMTPSA id i13sm22800403edu.22.2020.12.24.04.01.43 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Dec 2020 04:01:45 -0800 (PST) Message-ID: <5eb12622222bd9ba5e705801a204f3160ba3966b.camel@gmail.com> Subject: Re: [PATCH v1] scsi: ufs-mediatek: Enable UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL From: Bean Huo To: Avri Altman , Stanley Chu , Can Guo Cc: "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" , "beanhuo@micron.com" , "asutoshd@codeaurora.org" , "matthias.bgg@gmail.com" , "bvanassche@acm.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kuohong.wang@mediatek.com" , "peter.wang@mediatek.com" , "chun-hung.wu@mediatek.com" , "andy.teng@mediatek.com" , "chaotian.jing@mediatek.com" , "cc.chou@mediatek.com" , "jiajie.hao@mediatek.com" , "alice.chao@mediatek.com" Date: Thu, 24 Dec 2020 13:01:43 +0100 In-Reply-To: References: <20201222072928.32328-1-stanley.chu@mediatek.com> <1608697172.14045.5.camel@mtkswgap22> <1608796334.14045.21.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-12-24 at 11:03 +0000, Avri Altman wrote: > > > Do you see any substantial benefit of having > > > fWriteBoosterBufferFlushEn > > > disabled? > > > > 1. The definition of fWriteBoosterBufferFlushEn is that host allows > > device to do flush in anytime after fWriteBoosterBufferFlushEn is > > set as > > on. This is not what we want. > > > > Just Like BKOP, We do not want flush happening beyond host's > > expected > > timing that device performance may be "randomly" dropped. > > Explicit flush takes place only when the device is idle: > if fWriteBoosterBufferFlushEn is set, the device is idle, and before > h8 received. > If a request arrives, the flush operation should be halted. > So no performance degradation is expected. Hi Stanley Avri's comment is correct, fWriteBoosterBufferFlushEn==1, device will flush only when it is in idle, once there is new incoming request, the flush will be suspended. You should be very careful when you want to skip this stetting of this flag. Bean