Jack Xu
9c0cef2364
crypto: qat - add gen4 firmware loader
...
Add support for the QAT gen4 devices in the firmware loader.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:55 +11:00
Jack Xu
2778d64cf3
crypto: qat - add support for broadcasting mode
...
Add support for broadcasting mode in firmware loader to enable the next
generation of QAT devices.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:55 +11:00
Jack Xu
244f572ceb
crypto: qat - allow to target specific AEs
...
Introduce new API, qat_uclo_set_cfg_ae_mask(), to allow the load of the
firmware image to a subset of Acceleration Engines (AEs). This is
required by the next generation of QAT devices to be able to load
different firmware images to the device.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:54 +11:00
Jack Xu
c4909d327c
crypto: qat - add wake up event to chip info
...
Add the wake up event to chip info since this value will be different
in the next generation of QAT devices.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:53 +11:00
Jack Xu
8b487ae26a
crypto: qat - add support for lm2 and lm3
...
Add support for local memory lm2 and lm3 which is introduced in the next
generation of QAT devices.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:52 +11:00
Jack Xu
97b9840195
crypto: qat - move defines to header files
...
Move the definition of ICP_QAT_AE_OFFSET, ICP_QAT_CAP_OFFSET,
LOCAL_TO_XFER_REG_OFFSET and ICP_QAT_EP_OFFSET from qat_hal.c to
icp_qat_hal.h to avoid the definition of generation specific constants
in qat_hal.c.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:50 +11:00
Jack Xu
8f87b6271e
crypto: qat - remove global CSRs helpers
...
Include the offset of GLOBAL_CSR directly into the enum hal_global_csr
and remove the macros SET_GLB_CSR/GET_GLB_CSR to simplify the global CSR
access.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:50 +11:00
Jack Xu
54fa5d4bf7
crypto: qat - introduce additional parenthesis
...
Introduce additional parenthesis to resolve a warninga reported by
checkpatch.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:49 +11:00
Jack Xu
49a6cccec4
crypto: qat - fix CSR access
...
Do not mask the AE number with the AE mask when accessing the AE local
CSRs. Bit 12 of the local CSR address is the start of AE number so just
take out the AE mask here.
Signed-off-by: Jack Xu <jack.xu@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-11-13 20:38:46 +11:00
Giovanni Cabiddu
1532e31f50
crypto: qat - convert to SPDX License Identifiers
...
Replace License Headers with SPDX License Identifiers.
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-06-18 17:19:44 +10:00
Pingchao Yang
b0272276d9
crypto: qat - add support for new devices to FW loader
...
FW loader updates for new qat devices
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2015-12-09 20:03:49 +08:00
Tadeusz Struk
b3416fb8a2
crypto: qat - Intel(R) QAT accelengine part of fw loader
...
This patch adds acceleration engine handler part the firmware loader.
Acked-by: Bo Cui <bo.cui@intel.com >
Reviewed-by: Bruce W. Allan <bruce.w.allan@intel.com >
Signed-off-by: Karen Xiang <karen.xiang@intel.com >
Signed-off-by: Pingchaox Yang <pingchaox.yang@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2014-06-20 21:26:17 +08:00