crypto: intel-fcs: crypto service driver for Intel SoCFPGA family
PATCH 1/2 crypto: intel-fcs: crypto service driver for Intel SoCFPGA family
From: Teh Wen Ping <[email protected]>
Support crypto services on Intel SoCFPGA platforms. The crypto services include security certificate, image boot validation, security key cancellation, get provision data, random number generation and secure data object storage services.
--- drivers/crypto/Kconfig | 11 + drivers/crypto/Makefile | 1 + drivers/crypto/intel_fcs.c | 726 +++++++++++++++++++++++++++ include/uapi/linux/intel_fcs-ioctl.h | 211 ++++++++ 4 files changed, 949 insertions(+) create mode 100644 drivers/crypto/intel_fcs.c create mode 100644 include/uapi/linux/intel_fcs-ioctl.h
drivers/crypto/Kconfig +11 -0
@@ -240,6 +240,17 @@ config CRYPTO_DEV_TALITOS2 Say 'Y' here to use the Freescale Security Engine (SEC) version 2 and following as found on MPC83xx, MPC85xx, etc ... +config CRYPTO_DEV_INTEL_FCS + tristate "Intel FPGA Crypto Service support" + depends on INTEL_STRATIX10_SERVICE + help + Support crypto services on Intel SoCFPGA platforms. The crypto + services include security certificate, image boot validation, + security key cancellation, get provision data, random number + generation and secure data object storage services. + + Say Y here if you want Intel FCS support + config CRYPTO_DEV_IXP4XX tristate "Driver for IXP4xx crypto hardware acceleration" depends on ARCH_IXP4XX && IXP4XX_QMGR && IXP4XX_NPE
drivers/crypto/Makefile +1 -0
@@ -18,6 +18,7 @@ obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_COMMON) += caam/ obj-$(CONFIG_CRYPTO_DEV_GEODE) += geode-aes.o obj-$(CONFIG_CRYPTO_DEV_HIFN_795X) += hifn_795x.o obj-$(CONFIG_CRYPTO_DEV_IMGTEC_HASH) += img-hash.o +obj-$(CONFIG_CRYPTO_DEV_INTEL_FCS) += intel_fcs.o obj-$(CONFIG_CRYPTO_DEV_IXP4XX) += ixp4xx_crypto.o obj-$(CONFIG_CRYPTO_DEV_MARVELL) += marvell/ obj-$(CONFIG_CRYPTO_DEV_MXS_DCP) += mxs-dcp.o
drivers/crypto/intel_fcs.c new file +726 -0
726 lines not on this page · raw message
include/uapi/linux/intel_fcs-ioctl.h new file +211 -0
211 lines not on this page · raw message
Signature · 1 line
2.25.1
kernel test robot
build botThank you for the patch! Yet something to improve:
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on herbert-cryptodev-2.6/master]
[also build test ERROR on herbert-crypto-2.6/master arm64/for-next/core linus/master v6.0-rc5 next-20220914] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/wen-ping-teh-intel-com/crypto-intel-fcs-Add-crypto-service-driver-for-Intel-SoCFPGA/20220914-224700 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20220915/[email protected]/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/4cdd20e357a4c52a9479852d5464147100813280
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review wen-ping-teh-intel-com/crypto-intel-fcs-Add-crypto-service-driver-for-Intel-SoCFPGA/20220914-224700 git checkout 4cdd20e357a4c52a9479852d5464147100813280
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
All errors (new ones prefixed by >>):
In file included from <built-in>:1:
>> ./usr/include/linux/intel_fcs-ioctl.h:40:2: error: unknown type name 'uint32_t'
uint32_t test_bit:1;
^
./usr/include/linux/intel_fcs-ioctl.h:41:2: error: unknown type name 'uint32_t'
uint32_t rsvd:31;
^
./usr/include/linux/intel_fcs-ioctl.h:56:2: error: unknown type name 'uint32_t'
uint32_t size;
^
./usr/include/linux/intel_fcs-ioctl.h:66:2: error: unknown type name 'uint32_t'
uint32_t size;
^
./usr/include/linux/intel_fcs-ioctl.h:79:2: error: unknown type name 'uint32_t'
uint32_t size;
^
./usr/include/linux/intel_fcs-ioctl.h:80:2: error: unknown type name 'uint32_t'
uint32_t c_status;
^
./usr/include/linux/intel_fcs-ioctl.h:92:2: error: unknown type name 'uint32_t'
uint32_t src_size;
^
./usr/include/linux/intel_fcs-ioctl.h:94:2: error: unknown type name 'uint32_t'
uint32_t dst_size;
^
./usr/include/linux/intel_fcs-ioctl.h:106:2: error: unknown type name 'uint32_t'
uint32_t src_size;
^
./usr/include/linux/intel_fcs-ioctl.h:108:2: error: unknown type name 'uint32_t'
uint32_t dst_size;
^
./usr/include/linux/intel_fcs-ioctl.h:116:2: error: unknown type name 'uint32_t'
uint32_t rndm[8];
^11 errors generated.
Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
kernel test robot
build botThank you for the patch! Yet something to improve:
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on herbert-cryptodev-2.6/master]
[also build test ERROR on herbert-crypto-2.6/master arm64/for-next/core linus/master v6.0-rc5 next-20220914] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/wen-ping-teh-intel-com/crypto-intel-fcs-Add-crypto-service-driver-for-Intel-SoCFPGA/20220914-224700 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220915/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/4cdd20e357a4c52a9479852d5464147100813280 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review wen-ping-teh-intel-com/crypto-intel-fcs-Add-crypto-service-driver-for-Intel-SoCFPGA/20220914-224700 git checkout 4cdd20e357a4c52a9479852d5464147100813280 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
All errors (new ones prefixed by >>):
In file included from <command-line>:
>> ./usr/include/linux/intel_fcs-ioctl.h:40:9: error: unknown type name 'uint32_t'
40 | uint32_t test_bit:1;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:41:9: error: unknown type name 'uint32_t'
41 | uint32_t rsvd:31;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:56:9: error: unknown type name 'uint32_t'
56 | uint32_t size;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:66:9: error: unknown type name 'uint32_t'
66 | uint32_t size;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:79:9: error: unknown type name 'uint32_t'
79 | uint32_t size;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:80:9: error: unknown type name 'uint32_t'
80 | uint32_t c_status;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:92:9: error: unknown type name 'uint32_t'
92 | uint32_t src_size;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:94:9: error: unknown type name 'uint32_t'
94 | uint32_t dst_size;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:106:9: error: unknown type name 'uint32_t'
106 | uint32_t src_size;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:108:9: error: unknown type name 'uint32_t'
108 | uint32_t dst_size;
| ^~~~~~~~
./usr/include/linux/intel_fcs-ioctl.h:116:9: error: unknown type name 'uint32_t'
116 | uint32_t rndm[8];
| ^~~~~~~~Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp