[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230907070439.1546-1-luhongfei@vivo.com>
Date: Thu, 7 Sep 2023 15:04:06 +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] scsi: ufs: core: 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