crypto: qat - change value of default idle filter
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Thu, 22 Jun 2023 09:26:35 +0000 (10:26 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 14 Jul 2023 08:23:14 +0000 (18:23 +1000)
The power management configuration of 4xxx devices is too aggressive
and in some conditions the device might be prematurely put to a low
power state.
Increase the idle filter value to prevent that.
In future, this will be set by firmware.

Fixes: e5745f34113b ("crypto: qat - enable power management for QAT GEN4")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Damian Muszynski <damian.muszynski@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h

index dd112923e006d0276ff24d53f8057079007de1d6..c2768762cca3b683513936bdd1be1d40586d4bdc 100644 (file)
@@ -35,7 +35,7 @@
 #define ADF_GEN4_PM_MSG_PENDING                        BIT(0)
 #define ADF_GEN4_PM_MSG_PAYLOAD_BIT_MASK       GENMASK(28, 1)
 
-#define ADF_GEN4_PM_DEFAULT_IDLE_FILTER                (0x0)
+#define ADF_GEN4_PM_DEFAULT_IDLE_FILTER                (0x6)
 #define ADF_GEN4_PM_MAX_IDLE_FILTER            (0x7)
 #define ADF_GEN4_PM_DEFAULT_IDLE_SUPPORT       (0x1)