Skip to contentSkip to conversation

crypto: qat - set deprecated capabilities as reserved

PATCH In review Giovanni Cabiddu 2 participants 2 messages May 30, 2023 – Jun 9, 2023

Subsystems (2)
lore
Share & tools
lore

Giovanni Cabiddu

author maintainer
#0 lore raw

PATCH 1/1 crypto: qat - set deprecated capabilities as reserved

From: Karthikeyan Gopal <[email protected]>

The LZS and RAND features are no longer available on QAT. Remove the definition of bit 6 (LZS) and bit 7 (RAND) in the enum that represents the capabilities and replace them with a comment mentioning that those bits are reserved.
Those bits shall not be used in future.

---
 drivers/crypto/intel/qat/qat_common/icp_qat_hw.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/crypto/intel/qat/qat_common/icp_qat_hw.h +1 -2
index 4042739bb6fa..a65059e56248 100644
@@ -87,8 +87,7 @@ enum icp_qat_capabilities_mask {
 	ICP_ACCEL_CAPABILITIES_AUTHENTICATION = BIT(3),
 	ICP_ACCEL_CAPABILITIES_RESERVED_1 = BIT(4),
 	ICP_ACCEL_CAPABILITIES_COMPRESSION = BIT(5),
-	ICP_ACCEL_CAPABILITIES_LZS_COMPRESSION = BIT(6),
-	ICP_ACCEL_CAPABILITIES_RAND = BIT(7),
+	/* Bits 6-7 are currently reserved */
 	ICP_ACCEL_CAPABILITIES_ZUC = BIT(8),
 	ICP_ACCEL_CAPABILITIES_SHA3 = BIT(9),
 	/* Bits 10-11 are currently reserved */
Signature · 1 line
2.40.1
maintainer
#1 lore raw
Quoted 8 lines · Giovanni Cabiddu

From: Karthikeyan Gopal <[email protected]>

The LZS and RAND features are no longer available on QAT. Remove the definition of bit 6 (LZS) and bit 7 (RAND) in the enum that represents the capabilities and replace them with a comment mentioning that those bits are reserved.
Those bits shall not be used in future.

Quoted 6 lines
---
 drivers/crypto/intel/qat/qat_common/icp_qat_hw.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt