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>] [day] [month] [year] [list]
Message-Id: <20230907101434.89-1-luhongfei@vivo.com>
Date:   Thu,  7 Sep 2023 18:13:59 +0800
From:   Lu Hongfei <luhongfei@...o.com>
To:     "Martin K. Petersen" <martin.petersen@...cle.com>,
        Bart Van Assche <bvanassche@....org>,
        Avri Altman <avri.altman@....com>,
        Bean Huo <beanhuo@...ron.com>, Can Guo <quic_cang@...cinc.com>,
        Asutosh Das <quic_asutoshd@...cinc.com>,
        Arthur Simchaev <Arthur.Simchaev@....com>,
        Lu Hongfei <luhongfei@...o.com>, linux-kernel@...r.kernel.org
Cc:     opensource.kernel@...o.com
Subject: [PATCH 1/3] ufs: add wb buffer resize related attr_idn and exception event mask values

UFS4.1 will support the WB buffer resize function, and UFS driver needs
to add definitions for attr_idn and exception event mask values related
to this function to support this feature.

Signed-off-by: Lu Hongfei <luhongfei@...o.com>
---
 include/ufs/ufs.h | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h
index 0cced88f4531..d9dca1b9eb08 100644
--- a/include/ufs/ufs.h
+++ b/include/ufs/ufs.h
@@ -179,7 +179,10 @@ enum attr_idn {
 	QUERY_ATTR_IDN_WB_BUFF_LIFE_TIME_EST    = 0x1E,
 	QUERY_ATTR_IDN_CURR_WB_BUFF_SIZE        = 0x1F,
 	QUERY_ATTR_IDN_EXT_IID_EN		= 0x2A,
-	QUERY_ATTR_IDN_TIMESTAMP		= 0x30
+	QUERY_ATTR_IDN_TIMESTAMP		= 0x30,
+	QUERY_ATTR_IDN_WB_BUF_RESIZE_HINT	= 0x3C,
+	QUERY_ATTR_IDN_WB_BUF_RESIZE_EN		= 0x3D,
+	QUERY_ATTR_IDN_WB_BUF_RESIZE_STATUS	= 0x3E
 };
 
 /* Descriptor idn for Query requests */
@@ -411,14 +414,15 @@ enum power_desc_param_offset {
 
 /* Exception event mask values */
 enum {
-	MASK_EE_STATUS			= 0xFFFF,
-	MASK_EE_DYNCAP_EVENT		= BIT(0),
-	MASK_EE_SYSPOOL_EVENT		= BIT(1),
-	MASK_EE_URGENT_BKOPS		= BIT(2),
-	MASK_EE_TOO_HIGH_TEMP		= BIT(3),
-	MASK_EE_TOO_LOW_TEMP		= BIT(4),
-	MASK_EE_WRITEBOOSTER_EVENT	= BIT(5),
-	MASK_EE_PERFORMANCE_THROTTLING	= BIT(6),
+	MASK_EE_STATUS			 = 0xFFFF,
+	MASK_EE_DYNCAP_EVENT		 = BIT(0),
+	MASK_EE_SYSPOOL_EVENT		 = BIT(1),
+	MASK_EE_URGENT_BKOPS		 = BIT(2),
+	MASK_EE_TOO_HIGH_TEMP		 = BIT(3),
+	MASK_EE_TOO_LOW_TEMP		 = BIT(4),
+	MASK_EE_WRITEBOOSTER_EVENT	 = BIT(5),
+	MASK_EE_PERFORMANCE_THROTTLING	 = BIT(6),
+	MASK_EE_WRITEBOOSTER_RESIZE_HINT = BIT(8),
 };
 #define MASK_EE_URGENT_TEMP (MASK_EE_TOO_HIGH_TEMP | MASK_EE_TOO_LOW_TEMP)
 
-- 
2.39.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ