Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1882922pxb; Fri, 5 Feb 2021 04:00:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSMo+SUVjKZPt2pqIisp3lKQEK6xhYl/2OhgGzuSPjB1i+S3akW7sauTpNDkJvnTXZ8TQC X-Received: by 2002:a05:6402:3494:: with SMTP id v20mr3294468edc.146.1612526442115; Fri, 05 Feb 2021 04:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612526442; cv=none; d=google.com; s=arc-20160816; b=mqjBCXTG84NsaxZhRqqj2dWQFm+94dJFi2f4tDbY8h3HZxYnfFX78FpLqtL0y/TALl X5K4VYPPb7aWem/5eyQiYbucjY57Aj1CSRapx5Zvl0A6h6bzJB8dxzb5bxFi+aERU3LA G43y1/3wApezRU6zaKqisbEvzfsIKle0Fdtk02m32nfE1FywhGjNLJzRBeTOsZ6adoso /iD9Pjju7fh2artOVS97v3v9NphyXc7QvC6/V9lwOZNkz3Fj3l13tdpJ2rA4Kv87yrp4 8VA6WCxgQtA1PbSEL1Kxaj98zthxKq2rJjvWw/u73gJukdiJa3c7+SqWDnz6lBAAfW/P 8oag== 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=7J7vBIegnlV9sASm56pPp++fG0Zc79ZZJaLOUVeal/M=; b=c0k8YXVijVn5Od3b7wfS9SD2/txj1EMrvcQ8QoUyu9S231OPQusUMPeK75fvSAyoiG 14tC+r1vEHGGAYHWvE8di70SWrHIcnfriecdW77TbkedlGMKv8h9EfFcBbwzIAXZrgVo 3Qrc9Oq412D3jSK8YLN3XUWSCKWsDTh0N/oH5amykcV29s/HSMbZTDxaFknoinu/HdLq iYeumqx+mSobsKIxogNU0xkL6hDA6yxFxAWiH0AAXyDRu9wx/pGBHFOuY8G6pZEP33lo 2tHgM+p8SIQFWlecjAv6XwQYcWYQnxx077fxs0mL/LEcJaG/a4JyD2VfhbHYAQ1fHBxE rKyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rdfZPg3T; 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 f11si5238137edd.393.2021.02.05.04.00.17; Fri, 05 Feb 2021 04:00:42 -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=rdfZPg3T; 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 S231152AbhBEL71 (ORCPT + 99 others); Fri, 5 Feb 2021 06:59:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbhBELoH (ORCPT ); Fri, 5 Feb 2021 06:44:07 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DDEAC0613D6; Fri, 5 Feb 2021 03:43:26 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id g10so8514895eds.2; Fri, 05 Feb 2021 03:43:26 -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=7J7vBIegnlV9sASm56pPp++fG0Zc79ZZJaLOUVeal/M=; b=rdfZPg3TfknpHei5fhpixTQWc1e6ZhPckXcxJ+UqDrr+ZR9wEJZtA1zxDEYU2xjN4j V8rH3KR4vHJuPgi8OFh9xFsT07ygRetdqgyirT8NSpB29EZwszjly7O/dS71w9SnTdoP UyhKz+xMblpo1JElidTLleIILjCi/Fxf1Knrbm1tgJ0UgvU8ZOKjDuX5x8kTOa3T7tUS G2ac9WfKbbXbWGod2L8MutAN2+I1CQVQ09VzLPnNkjLwqv0alaTRqwKFmSlIbDBovJF+ ImerFYpPgc5W+4fyR6qM8WV0n/ktUJ6xdbGfD+HAXrKXYpXwOhw0CvkIXFgb1hKIEBvz axtQ== 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=7J7vBIegnlV9sASm56pPp++fG0Zc79ZZJaLOUVeal/M=; b=uAE8NP/ddLHoe+tQD5ZBK6vlvW9U2dwiFjUuhBzuqBvQP9vmdN+VizlHcsTJA5dwTW idpYrl2SvxJPNtSnXWNvTyvHxnJW2kXMf0cUzzIR7HoF1/JH1EGy0lmh/P2dEj0ibMHG M6VF2v6LqOV5Cs+Pg9iduHs8km/TddUouZ5iTtVx0c1CbObUM+rburtWiVACN2zmGHBo DGJUuqnNszS8wKYaFBcVjTLOkABGGvJU5zuGbIaW8EAegLJf+TN0IugR07SEAM7WIY1z xi5/OcmbA5bjxzI1KgoaF6TaeQS0StKK57ojEDJkydPmrmwzMs8IvN+9qYr3ULaxnsEv DvYQ== X-Gm-Message-State: AOAM531951nah1QrNgTueb1BmLSk5Zst2KIAPvDxGvO0gekGt7RM1mqe y7GxN+xdk34tWomrOe9Ah8Q= X-Received: by 2002:aa7:ce96:: with SMTP id y22mr3103098edv.369.1612525405339; Fri, 05 Feb 2021 03:43:25 -0800 (PST) Received: from ubuntu-laptop (ip5f5bee1b.dynamic.kabel-deutschland.de. [95.91.238.27]) by smtp.googlemail.com with ESMTPSA id sb6sm3532201ejb.54.2021.02.05.03.43.24 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Feb 2021 03:43:24 -0800 (PST) Message-ID: <304cb44c67dc1d5fe081ea4450823c1c3b456284.camel@gmail.com> Subject: Re: [PATCH v2 0/9] Add Host control mode to HPB From: Bean Huo To: Avri Altman , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, Bart Van Assche , yongmyung lee , Daejun Park , alim.akhtar@samsung.com, asutoshd@codeaurora.org, Zang Leigang , Avi Shchislowski , Bean Huo , cang@codeaurora.org, stanley.chu@mediatek.com Date: Fri, 05 Feb 2021 12:43:23 +0100 In-Reply-To: References: <20210202083007.104050-1-avri.altman@wdc.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-02-05 at 12:36 +0100, Bean Huo wrote: > > to whatever recommendation received from the device - In host > > control > > mode, the host uses its own algorithms to decide which regions > > should > > be activated or inactivated. > > > > We kept the host managed heuristic simple and concise. > > > > Aside from adding a by-spec functionality, host control mode > > entails > > some further potential benefits: makes the hpb logic transparent > > and > > readable, while allow tuning / scaling its various parameters, and > > utilize system-wide info to optimize HPB potential. > > Hi Avri > In addition to the above advantage of HPB device mode, would you > please > share the performance comparison data with host mode? that will draw > more attention, since you mentioned "you tested on Galaxy S20, and > Xiaomi Mi10 pro", I think you have this kind of data. > > Your HPB host driver sits in the ufs driver. Since my HPB host mode > driver is also implemented in the UFS driver layer, I did test my HPB > driver between device mode and host mode. Saw there is an > improvement, > but not significant. If you can share your HPB drviver data, that > will > be awesome. > > Kind regards, > Bean So sorry, there are several typos, easily confused you. correct them as below: Hi Avri In addition to the above advantage of HPB "host control mode", would you please share the performance comparison data with "device control mode"? that will draw more attention, since you mentioned "you tested on Galaxy S20, and Xiaomi Mi10 pro", I think you have this kind of data. Your HPB "host control mode" driver sits in the ufs driver. Since my HPB "host control mode" driver is also implemented in the UFS driver layer, I did test my HPB driver between device mode and host mode. Saw UFS HPB "host control mode" driver has performance gain comparing to HPB "device control mode" driver, but not significant. If you can share your HPB host control mode drviver data, that will be awesome. Kind regards, Bean