]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: qat - fix "Full Going True" macro definition
authorSvyatoslav Pankratov <svyatoslav.pankratov@intel.com>
Thu, 15 Aug 2024 15:47:23 +0000 (16:47 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 24 Aug 2024 13:38:54 +0000 (21:38 +0800)
The macro `ADF_RP_INT_SRC_SEL_F_RISE_MASK` is currently set to the value
`0100b` which means "Empty Going False". This might cause an incorrect
restore of the bank state during live migration.

Fix the definition of the macro to properly represent the "Full Going
True" state which is encoded as `0011b`.

Fixes: bbfdde7d195f ("crypto: qat - add bank save and restore flows")
Signed-off-by: Svyatoslav Pankratov <svyatoslav.pankratov@intel.com>
Reviewed-by: Xin Zeng <xin.zeng@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.h

index 8b10926cedbac2d507ce3fd3f0f16dcc8972bd45..e8c53bd76f1bd24b44fa78ee21021fcf88563f93 100644 (file)
@@ -83,7 +83,7 @@
 #define ADF_WQM_CSR_RPRESETSTS(bank)   (ADF_WQM_CSR_RPRESETCTL(bank) + 4)
 
 /* Ring interrupt */
-#define ADF_RP_INT_SRC_SEL_F_RISE_MASK BIT(2)
+#define ADF_RP_INT_SRC_SEL_F_RISE_MASK GENMASK(1, 0)
 #define ADF_RP_INT_SRC_SEL_F_FALL_MASK GENMASK(2, 0)
 #define ADF_RP_INT_SRC_SEL_RANGE_WIDTH 4
 #define ADF_COALESCED_POLL_TIMEOUT_US  (1 * USEC_PER_SEC)