Skip to content

QAT_HW does not work in OpenSSL-3.0.16. #351

@Taeil-Nam

Description

@Taeil-Nam

Hi team,

  • Version info

    • OS: Ubuntu 18.04 (Kernel version : 4.15.0-243-generic)
    • OpenSSL: 3.0.16
    • QAT Driver: QAT.L.4.27.0-00006
    • QAT Engine: v1.8.1
  • symptoms

    • QAT_HW is not operate in OpenSSL-3.0.16 with error below:
[DEBUG][329005.373283] PID [5509] Thread [7f63a7964780][qat_hw_ecx.c:194:qat_pkey_ecx_keygen()] QAT HW ECX Started
[DEBUG][329005.373293] PID [5509] Thread [7f63a7964780][qat_hw_ecx.c:259:qat_pkey_ecx_keygen()] EVP_PKEY_X25519
[WARN][329005.373297] PID [5509] Thread [7f63a7964780][qat_hw_init.c:314:get_instance()] No working instance is available
[DEBUG][329005.373301] PID [5509] Thread [7f63a7964780][qat_hw_init.c:318:get_instance()] inst type: ASYM, inst_num = -1
[WARN][329005.373306] PID [5509] Thread [7f63a7964780][qat_hw_ecx.c:301:qat_pkey_ecx_keygen()] Failed to get an instance

When I built QAT Engine, I configured as below:

./configure \
--with-qat_hw_dir=/mydirectory/ssl_qat/qat/ \
--with-openssl_dir=/mydirectory/openssl-3.0.16/ \
--with-openssl_install_dir=/mydirectory/ssl_qat \
--enable-qat_small_pkt_offload \
--disable-qat_hw_ciphers \
--disable-qat_hw_dh \
--disable-qat_hw_ecdh \
--disable-qat_hw_prf \
--disable-qat_hw_lenstra_protection \
--disable-qat_hw_dsa \
--disable-qat_hw_ecdsa \
--enable-qat_hw_rsa \
--enable-qat_provider \
--enable-qat_warnings \
--enable-qat_debug \
--with-qat_debug_file=/tmp/qat.log

Following is openssl info.

root# openssl version -a
QAT_HW RSA for Provider Enabled
QAT_HW ECX25519 for Provider Enabled
QAT_HW ECX448 for Provider Enabled
OpenSSL 3.0.16 11 Feb 2025 (Library: OpenSSL 3.0.16 11 Feb 2025)
built on: Tue Feb  3 00:24:26 2026 UTC
platform: linux-x86_64
options:  bn(64,64)
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG
OPENSSLDIR: "/mydirectory/ssl_qat/ssl"
ENGINESDIR: "/mydirectory/ssl_qat/lib/engines-3"
MODULESDIR: "/mydirectory/ssl_qat/lib/ossl-modules"
Seeding source: os-specific
CPUINFO: OPENSSL_ia32cap=0x7ffef3ffffebffff:0x21cbfbb
root# openssl list -providers
QAT_HW RSA for Provider Enabled
QAT_HW ECX25519 for Provider Enabled
QAT_HW ECX448 for Provider Enabled
Providers:
  default
    name: OpenSSL Default Provider
    version: 3.0.16
    status: active
  qatprovider
    name: QAT Provider for QAT_HW
    version: v1.8.1
    status: active

I attached the qat_debug file and dh895xcc_dev0.conf file.
qat_debug.txt
dh895xcc_dev0.conf.txt

I don't know the cause of this symptoms..
Could you please let me know the solution?

Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions