summaryrefslogtreecommitdiffstats
path: root/recipes-extended
Commit message (Collapse)AuthorAgeFilesLines
* qat17: silence smp_processor_id() warningYongxin Liu2020-12-082-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following call trace by backporting patch from mainline kernel. BUG: using smp_processor_id() in preemptible [00000000] code: modprobe/956 caller is debug_smp_processor_id+0x17/0x20 CPU: 19 PID: 956 Comm: modprobe Tainted: G IO 5.10.0-rc4-yoctodev-standard #1 Hardware name: Intel Corporation S2600WFS/S2600WFS, BIOS SE5C620.86B.01.00.0694.120620170818 12/06/2017 Call Trace: dump_stack+0x60/0x76 check_preemption_disabled+0xc4/0xd0 debug_smp_processor_id+0x17/0x20 qat_rsa_init_tfm+0x1b/0x60 [intel_qat] crypto_akcipher_init_tfm+0x2c/0x30 crypto_create_tfm_node+0x5f/0x110 crypto_spawn_tfm2+0x34/0x60 pkcs1pad_init_tfm+0x1d/0x40 crypto_akcipher_init_tfm+0x2c/0x30 crypto_create_tfm_node+0x5f/0x110 crypto_alloc_tfm_node+0x6c/0xd0 crypto_alloc_akcipher+0x1f/0x30 public_key_verify_signature+0x7b/0x3e0 ? sha256_update+0x65/0xe0 ? sha256_final+0x65/0xb0 ? crypto_shash_finup+0x2c/0x90 ? __kmalloc+0x5c/0x550 x509_check_for_self_signed+0xad/0x100 x509_cert_parse+0x1aa/0x200 x509_key_preparse+0x26/0x1f0 asymmetric_key_preparse+0x50/0x80 key_create_or_update+0x1d0/0x520 regulatory_init+0x17d/0x265 [cfg80211] cfg80211_init+0x6b/0xd4 [cfg80211] ? 0xffffffffc131b000 do_one_initcall+0x51/0x210 ? kmem_cache_alloc_trace+0x32/0x500 do_init_module+0x62/0x270 load_module+0x268e/0x2850 __do_sys_finit_module+0xb1/0xf0 __x64_sys_finit_module+0x1a/0x20 do_syscall_64+0x38/0x50 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat17: set KBUILD_BUILTIN=1 when building kernel objectsYongxin Liu2020-11-252-0/+34
| | | | | | | | | | Add qat17_4.7.0-00006-overwrite-KBUILD_BUILTIN-in-kernel-s-Makefile.patch to fix QAT static library building issue with v5.10-rc1 or later, due to kernel commit 6212804f2d78 ("kbuild: do not create built-in objects for external module builds"). Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat17: fix wrong version string comparisonYongxin Liu2020-11-251-2/+5
| | | | | | | | | | Convert string to int to fix the following error: >>> "5.10" >= "5.5" False Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat17: fix the wrong header file when building with kernel v5.8Yongxin Liu2020-07-242-0/+36
| | | | | | | | | In kernel v5.8-rc1, commit 228c4f265c6e ("crypto: lib/sha1 - fold linux/cryptohash.h into crypto/sha.h"), cryptohash.h was moved and renamed to sha.h. Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat17: Remove pci_cleanup_aer_uncorrect_error_status() callYongxin Liu2020-06-012-0/+33
| | | | | | | | | | | AER errors are always cleared by the PCI core and drivers don't need to do it themselves. Reference: Linux kernel commit 62b36c3ea664 ("PCI/AER: Remove pci_cleanup_aer_uncorrect_error_status() calls") Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat: make do_fetch depend on kernel do_shared_workdirYunguo Wei2020-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the recipe qat17 was built, and kernel was re-configure(i.e set CONFIG_BACKTRACE_SELF_TEST=m), then rebuild the qat17 will trigger the following error: Exception: bb.process.ExecutionError: Execution of tmp-glibc/work/intel_x86_64-wrs-linux/qat17/4.7.0-00006-r0/temp/run.do_switch_to_skcipher_api.42824' failed with exit code 1: patching file quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 32 out of 32 hunks ignored – saving rejects to file quickassist/qat/drivers/crypto/qat/qat_common/qat_algs.c.rej patching file quickassist/qat/drivers/crypto/qat/qat_common/qat_crypto.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored – saving rejects to file quickassist/qat/drivers/crypto/qat/qat_common/qat_crypto.h.rej WARNING: exit code 1 from a shell command. This is due to inappropriate dependency, the qat reciepe is re-applying patch to the source code that do_patch has been executed. If virtual/kernel is changed, qat should build from code fetching rather than patching. Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com> Signed-off-by: Jun Miao <jun.miao@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat: Make it compatible with kernel 5.6Yongxin Liu2020-04-022-0/+105
| | | | | | | | | | | Add qat17_4.7.0-00006-make-it-compitable-with-kernel-5.6.patch when compiling qat with kernel 5.6. In the patch, replace struct timespec with y2038 safe struct timespec64. And add definition of CRYPTO_TFM_RES_BAD_KEY_LEN back for qat driver. Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat: Fix do_patch error in parallel buildingzeusYongxin Liu2020-01-201-2/+10
| | | | | | | | | | | | 1) When doing patch for qat, the variable KERNEL_VERSION may not be set yet, so qat17_4.7.0-00006-Switch-to-skcipher-API.patch cannot be applied. Add task dependency to fix it. 2) Changing SRC_URI may lead to "basehash value changed" error message. Doing patch in a separate function to avoid it. Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* zlib-qat: Upgrade to 0.4.10-003Yongxin Liu2020-01-161-6/+6
| | | | | Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat: Upgrade to qat17_4.7.0-00006Yongxin Liu2020-01-166-49/+1332
| | | | | | | | | | | | | | | | | | | | | | 1) Rebased patches: qat16_2.3.0-34-qat-remove-local-path-from-makefile.patch qat17_0.9.0-4-qat-add-install-target-and-add-folder.patch 2) Added patches: qat17_4.7.0-00006-Link-driver-with-object-files.patch qat17_4.7.0-00006-Switch-to-skcipher-API.patch qat17_4.7.0-00006-Drop-pr_warning-definition.patch 3) Remove duplicate firmware installation, since linux-firmware.bb in OE-Core will do it. 4) Remove qat17-src from PACKAGES due to duplicate packaging. 5) Use ${nonarch_base_libdir} to install firmware instead of using ${base_libdir}. Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat16: remove recipe for older version 2.5.0-80Tan, Raymond2018-09-052-399/+0
| | | | | | This patch removes the older version recipe for qat16 Signed-off-by: Tan, Raymond <raymond.tan@intel.com>
* qat16: depend on openssl10Anuj Mittal2018-09-051-1/+1
| | | | | | | | | | | | | | | | Fixes error: | Creating shared library cpa_sample_code_s.so | x86_64-poky-linux-gcc -m64 -march=nehalem -mtune=generic -mfpmath=sse -msse4.2 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/poky/build/tmp/work/intel_corei7_64-poky-linux/qat16/2.6.0-65-r0/recipe-sysroot -Wl,--hash-style=gnu -nostartfiles -nodefaultlibs -shared -Wl,-soname,cpa_sample_code_s.so -o cpa_sample_code_s.so -lc cpa_sample_code_utils.o cpa_sample_code_framework.o cpa_sample_code_main.o cpa_sample_code_crypto_utils.o cpa_sample_code_sym_perf.o cpa_sample_code_sym_perf_dp.o cpa_sample_code_rsa_perf.o cpa_sample_code_dsa_perf.o cpa_sample_code_ecdsa_perf.o cpa_sample_code_dh_perf.o cpa_sample_code_nrbg_perf.o cpa_sample_code_dc_utils.o cpa_sample_code_dc_dp.o cpa_sample_code_dc_2k.o cpa_sample_code_dc_stateful.o cpa_sample_code_zlib.o cpa_sample_code_ike_rsa_perf.o qae_mem_utils.o /poky/build/tmp/work/intel_corei7_64-poky-linux/qat16/2.6.0-65-r0/image/libicp_qa_al_s.so -L/Lib -lpthread -lcrypto -lrt | Creating executable cpa_sample_code | /poky/build/tmp/work/intel_corei7_64-poky-linux/qat16/2.6.0-65-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/8.2.0/ld: /home/anmitta2/work/poky/build/tmp/work/intel_corei7_64-poky-linux/qat16/2.6.0-65-r0/image/libicp_qa_al_s.so: undefined reference to `SHA_Init' | collect2: error: ld returned 1 exit status | /poky/build/tmp/work/intel_corei7_64-poky-linux/qat16/2.6.0-65-r0/QAT1.6/quickassist/build_system/build_files/OS/linux_common_user_space_rules.mk:88: recipe for target 'cpa_sample_code' failed | make[1]: *** [cpa_sample_code] Error 1 | make[1]: Leaving directory '/poky/build/tmp/work/intel_corei7_64-poky-linux/qat16/2.6.0-65-r0/QAT1.6/quickassist/lookaside/access_layer/src/sample_code/performance' | Makefile:158: recipe for target 'perf_user' failed Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* zlib-qat: add common zlib-qat.inc and zlib-qat shim version 0.4.10-001Tan, Raymond2018-09-046-76/+277
| | | | | | | | | | | | | | | This patch will do the following: 1) add zlib-qat.inc for common components across the zlib-qat shim version 0.4.7 and 0.4.10 2) add zlib-qat shim layer version 0.4.10-001, which works with QAT 1.7 hardware and uses the CMN driver(libusdm) provided by QAT17 package 3) inherit module.bbclass only in zlib-qat-0.4.7-002, which builds OOT kernel module (qat_mem.ko) 4) DEPENDS variable updated to respective zlib-qat shim version to respective QAT version; ver. 0.4.7-002 -> qat16, and ver. 0.4.10-001 -> qat17 Signed-off-by: Tan, Raymond <raymond.tan@intel.com>
* qat: install headers and qat_direct libraryTan, Raymond2018-08-231-0/+17
| | | | | | | | | - Install development headers for qat17 and static libraries for development usage. - Build and install qat_direct library Signed-off-by: Tan, Raymond <raymond.tan@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* openssl-qat: removeAnuj Mittal2018-07-1410-5258/+0
| | | | | | | | OpenSSL 1.1.0 (and beyond) now has async support for hardware accelerators, and with Intel(R) QuickAssist Technology engine now on github, standalone patches have been removed. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat: update to qat17_4.2.0-00012Tan, Raymond2018-07-101-2/+2
| | | | | | | - update qat17 version to 4.2.0-00012 Signed-off-by: Tan, Raymond <raymond.tan@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* qat: update to qat17_4.1.0-00022Tan, Raymond2018-06-076-214/+225
| | | | | | | | | | - update qat17 version to 4.1.0-00022 - update previous patch to redefine yocto specific kernel path - merge and clean up qat17.inc into bb file - patch cpa_sample_code to use static lib for linking - generate qat17-src package which contains full source Signed-off-by: Tan, Raymond <raymond.tan@intel.com>
* qat17: disable build for musl and x32Anuj Mittal2018-01-261-0/+2
| | | | | | | | | There're multiple issues with qat17 when compiled with musl or for x32. Disable the build for qat17 until those problems have been resolved. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
* qat16: fix build with musl and x32Anuj Mittal2018-01-262-1/+54
| | | | | | | | | | | | | | | | | | | | | | Make sure that the architecture dependent types are defined correctly. Prevents errors like: | quickassist/lookaside/access_layer/src/qat_direct/src/adf_user_ETring_mgr_dp.c: In function 'icp_adf_getQueueMemory': | quickassist/lookaside/access_layer/src/qat_direct/src/adf_user_ETring_mgr_dp.c:83:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | (((UARCH_INT)pRingHandle->ring_virt_addr) | ^ | quickassist/lookaside/access_layer/src/qat_direct/src/adf_user_ETring_mgr_dp.c:82:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] | *targetAddr = (Cpa32U*) | ^ | quickassist/lookaside/access_layer/src/qat_direct/src/adf_user_ETring_mgr_dp.c: In function 'icp_adf_getSingleQueueAddr': | quickassist/lookaside/access_layer/src/qat_direct/src/adf_user_ETring_mgr_dp.c:112:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] | (((UARCH_INT)pRingHandle->ring_virt_addr) | ^ Partially fixes [YOCTO #12121] Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
* qat: disable for 4.14 linux-intel kernelAnuj Mittal2018-01-262-0/+18
| | | | | | | | | This version of qat driver has not been tested with 4.14 kernel and results in compilation failures. Disable when building with 4.14.*. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
* qat: move patches to a single directoryAnuj Mittal2018-01-2615-66/+0
| | | | | | | | Right now, patches for the two supported drivers are in separate directories and duplicated. Move them to a single files/ dir. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
* qat: include qat17_1.0.3-42Syed Mohamad Fauzi, Syed Johan Arif2017-12-077-0/+360
| | | | | Signed-off-by: Syed Mohamad Fauzi, Syed Johan Arif <syed.johan.arif.syed.mohamad.fauzi@intel.com> Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
* Removal of meta-intel content to make meta-intel-qat standaloneSaul Wold2017-09-2628-0/+6710
Signed-off-by: Saul Wold <sgw@linux.intel.com>