Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1216372ybj; Thu, 7 May 2020 18:07:14 -0700 (PDT) X-Google-Smtp-Source: APiQypLfpjGUB0ZzfjazGF3HK33gmUza8hMuGun7Wq04IQMqlvoKv7VBPkL3n7G/6EvmhopcRkKm X-Received: by 2002:a50:9dc9:: with SMTP id l9mr127295edk.39.1588900034488; Thu, 07 May 2020 18:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588900034; cv=none; d=google.com; s=arc-20160816; b=t7uCjMAGP97RtYyLT9M3TnipJbAuGsFjPLo7n4Sgh4Rg7jFBYccnI/QNxhMpXibSBY e746Veiit8KOYj/HC2XF4N/MtyJDJfk6m1QnIKbdW6J18f96v8CjiN7NC4CnA6tUOu3G YkvR2l43mKJaXRSTNLq5UT5jVi8YEEHEt7eftoCib7umMn58PqWn8cA/uG5KGwOTwe8l ODUMZ/4bmEkHO1WG+2i/wZm1VR/8n7xHjx1ixMn8UecB6ZYSpDe2nZ1PSlcO91Uq4X0r eFF4KnoTl4+l5qOTSgwosjF/JL9KQSX4IH1z0KOuK24mfqoXkFtCoh1AOi57JakX9Enk 4Elw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=CdVlUxwo7cu5JapJM3IpDqoWtOxvT8VHoCz6wz28+XI=; b=abUwnnAjky6bEMnuqRpE7zStL+VGMXPrJFaorm7YoWfwKFhKRKBMSrIOGHwrz+Xul+ 4nbbn46N+ae4DgeayiEEfCyMSl3w6EiurYXp2Ybr+n8sZoTgeB4r7uCDTsDtVeCkdN9t mBjDAXhCxoibjHqcvErKTz83883V/88r9T1hhMhJbIoMmSkzHPjcU9otLAYxYLSM6mPB tU8T4jWBwEtfYeByT19C6J45tqIYYF78Xb0/ayFRTx8CtnbdOAdGM4zNObrNegA04a3D LXL4qELRW5T6PnDgO7e3oFr4wSyF58coyfzpGZMnDLGQ8s+HSf/cOQNPCluzSvVeB59q RAEg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d19si70938edz.214.2020.05.07.18.06.50; Thu, 07 May 2020 18:07:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726825AbgEHBFA (ORCPT + 99 others); Thu, 7 May 2020 21:05:00 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37105 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbgEHBE7 (ORCPT ); Thu, 7 May 2020 21:04:59 -0400 Received: by mail-pf1-f196.google.com with SMTP id d184so46481pfd.4; Thu, 07 May 2020 18:04:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=CdVlUxwo7cu5JapJM3IpDqoWtOxvT8VHoCz6wz28+XI=; b=l7yFqXsQ0acUmfUPzH1he53oxyb1A6+IzDk+0VBKpfKW+kF7XuCJxk7aJ6n+KPAikd hAVqd7BegdP4U4s0cvxfWsWCAXTwZZTlfiuLdaSC0XuspO+MNEsdBCs981KT1SVP2Wzv M6HA3A73Yrl5SKwPW7ufEKM3r1S3traPoJ/Wh7DoO8MMHa73EMpjHzQmZN6Ny+Jpc0/X ohFMIxrb+kGM4XgtPGBFjXRo9xQzV9wSKnt2vSQsJoYFT5btClJhFbMMEfywkW+97V3m 27t2CP3wLiOkY3fNW7j03VYhj0D68c1M2nZKZUBLi5YEcfEZ3jqAG7YGCI6uk9F/FRjI AEtQ== X-Gm-Message-State: AGi0PuYFygy4hyNIdpMvPf3OHO+fHbV3wwhIX0DsQSJkqbXlBlOC0pyX Xu2Af8VZqGUhS5P0p7z4pCB+KZGcMB9HpA== X-Received: by 2002:a62:7cca:: with SMTP id x193mr126058pfc.96.1588899897004; Thu, 07 May 2020 18:04:57 -0700 (PDT) Received: from ?IPv6:2601:647:4000:d7:8ce8:d4c:1f4f:21e0? ([2601:647:4000:d7:8ce8:d4c:1f4f:21e0]) by smtp.gmail.com with ESMTPSA id w2sm6022957pfc.194.2020.05.07.18.04.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 May 2020 18:04:56 -0700 (PDT) Subject: Re: [RESENT PATCH RFC v3 4/5] scsi: ufs: add unit and geometry parameters for HPB To: huobean@gmail.com, alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, tomas.winkler@intel.com, cang@codeaurora.org, rdunlap@infradead.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org References: <20200504142032.16619-1-beanhuo@micron.com> <20200504142032.16619-5-beanhuo@micron.com> From: Bart Van Assche Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywBfoYbtBkVoJ/jQsi2H0vBiiCOy fmxMHIPcYxaJdXxrOG2UO4B60Y/B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nEasxjM0PGeXK5hcZMT9Eo998alUfn5XU0RQDYdwp6/kMEXMdmT oH0F0xB3SQ8WVSXA9rrc4EBvZruWQ+5/zjVrhhfUAx12CzL4oQ9Ro2k45daYaonKTANYG22y //x8dLe2Fv1By4SKGhmzwH87uXxbTJAUxiWIi1np0z3/RDnoVyfmfbbL1DY7zf2hYXLLzsJR mSsED/1nlJ9Oq5fALdNEPgDyPUerqHxcmIub+pF0AzJoYHK5punqpqfGmqPbjxrJLPJfHVKy goMj5DlBMoYqEgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: Date: Thu, 7 May 2020 18:04:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200504142032.16619-5-beanhuo@micron.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-04 07:20, huobean@gmail.com wrote: > From: Bean Huo > > Add HPB related parameters introduced in Unit Descriptor and > Geometry Descriptor. > > Signed-off-by: Bean Huo > --- > drivers/scsi/ufs/ufs.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h > index 1f2d4b4950b8..6210e489d2ce 100644 > --- a/drivers/scsi/ufs/ufs.h > +++ b/drivers/scsi/ufs/ufs.h > @@ -219,6 +219,9 @@ enum unit_desc_param { > UNIT_DESC_PARAM_PHY_MEM_RSRC_CNT = 0x18, > UNIT_DESC_PARAM_CTX_CAPABILITIES = 0x20, > UNIT_DESC_PARAM_LARGE_UNIT_SIZE_M1 = 0x22, > + UNIT_DESC_PARAM_HPB_MAX_ACTIVE_REGIONS = 0x23, > + UNIT_DESC_PARAM_HPB_PIN_REGION_START_OFFSET = 0x25, > + UNIT_DESC_PARAM_HPB_NUM_PIN_REGIONS = 0x27, > }; > > /* Device descriptor parameters offsets in bytes*/ > @@ -304,6 +307,10 @@ enum geometry_desc_param { > GEOMETRY_DESC_PARAM_ENM4_MAX_NUM_UNITS = 0x3E, > GEOMETRY_DESC_PARAM_ENM4_CAP_ADJ_FCTR = 0x42, > GEOMETRY_DESC_PARAM_OPT_LOG_BLK_SIZE = 0x44, > + GEOMETRY_DESC_PARAM_HPB_REGION_SIZE = 0x48, > + GEOMETRY_DESC_PARAM_HPB_NUMBER_LU = 0x49, > + GEOMETRY_DESC_PARAM_HPB_SUBREGION_SIZE = 0x4A, > + GEOMETRY_DESC_PARAM_HPB_MAX_ACTIVE_REGIONS = 0x4B, > }; How about adding the names from the spec as a comment above the new constants, e.g. as follows? /* wHPBPinnedRegionStartIdx */ UNIT_DESC_PARAM_HPB_PIN_REGION_START_OFFSET = 0x25, Thanks, Bart.