lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dbc1c3ffaf66ec41236365c5b259d948@codeaurora.org>
Date:   Mon, 13 Jul 2020 20:13:11 +0800
From:   Can Guo <cang@...eaurora.org>
To:     daejun7.park@...sung.com
Cc:     avri.altman@....com, jejb@...ux.ibm.com,
        martin.petersen@...cle.com, asutoshd@...eaurora.org,
        beanhuo@...ron.com, stanley.chu@...iatek.com, bvanassche@....org,
        tomas.winkler@...el.com, ALIM AKHTAR <alim.akhtar@...sung.com>,
        linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
        Sang-yoon Oh <sangyoon.oh@...sung.com>,
        Sung-Jun Park <sungjun07.park@...sung.com>,
        yongmyung lee <ymhungry.lee@...sung.com>,
        Jinyoung CHOI <j-young.choi@...sung.com>,
        Adel Choi <adel.choi@...sung.com>,
        BoRam Shin <boram.shin@...sung.com>
Subject: Re: [PATCH v6 1/5] scsi: ufs: Add UFS feature related parameter

On 2020-07-13 18:38, Daejun Park wrote:
> This is a patch for parameters to be used for UFS features layer and 
> HPB
> module.
> 
> Tested-by: Bean Huo <beanhuo@...ron.com>
> Signed-off-by: Daejun Park <daejun7.park@...sung.com>

Reviewed-by: Can Guo <cang@...eaurora.org>

> ---
>  drivers/scsi/ufs/ufs.h | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h
> index f8ab16f30fdc..ae557b8d3eba 100644
> --- a/drivers/scsi/ufs/ufs.h
> +++ b/drivers/scsi/ufs/ufs.h
> @@ -122,6 +122,7 @@ enum flag_idn {
>  	QUERY_FLAG_IDN_WB_EN                            = 0x0E,
>  	QUERY_FLAG_IDN_WB_BUFF_FLUSH_EN                 = 0x0F,
>  	QUERY_FLAG_IDN_WB_BUFF_FLUSH_DURING_HIBERN8     = 0x10,
> +	QUERY_FLAG_IDN_HPB_RESET                        = 0x11,
>  };
> 
>  /* Attribute idn for Query requests */
> @@ -195,6 +196,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_HPB_LU_MAX_ACTIVE_REGIONS	= 0x23,
> +	UNIT_DESC_HPB_LU_PIN_REGION_START_OFFSET	= 0x25,
> +	UNIT_DESC_HPB_LU_NUM_PIN_REGIONS	= 0x27,
>  	UNIT_DESC_PARAM_WB_BUF_ALLOC_UNITS	= 0x29,
>  };
> 
> @@ -235,6 +239,8 @@ enum device_desc_param {
>  	DEVICE_DESC_PARAM_PSA_MAX_DATA		= 0x25,
>  	DEVICE_DESC_PARAM_PSA_TMT		= 0x29,
>  	DEVICE_DESC_PARAM_PRDCT_REV		= 0x2A,
> +	DEVICE_DESC_PARAM_HPB_VER		= 0x40,
> +	DEVICE_DESC_PARAM_HPB_CONTROL		= 0x42,
>  	DEVICE_DESC_PARAM_EXT_UFS_FEATURE_SUP	= 0x4F,
>  	DEVICE_DESC_PARAM_WB_PRESRV_USRSPC_EN	= 0x53,
>  	DEVICE_DESC_PARAM_WB_TYPE		= 0x54,
> @@ -283,6 +289,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_HPB_REGION_SIZE		= 0x48,
> +	GEOMETRY_DESC_HPB_NUMBER_LU		= 0x49,
> +	GEOMETRY_DESC_HPB_SUBREGION_SIZE	= 0x4A,
> +	GEOMETRY_DESC_HPB_DEVICE_MAX_ACTIVE_REGIONS	= 0x4B,
>  	GEOMETRY_DESC_PARAM_WB_MAX_ALLOC_UNITS	= 0x4F,
>  	GEOMETRY_DESC_PARAM_WB_MAX_WB_LUNS	= 0x53,
>  	GEOMETRY_DESC_PARAM_WB_BUFF_CAP_ADJ	= 0x54,
> @@ -327,6 +337,7 @@ enum {
> 
>  /* Possible values for dExtendedUFSFeaturesSupport */
>  enum {
> +	UFS_DEV_HPB_SUPPORT		= BIT(7),
>  	UFS_DEV_WRITE_BOOSTER_SUP	= BIT(8),
>  };
> 
> @@ -537,6 +548,7 @@ struct ufs_dev_info {
>  	u8 *model;
>  	u16 wspecversion;
>  	u32 clk_gating_wait_us;
> +	u8 b_ufs_feature_sup;
>  	u32 d_ext_ufs_feature_sup;
>  	u8 b_wb_buffer_type;
>  	u32 d_wb_alloc_units;
> 
> base-commit: b53293fa662e28ae0cdd40828dc641c09f133405

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ