Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3053627ybt; Mon, 29 Jun 2020 14:03:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBwXg5JRDWmfVVIaRsEyz1tLn0PQNsAVOJHdRm4EW6uoOMXrM7J2ofKB97xl1Bwe+XjUAa X-Received: by 2002:a17:906:408c:: with SMTP id u12mr10054488ejj.162.1593464605204; Mon, 29 Jun 2020 14:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593464605; cv=none; d=google.com; s=arc-20160816; b=NoM8rMWgVBvHp36KRK1rL6oUk40QxLQDaP9tVQdIT0GyH/aa7rjXg7DTzTsWZ0hkiq GePb297IKhGqt8woe6ZiBXecjLMrn7SXjvzCnZNnQqTCRToFntCZxzKCAa721T4PsjMU UnntedY8sH+brTwhRrrdKpzGivKvOUBKfd6v2e5RMB8jAZxw+Y+ZnbtBaiXQGRM1wiOd QhQN1QLqy+VwYbMNoSLYP2UBY+3ND98r5V53GeLUA7RUU5ZMSdvm4VBILwn6UlUyUsZa 2NJTYq9NZyVOIJCvuIF7LiuORehzZq8qUX6U743s9pltgY+vXtSXC4x8GVAvfznBXAMj anjQ== 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=FsOFBl0QB6zx23xfzrS8aK4P4neU3RbWXHogsiEZatw=; b=kNF9HKwhIbY4rMaaa6KSa15IaY9ozdPjo6ywb1hi2HywVwoaHyyBUurvGOsYGeHw7u w/PDXlWsALOp4g1saO3mNnMBgEBvKwfNVsOmiz/+jmmOBjzOGU/RNXyKVgNwdPBlJ2YD wZ4mHqN0kzxeEpjEeqpAmxpgYPGdQr7fMEJY7rxCmVZSv223FH8QRsRJmSwprm3tzraV G+T9XltQJL+LkhXjz+X1uu+CLY+iRe79RiEf858yAfwKvFQ/69PyWGYFj70YmzwDE8oE z0vXxq35nf1/biKX5CZWRuPXWh1GBsGnwAnQC1nU0TtOc9FLtnrjta9KbQgr64anO+7f V5TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MU7Kdc7O; 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 o3si493590ejm.346.2020.06.29.14.03.01; Mon, 29 Jun 2020 14:03:25 -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=MU7Kdc7O; 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 S1730926AbgF2VBu (ORCPT + 99 others); Mon, 29 Jun 2020 17:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731189AbgF2TM4 (ORCPT ); Mon, 29 Jun 2020 15:12:56 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FA82C008628; Mon, 29 Jun 2020 03:53:39 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id dg28so12426584edb.3; Mon, 29 Jun 2020 03:53:39 -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=FsOFBl0QB6zx23xfzrS8aK4P4neU3RbWXHogsiEZatw=; b=MU7Kdc7Ob8B8dy9hUmI+Fx+V7qhiDei7qidjsUhk5ObQFvrAweOE1oAePMdMe12OIw RHJItSD3Kx+9vbz7YpvR0/MDzAAwuTXYYcvFc+M/v/PKUkAuqwfj8qgMVegagkpSMMip l6Sg6Ho7t8QRcKtJkCVMFfMYd7qiw37ncToFKkG9j/68/RnjDRHTPhpWXNsdf/agthRQ LZ6aJjc2e+l14TJ2JgQZ4SPmVBYhZtPUo3etA8wMfl/L4L9SVsU7ujAKkdi0fhDB8yTX b3lL9V3RHy39yB6/Ak8Dr0rae09gSb2ka7ZmExRBBlpQOiwkB61vlq6jvRP5rxhiVfMf pOMw== 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=FsOFBl0QB6zx23xfzrS8aK4P4neU3RbWXHogsiEZatw=; b=cHy7h7fqk0Og7/Yp1xU4KpKcQfAT9NesMkk9eCGb9edIo++emGvKTmxA+LUm2+mcsF nTzTwd7kEs4sgmSiPEJX5FsOXyhTt/CIFM6gAI7jIro4KPgFiuOkU++f3ckcBZcufN2I Hrf7t7tVQw7uSMp3LG9ukOb1709xmsP7ai/qnC+L1o95hzhUpDcMIw2ijHSSN5VltaKz gGIrvIsjd0ed4pvM14MtQXnC07uBrYg7865FpuEnuA9YAwUqoK8he8TCCy3GxoUOFdsC CsToRvHziQqLubI/GNUKUO+MwCgmLEd1l03J0rIjB3vLoSJXgQQSUqq2ox0mynuRAN53 eKCw== X-Gm-Message-State: AOAM533h/d9StauF+ZVq96B0b39xb9gg74kIkaWQ0t3Xoz36N5SxRzJe T+nFWjigwiJwwdwMOZh8LH0= X-Received: by 2002:aa7:c545:: with SMTP id s5mr4897369edr.19.1593428018276; Mon, 29 Jun 2020 03:53:38 -0700 (PDT) Received: from ubuntu-laptop ([2a01:598:b88e:dd15:40fc:c0bc:1cfd:2755]) by smtp.googlemail.com with ESMTPSA id z20sm9708065edq.97.2020.06.29.03.53.35 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jun 2020 03:53:37 -0700 (PDT) Message-ID: <94775ad5c35b68d457fdca5a6c89908e227d14af.camel@gmail.com> 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 12:53:29 +0200 In-Reply-To: References: <963815509.21592879582091.JavaMail.epsvc@epcpadp2> <948f573d136b39410f7d610e5019aafc9c04fe62.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 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. Thanks, Bean