From: Raj Ammanur Subject: Alg errors with Intel QAT Card Date: Fri, 9 Jun 2017 11:36:46 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To: Linux Crypto Mailing List Return-path: Received: from mail-ua0-f178.google.com ([209.85.217.178]:33289 "EHLO mail-ua0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751639AbdFISgr (ORCPT ); Fri, 9 Jun 2017 14:36:47 -0400 Received: by mail-ua0-f178.google.com with SMTP id 68so19456785uas.0 for ; Fri, 09 Jun 2017 11:36:47 -0700 (PDT) Sender: linux-crypto-owner@vger.kernel.org List-ID: Hi I am seeing the below errors after installing an Intel QAT card and loading the upstreamed qat_dh895xcc and intel_qat modules. Have others seen similar errors and know if this is a known issue and a fix exists or know whats going on ? This is with 4.12.0-rc4+ version of the kernel. Any help is sincerely appreciated. thanks --Raj [ 3.639046] dh895xcc 0000:00:0b.0: qat_dev0 started 12 acceleration engines [ 4.168887] alg: skcipher-ddst: Test 5 failed (invalid result) on encryption for qat_aes_cbc [ 4.217866] alg: skcipher-ddst: Chunk test 1 failed on encryption at page 0 for qat_aes_ctr [ 4.282042] alg: skcipher: Test 4 failed (invalid result) on encryption for qat_aes_xts [ 4.395210] alg: akcipher: test 1 failed for qat-rsa, err=-22 [root@dhcp-swlab-681 ~]# dmesg | grep -i alg [ 1.499336] alg: No test for pkcs1pad(rsa,sha256) (pkcs1pad(rsa-generic,sha256)) [ 2.562511] SELinux: Class alg_socket not defined in policy. [ 4.168887] alg: skcipher-ddst: Test 5 failed (invalid result) on encryption for qat_aes_cbc [ 4.217866] alg: skcipher-ddst: Chunk test 1 failed on encryption at page 0 for qat_aes_ctr [ 4.282042] alg: skcipher: Test 4 failed (invalid result) on encryption for qat_aes_xts [ 4.367682] alg: akcipher: encrypt test failed. Invalid output [ 4.395210] alg: akcipher: test 1 failed for qat-rsa, err=-22 [ 4.431827] alg: dh: generate public key test failed. Invalid output [ 4.431829] alg: dh: test failed on vector 1, err=-22 83:00.0 Co-processor: Intel Corporation DH895XCC Series QAT Subsystem: Intel Corporation Device 0000 Physical Slot: 2 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-