Wind River Support Network

HomeDefectsLIN7-2176
Not to be fixed

LIN7-2176 : intel-x86-64: qat zlib 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/testcases/bts/qat_openssl# ./runtest.sh 
######################################################### 
           Start qat_openssl testing      
######################################################### 
<<start sample code for user space>>
********************
root@intel_shumway-2:/opt/wr-test/testcases/bts/qat_openssl# cp /etc/dh895xcc_qa_dev0.conf-openssl-proc /etc/dh895xcc_qa_dev0.conf

root@intel_shumway-2:/opt/wr-test/testcases/bts/qat_openssl# systemctl restart qat_service
[ 2117.401766] icp_qa_al err: adf_ctl_ioctl: Invalid IOCTL command specified(0xc0209500)
[ 2354.402857] Stopping all acceleration devices.
[ 2354.522882] Stopped AE 0
[ 2354.522953] Stopped AE 1
[ 2354.523019] Stopped AE 2
[ 2354.523086] Stopped AE 3
[ 2354.523155] Stopped AE 4
[ 2354.523222] Stopped AE 5
[ 2354.523289] Stopped AE 6
[ 2354.523358] Stopped AE 7
[ 2354.523426] Stopped AE 8
[ 2354.523494] Stopped AE 9
[ 2354.523561] Stopped AE 10
[ 2354.523632] Stopped AE 11
[ 2355.655090] Stopped AE 0
[ 2355.655163] Stopped AE 1
[ 2355.655232] Stopped AE 2
[ 2355.655300] Stopped AE 3
[ 2355.655367] Stopped AE 4
[ 2355.655436] Stopped AE 5
[ 2355.655503] Stopped AE 6
[ 2355.655573] Stopped AE 7
[ 2355.655640] Stopped AE 8
[ 2355.655710] Stopped AE 9
[ 2355.655778] Stopped AE 10
[ 2355.655851] Stopped AE 11
[ 2358.851608] Reading config file.
[ 2358.854606] Starting acceleration device icp_dev0.
[ 2358.854815] Resetting device icp_dev0
[ 2358.956750] qat_1_6_adf 0000:02:00.0: restoring config space at offset 0x3c (was 0x100, writing 0x10b)
[ 2358.956763] qat_1_6_adf 0000:02:00.0: restoring config space at offset 0x20 (was 0x4, writing 0xd0000004)
[ 2358.956770] qat_1_6_adf 0000:02:00.0: restoring config space at offset 0x18 (was 0x4, writing 0xd0040004)
[ 2358.956777] qat_1_6_adf 0000:02:00.0: restoring config space at offset 0x10 (was 0xc, writing 0xebe0000c)
[ 2358.956782] qat_1_6_adf 0000:02:00.0: restoring config space at offset 0xc (was 0x0, writing 0x10)
[ 2358.956788] qat_1_6_adf 0000:02:00.0: restoring config space at offset 0x4 (was 0x100000, writing 0x100006)
[ 2358.956814] qat_1_6_adf 0000:02:00.0: BAR 7: set to [mem 0xd0080000-0xd009ffff 64bit] (PCI address [0xd0080000-0xd009ffff])
[ 2358.956823] qat_1_6_adf 0000:02:00.0: BAR 9: set to [mem 0xd00a0000-0xd00bffff 64bit] (PCI address [0xd00a0000-0xd00bffff])
[ 2358.985776] qat_1_6_adf 0000:02:00.0: irq 90 for MSI/MSI-X
[ 2358.986476] qat_1_6_adf 0000:02:00.0: irq 91 for MSI/MSI-X
[ 2358.987200] qat_1_6_adf 0000:02:00.0: irq 92 for MSI/MSI-X
[ 2358.987958] qat_1_6_adf 0000:02:00.0: irq 93 for MSI/MSI-X
[ 2358.988694] qat_1_6_adf 0000:02:00.0: irq 94 for MSI/MSI-X
[ 2358.989432] qat_1_6_adf 0000:02:00.0: irq 95 for MSI/MSI-X
[ 2358.990184] qat_1_6_adf 0000:02:00.0: irq 96 for MSI/MSI-X
[ 2358.990922] qat_1_6_adf 0000:02:00.0: irq 97 for MSI/MSI-X
[ 2358.991628] qat_1_6_adf 0000:02:00.0: irq 98 for MSI/MSI-X
[ 2358.992373] qat_1_6_adf 0000:02:00.0: irq 99 for MSI/MSI-X
[ 2358.993101] qat_1_6_adf 0000:02:00.0: irq 100 for MSI/MSI-X
[ 2358.993872] qat_1_6_adf 0000:02:00.0: irq 101 for MSI/MSI-X
[ 2358.994584] qat_1_6_adf 0000:02:00.0: irq 102 for MSI/MSI-X
[ 2358.995325] qat_1_6_adf 0000:02:00.0: irq 103 for MSI/MSI-X
[ 2358.996075] qat_1_6_adf 0000:02:00.0: irq 104 for MSI/MSI-X
[ 2358.996825] qat_1_6_adf 0000:02:00.0: irq 105 for MSI/MSI-X
[ 2358.997560] qat_1_6_adf 0000:02:00.0: irq 106 for MSI/MSI-X
[ 2358.998305] qat_1_6_adf 0000:02:00.0: irq 107 for MSI/MSI-X
[ 2358.999055] qat_1_6_adf 0000:02:00.0: irq 108 for MSI/MSI-X
[ 2358.999809] qat_1_6_adf 0000:02:00.0: irq 109 for MSI/MSI-X
[ 2359.000525] qat_1_6_adf 0000:02:00.0: irq 110 for MSI/MSI-X
[ 2359.001269] qat_1_6_adf 0000:02:00.0: irq 111 for MSI/MSI-X
[ 2359.002012] qat_1_6_adf 0000:02:00.0: irq 112 for MSI/MSI-X
[ 2359.002757] qat_1_6_adf 0000:02:00.0: irq 113 for MSI/MSI-X
[ 2359.003473] qat_1_6_adf 0000:02:00.0: irq 114 for MSI/MSI-X
[ 2359.004238] qat_1_6_adf 0000:02:00.0: irq 115 for MSI/MSI-X
[ 2359.004975] qat_1_6_adf 0000:02:00.0: irq 116 for MSI/MSI-X
[ 2359.005718] qat_1_6_adf 0000:02:00.0: irq 117 for MSI/MSI-X
[ 2359.006438] qat_1_6_adf 0000:02:00.0: irq 118 for MSI/MSI-X
[ 2359.007178] qat_1_6_adf 0000:02:00.0: irq 119 for MSI/MSI-X
[ 2359.007940] qat_1_6_adf 0000:02:00.0: irq 120 for MSI/MSI-X
[ 2359.008681] qat_1_6_adf 0000:02:00.0: irq 121 for MSI/MSI-X
[ 2359.009403] qat_1_6_adf 0000:02:00.0: irq 122 for MSI/MSI-X
[ 2359.611095] Started AE 0
[ 2359.611162] Started AE 1
[ 2359.611226] Started AE 2
[ 2359.611290] Started AE 3
[ 2359.611354] Started AE 4
[ 2359.611419] Started AE 5
[ 2359.611483] Started AE 6
[ 2359.611547] Started AE 7
[ 2359.611610] Started AE 8
[ 2359.611675] Started AE 9
[ 2359.611739] Started AE 10
[ 2359.611813] Started AE 11
[ 2359.973724] Reading config file.
[ 2359.974398] Starting acceleration device icp_dev1.
[ 2359.974562] Resetting device icp_dev1
[ 2360.075974] qat_1_6_adf 0000:82:00.0: restoring config space at offset 0x3c (was 0x100, writing 0x10b)
[ 2360.075987] qat_1_6_adf 0000:82:00.0: restoring config space at offset 0x20 (was 0x4, writing 0xec000004)
[ 2360.075994] qat_1_6_adf 0000:82:00.0: restoring config space at offset 0x18 (was 0x4, writing 0xec040004)
[ 2360.076001] qat_1_6_adf 0000:82:00.0: restoring config space at offset 0x10 (was 0xc, writing 0xfbe0000c)
[ 2360.076007] qat_1_6_adf 0000:82:00.0: restoring config space at offset 0xc (was 0x0, writing 0x10)
[ 2360.076013] qat_1_6_adf 0000:82:00.0: restoring config space at offset 0x4 (was 0x100000, writing 0x100006)
[ 2360.076039] qat_1_6_adf 0000:82:00.0: BAR 7: set to [mem 0xec080000-0xec09ffff 64bit] (PCI address [0xec080000-0xec09ffff])
[ 2360.076048] qat_1_6_adf 0000:82:00.0: BAR 9: set to [mem 0xec0a0000-0xec0bffff 64bit] (PCI address [0xec0a0000-0xec0bffff])
[ 2360.110813] qat_1_6_adf 0000:82:00.0: irq 123 for MSI/MSI-X
[ 2360.111564] qat_1_6_adf 0000:82:00.0: irq 124 for MSI/MSI-X
[ 2360.112307] qat_1_6_adf 0000:82:00.0: irq 125 for MSI/MSI-X
[ 2360.113034] qat_1_6_adf 0000:82:00.0: irq 126 for MSI/MSI-X
[ 2360.113759] qat_1_6_adf 0000:82:00.0: irq 127 for MSI/MSI-X
[ 2360.114499] qat_1_6_adf 0000:82:00.0: irq 128 for MSI/MSI-X
[ 2360.115244] qat_1_6_adf 0000:82:00.0: irq 129 for MSI/MSI-X
[ 2360.115965] qat_1_6_adf 0000:82:00.0: irq 130 for MSI/MSI-X
[ 2360.116690] qat_1_6_adf 0000:82:00.0: irq 131 for MSI/MSI-X
[ 2360.117418] qat_1_6_adf 0000:82:00.0: irq 132 for MSI/MSI-X
[ 2360.118157] qat_1_6_adf 0000:82:00.0: irq 133 for MSI/MSI-X
[ 2360.118875] qat_1_6_adf 0000:82:00.0: irq 134 for MSI/MSI-X
[ 2360.119608] qat_1_6_adf 0000:82:00.0: irq 135 for MSI/MSI-X
[ 2360.120334] qat_1_6_adf 0000:82:00.0: irq 136 for MSI/MSI-X
[ 2360.121072] qat_1_6_adf 0000:82:00.0: irq 137 for MSI/MSI-X
[ 2360.121793] qat_1_6_adf 0000:82:00.0: irq 138 for MSI/MSI-X
[ 2360.122524] qat_1_6_adf 0000:82:00.0: irq 139 for MSI/MSI-X
[ 2360.123271] qat_1_6_adf 0000:82:00.0: irq 140 for MSI/MSI-X
[ 2360.124008] qat_1_6_adf 0000:82:00.0: irq 141 for MSI/MSI-X
[ 2360.124732] qat_1_6_adf 0000:82:00.0: irq 142 for MSI/MSI-X
[ 2360.125474] qat_1_6_adf 0000:82:00.0: irq 143 for MSI/MSI-X
[ 2360.126207] qat_1_6_adf 0000:82:00.0: irq 144 for MSI/MSI-X
[ 2360.126939] qat_1_6_adf 0000:82:00.0: irq 145 for MSI/MSI-X
[ 2360.127667] qat_1_6_adf 0000:82:00.0: irq 146 for MSI/MSI-X
[ 2360.128405] qat_1_6_adf 0000:82:00.0: irq 147 for MSI/MSI-X
[ 2360.129133] qat_1_6_adf 0000:82:00.0: irq 148 for MSI/MSI-X
[ 2360.129861] qat_1_6_adf 0000:82:00.0: irq 149 for MSI/MSI-X
[ 2360.130592] qat_1_6_adf 0000:82:00.0: irq 150 for MSI/MSI-X
[ 2360.131329] qat_1_6_adf 0000:82:00.0: irq 151 for MSI/MSI-X
[ 2360.132062] qat_1_6_adf 0000:82:00.0: irq 152 for MSI/MSI-X
[ 2360.132797] qat_1_6_adf 0000:82:00.0: irq 153 for MSI/MSI-X
[ 2360.133530] qat_1_6_adf 0000:82:00.0: irq 154 for MSI/MSI-X
[ 2360.134274] qat_1_6_adf 0000:82:00.0: irq 155 for MSI/MSI-X
[ 2360.924309] Started AE 0
[ 2360.924375] Started AE 1
[ 2360.924440] Started AE 2
[ 2360.924505] Started AE 3
[ 2360.924570] Started AE 4
[ 2360.924635] Started AE 5
[ 2360.924699] Started AE 6
[ 2360.924763] Started AE 7
[ 2360.924827] Started AE 8
[ 2360.924891] Started AE 9
[ 2360.924955] Started AE 10
[ 2360.925023] Started AE 11
root@intel_shumway-2:/opt/wr-test/testcases/bts/qat_openssl# 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 08:19:59 UTC; 1s ago
  Process: 4178 ExecStop=/etc/init.d/qat_service stop (code=exited, status=0/SUCCESS)
  Process: 4181 ExecStart=/etc/init.d/qat_service start (code=exited, status=0/SUCCESS)

Dec 02 08:19:58 intel_shumway-2 qat_service[4181]: Processing file: /etc/dh895xcc_qa_dev0.conf
Dec 02 08:19:58 intel_shumway-2 qat_service[4181]: Processing file: /etc/dh895xcc_qa_dev1.conf
Dec 02 08:19:59 intel_shumway-2 qat_service[4181]: There is 2 acceleration device(s) in the system:
Dec 02 08:19:59 intel_shumway-2 qat_service[4181]: icp_dev0 - type=dh895xcc, inst_id=0, node_id=0,  bdf=02:00:0, #accel=6, #engines=12, state=up
Dec 02 08:19:59 intel_shumway-2 qat_service[4181]: icp_dev1 - type=dh895xcc, inst_id=1, node_id=1,  bdf=82:00:0, #accel=6, #engines=12, state=up
Dec 02 08:19:59 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/testcases/bts/qat_openssl# /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/testcases/bts/qat_openssl# /opt/openssl-qat/bin/openssl speed -engine qat -evp aes-128-cbc -elapsed -asynch -batch 150 -num_ctx 2
engine "qat" set.
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-128-cbc for 3s on 16 size blocks: ioctl QAT_MEM_MALLOC(131040): Inappropriate ioctl for device
crypto_alloc_from_slab error, create_slab failed - memory allocation error
[speed_main] --- Failed to initialise cipher with EVP_DecryptInit_ex/EVP_EncryptInit_ex

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 --with-rcpl-version

follow the qat readme 
Live chat
Online