Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1871452pxb; Fri, 5 Feb 2021 03:41:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGdUPN4yhvZfwpej0HSPeUByqarNQ0AACRHeft32g3pUWj86v/XQ9ZkPL/TF6oWAq2jfFb X-Received: by 2002:a17:906:e104:: with SMTP id gj4mr3623489ejb.349.1612525264998; Fri, 05 Feb 2021 03:41:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612525264; cv=none; d=google.com; s=arc-20160816; b=rL6B4dacAFnCe6Zt/hGVnCnML7vX7bH/le2jqdxgsSh/EbuixVQJoBsqkdBAHJQrPh RtdoMiqnhbxAEIXYsqqVJHiQDJpjCgaKuQL+XDqCPyG2vbLeBzY9AUOwtREWhqpB73Yr 9DWPbO6YOvyhj7JVI8frYvFgTZs5YVQTZdJDfHZZ+3dXhPWLJxrSxDKBEkKW9NyJberH v1uD76TdttdIkb2x6S8y2MMzlHUVgi4dBRChkGTnnw1GeBw2vnZaGnQIKSgbELUSP9vJ 5IZ3gKIbCS6+6XKnCVxR65xZ+E4M+Fg/d1yBgOOB2FZuZHFDJVTK9D9ABLgAZfjLoRtl ntow== 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=KvkjREFnB7ZZLsFy2LdQDPIfvthhxo4Mnax/Ejh8xcw=; b=mzKQ6OU2txT1FjLOXJ8RXeau+Sve6obCM339GFj68sgw99kkRJY+iF8ojJKKui3oeJ 54WHrDquxYonSHWxQbwRXn4B/IjbOIn9/ybEFDuVQ4Et2TfLE782Kv5lH90T8y4bqMtZ 7pozXy5eiSFd8PrGrdVD+DESOwZmoqaTygHbqdGxnOE8l0MGshuXLTbSEDxmLhGaVfPm /xZaRkLAxAf2FRRldUEQbZ4KKlOxmZlSQZXEoewen+AM1XlXlNuPgprnnCxh9dzLSK8a iS79zMYIv4q7PpJ2ozWFVqtyUEh91P/K8aBmd+Kpm313LNKoaWN0545V3Mw3MK1jKlrO 8kTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="cPrqyn/8"; 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 g23si4928250ejf.749.2021.02.05.03.40.39; Fri, 05 Feb 2021 03:41:04 -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="cPrqyn/8"; 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 S231551AbhBELjQ (ORCPT + 99 others); Fri, 5 Feb 2021 06:39:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231756AbhBELhI (ORCPT ); Fri, 5 Feb 2021 06:37:08 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB61BC06178C; Fri, 5 Feb 2021 03:36:27 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id df22so8497394edb.1; Fri, 05 Feb 2021 03:36:27 -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=KvkjREFnB7ZZLsFy2LdQDPIfvthhxo4Mnax/Ejh8xcw=; b=cPrqyn/8pAeyh0nCMJQZ34Au7ooPvHq/hid7MG2LTlpfutMLJ0rUegURJVALyXK/gs Z6sCi6f6kWyhgLM+h7poEBIxasq3Eoqqz6UU7Mq3y1N9rLjP/Di7t/4aonOteSh5KTtH pCw4ataATzH5Xui181yq3guih0VRjyKJENqxxoA4pxG8NVl9aYTIwG4tuYXRjeT8nu5D feZ3ZElkTcq6jtGe9A1Itg6FBwNtmqoz5051byq11AEaYrrb1gjBR+Psti9E6TzI6rTk Q16AIM73inDrkG/iiCa3iFWX5hNhZnRiWvXBdrr3zM1JQuC3BKLXRRdqZgCISE69ByJO hFGA== 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=KvkjREFnB7ZZLsFy2LdQDPIfvthhxo4Mnax/Ejh8xcw=; b=hdegMr0ar5b4srS+T4w7lt9bEFqTmfYoFp7w9MTsE2WSd30eocv5t/P9FKXo/Gpu69 JwCaXAbPrDfkm2AypmST6riVQJFD2kedOmb589vXmi67Hg6g/EVeKSeoBMJZo95hzigT iKDmYH+ZpMu608ImTBTNT3K3doz2pagKbXpi0ADdEV6Uf572LG8OVOWHRXzDdFPPCTgf eEZsFkEjNwOd8mgWRaA4RVqfo9eompMQLh8k1hGQCTD0mNQcp72H16wvfijQdKTaADR7 VuV28P0h2PQBO4m0dbHVLUshAteL96laA6R1ZcoZjIuLKgxHaHHnOfjyfvLaO/MwvDzA jnlA== X-Gm-Message-State: AOAM533tzq0H1U6R8Ta4dDzTNcUDrujrOD4HS4In5vwVIMqbSQSlt73C hVZis2EWliO4arW+Yuzz73s= X-Received: by 2002:a05:6402:3553:: with SMTP id f19mr3099709edd.271.1612524986395; Fri, 05 Feb 2021 03:36:26 -0800 (PST) Received: from ubuntu-laptop (ip5f5bee1b.dynamic.kabel-deutschland.de. [95.91.238.27]) by smtp.googlemail.com with ESMTPSA id di27sm2002517edb.21.2021.02.05.03.36.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Feb 2021 03:36:25 -0800 (PST) Message-ID: 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:36:24 +0100 In-Reply-To: <20210202083007.104050-1-avri.altman@wdc.com> 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 Tue, 2021-02-02 at 10:29 +0200, Avri Altman wrote: > v1 -> v2: > - attend Greg's and Daejun's comments > - add patch 9 making host mode parameters configurable > - rebase on Daejun's v19 > > > The HPB spec defines 2 control modes - device control mode and host > control mode. In oppose to device control mode, in which the host > obey > 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