Wind River Support Network

HomeDefectsLIN7-2177
Not to be fixed

LIN7-2177 : intel-x86-64:qat openssl test failed

Created: Dec 2, 2014    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 7.0
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: BSP

Description

root@intel_shumway-2:/opt/wr-test/test_runner# /opt/wr-test/testcases/bts/qat_openssl/runtest.sh
######################################################### 
           Start qat_openssl testing      
######################################################### 
<<start sample code for user space>>
********************
root@intel_shumway-2:/opt/wr-test/test_runner# cp /etc/dh895xcc_qa_dev0.conf-openssl-proc /etc/dh895xcc_qa_dev0.conf

root@intel_shumway-2:/opt/wr-test/test_runner# systemctl restart qat_service
[ 1346.233453] device icp_dev1 is busy
root@intel_shumway-2:/opt/wr-test/test_runner# systemctl status -l qat_service
? qat_service.service - SYSV: modprobe the QAT icp_qa_al.ko, which loads dependant modules, before calling the user space utility to pass configuration parameters
   Loaded: loaded (/etc/init.d/qat_service)
   Active: active (exited) since Tue 2014-12-02 09:03:26 UTC; 1s ago
  Process: 3134 ExecStop=/etc/init.d/qat_service stop (code=exited, status=0/SUCCESS)
  Process: 3137 ExecStart=/etc/init.d/qat_service start (code=exited, status=0/SUCCESS)

Dec 02 09:03:26 intel_shumway-2 qat_service[3137]: There is 2 acceleration device(s) in the system:
Dec 02 09:03:26 intel_shumway-2 qat_service[3137]: icp_dev0 - type=dh895xcc, inst_id=0, node_id=0,  bdf=02:00:0, #accel=6, #engines=12, state=up
Dec 02 09:03:26 intel_shumway-2 qat_service[3137]: icp_dev1 - type=dh895xcc, inst_id=1, node_id=1,  bdf=82:00:0, #accel=6, #engines=12, state=up
Dec 02 09:03:26 intel_shumway-2 systemd[1]: Started SYSV: modprobe the QAT icp_qa_al.ko, which loads dependant modules, before calling the user space utility to pass configuration parameters.
<<end sample code for user space>>
********************
<<start openssl function test>>
********************
root@intel_shumway-2:/opt/wr-test/test_runner# /opt/openssl-qat/bin/openssl engine
(rsax) RSAX engine support
(rdrand) Intel RDRAND engine
(dynamic) Dynamic engine loading support
(4758cca) IBM 4758 CCA hardware engine support
(aep) Aep hardware engine support
(atalla) Atalla hardware engine support
(cswift) CryptoSwift hardware engine support
(chil) CHIL hardware engine support
(nuron) Nuron hardware engine support
(sureware) SureWare hardware engine support
(ubsec) UBSEC hardware engine support
(qat) Reference implementation of QAT crypto engine
(gost) Reference implementation of GOST engine
<<end openssl function test>>
********************
<<start cryptographic engine test>>
********************
root@intel_shumway-2:/opt/wr-test/test_runner# /opt/openssl-qat/bin/openssl speed -engine qat -evp aes-128-cbc -elapsed -asynch -batch 150 -num_ctx 2
can't use that engine
139774202414736:error:260B806D:engine routines:ENGINE_TABLE_REGISTER:init failed:eng_table.c:174:
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-128-cbc for 3s on 16 size blocks: [error] do_userStart() - : Failed to initialize proxy

Steps to Reproduce

wrlinux-7/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std --enable-parallel-pkgbuilds=30 --enable-jobs=30 --with-layer=wr-testing/bts-dev,wr-dpdk,wr-qat --with-template=feature/bts,feature/target-toolchain --enable-reconfig=yes


follow the qat readme 
Live chat
Online