Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3047155ybt; Mon, 29 Jun 2020 13:52:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxASWXUgvexxE5Mng96cUwUwCdPd6YbeYEKlmRzhmZJ2G1QIrPHateVq8GfuTfYhNWVq+H3 X-Received: by 2002:aa7:dcc8:: with SMTP id w8mr20085946edu.305.1593463943210; Mon, 29 Jun 2020 13:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593463943; cv=none; d=google.com; s=arc-20160816; b=jBf08vM15DYuSnCKGm2aBywKgr8H0CLxqC2nJ27Eft3uEXIimHyhyfRIVwIdm/+Hvf GfzTEm1ixE7MYStsY4g2gaOpJYhu3Kmc7NyfN0MnRj/SopRmVJxkFcq+3QWIXxzUDuvy /4oHQrX+7lFvlR4Y4dEndcz0MPgF+y9gokHkmD2xijU49PIiqzbfFMXYllQ9dFZMN3cx 3NDvDsBCWMZrz5tXifB4lS9PKAK6FcGITfbfoFaUht8Vv2S1+0D47NCFlVuPhWdOMptT 1N53VgsSmqjm7l69fFcQgea9OfzR+9aAujYBfbVpc7eYwaVRYNKBnvXXAhmS3wayn/XN hyVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=WTfHJ+utCfQx7YKFHmm/ny5jRigzHEJ9WNfHacuDI3w=; b=sqwVgYDX3sU5i3nj7WqSmulOOVFk2jHN0bNYyRdcn/2Pg2yg/8naUwgsuXyxoat4Db c0C855ToE8U7MzDDjC7h/B+i9/y12FSfN6L1imKm7pB6dxQTurz91LamaPY9DOjJDUgA q25cBMMPsSgd+0QQqrjTdRKxyZ7Vw8weingYEtIH1qyHiSEDa6x35xzMNroxD8eYiMfX AKeRBXCC2MFsBHWdxuQJCv0d9dMIwVbgkcI1D4ua7oM2J2eLM1Kj/pcff28c+CzrM9VT V8hcx8g3aeqylTvJOO9OAJcZXcH9udYFbv0d4Vmt7avWE8g7zK8eGoomh7NPt4iwF5MX bZoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KuLONa1c; 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 c22si368139edx.584.2020.06.29.13.52.00; Mon, 29 Jun 2020 13:52:23 -0700 (PDT) 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=KuLONa1c; 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 S2389708AbgF2UtY (ORCPT + 99 others); Mon, 29 Jun 2020 16:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731490AbgF2TNl (ORCPT ); Mon, 29 Jun 2020 15:13:41 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7AFC006975; Mon, 29 Jun 2020 04:39:48 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id z17so12532243edr.9; Mon, 29 Jun 2020 04:39:48 -0700 (PDT) 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=WTfHJ+utCfQx7YKFHmm/ny5jRigzHEJ9WNfHacuDI3w=; b=KuLONa1cg6xDZijoZAyKxcyxwV+Po09umfjENbkXy2SQ1ewe6l3vR65CViCuqAVg+f Am7bl4E2iF3CCZvx1CIttp2rMlDSmvSk+RY7EdB/B19nwOBe6+mlctraRZFqOmJIfVi4 UFzUnbVSgsdWZracchkgfWTVXaFQw3t3/V6kOT5q3uq8shEWN9q1UDn/O6/vWOb7TG1Y TgEa6MmvuDR8ODrzEm4zulGE770MCHN6/biEOF+Vp44E2o7fRnJzSYRjG/I2aJn1CqjF QftT1p4ra4ncA53JqbwkheY0KEDQoeBpjiOY5opm9kR4EATiBtvpCaOr1Lc28LRO9BDj 8MJw== 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=WTfHJ+utCfQx7YKFHmm/ny5jRigzHEJ9WNfHacuDI3w=; b=cficyTtPBLWT4lqOUIAtsUychOycaNrOovhp0y/X82PH8NCR/qXsdGoObTZ704/uu1 GllgX2EfLtpW8rhfP6uxvZ6sYcQCOjoDqUUUQG4g+KI2FDMGktz10vUmwV3jWiuaPsqY OmfXv+F6CiSs+pudbkJBtacEq5SsIqmr02AYEYQ1a+JHqeuJiBvEJeuLmYH9AkrmsbtC ulaQxT18tbWGD5aWS57P09XERDpGpFSqHOSno5DAlEz/oDaADOmC8wmcZ545yUglAJKF 3PzybN1qi58uvycUfqV1D/NMGQTXzGN56TcgxMmraLNjRtqT+1JAZcmiW+XAYl4KtguG LZRA== X-Gm-Message-State: AOAM5303keVJjvYwFfM7PRtteBMhv24MPpwjV+G53a5GePfwTBI0gDhR zTLqduZ02tktHoVL8PTx3fc= X-Received: by 2002:a50:d0cc:: with SMTP id g12mr17402310edf.57.1593430786919; Mon, 29 Jun 2020 04:39:46 -0700 (PDT) Received: from ubuntu-laptop ([2a01:598:b88e:dd15:40fc:c0bc:1cfd:2755]) by smtp.googlemail.com with ESMTPSA id v23sm27507658edr.94.2020.06.29.04.39.44 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jun 2020 04:39:46 -0700 (PDT) Message-ID: Subject: Re: [RFC PATCH v3 0/5] scsi: ufs: Add Host Performance Booster Support From: Bean Huo To: Avri Altman , "daejun7.park@samsung.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "bvanassche@acm.org" , "tomas.winkler@intel.com" , ALIM AKHTAR Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sang-yoon Oh , Sung-Jun Park , yongmyung lee , Jinyoung CHOI , Adel Choi , BoRam Shin Date: Mon, 29 Jun 2020 13:39:42 +0200 In-Reply-To: References: <963815509.21592879582091.JavaMail.epsvc@epcpadp2> <948f573d136b39410f7d610e5019aafc9c04fe62.camel@gmail.com> <94775ad5c35b68d457fdca5a6c89908e227d14af.camel@gmail.com> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-06-29 at 11:06 +0000, Avri Altman wrote: > > > > Hi Avri > > > > On Mon, 2020-06-29 at 05:24 +0000, Avri Altman wrote: > > > Hi Bean, > > > > > > > > Hi Daejun > > > > > > > > Seems you intentionally ignored to give you comments on my > > > > suggestion. > > > > let me provide the reason. > > > > > > > > Before submitting your next version patch, please check your > > > > L2P > > > > mapping HPB reqeust submission logical algorithem. I have did > > > > performance comparison testing on 4KB, there are about 13% > > > > performance > > > > drop. Also the hit count is lower. I don't know if this is > > > > related > > > > to > > > > your current work queue scheduling, since you didn't add the > > > > timer > > > > for > > > > each HPB request. > > > > > > In device control mode, the various decisions, > > > and specifically those that are causing repetitive evictions, > > > are made by the device. > > > Is this the issue that you are referring to? > > > > > > > For this device mode, if HPB mapping table of the active region > > becomes > > dirty in the UFS device side, there is repetitive inactive rsp, but > > it > > is not the reason for the condition I mentioned here. > > > > > As for the driver, do you see any issue that is causing > > > unnecessary > > > latency? > > > > > > > In Daejun's patch, it now uses work_queue, and as long there is new > > RSP of > > thesubregion to be activated, the driver will queue "work" to this > > work > > queue, actually, this is deferred work. we don't know when it will > > be > > scheduled/finished. we need to optimize it. > > But those "to-do" lists are checked on every completion interrupt and > on every resume. > Do you see any scenario in which the "to-be-activated" or "to-be- > inactivate" work is getting starved? > let me run more testing cases, will back to you if there is new updates. Thanks, Bean