Intel® QuickAssist Technology (Intel® QAT)
For questions and discussions related to Intel® QuickAssist Technology (Intel® QAT).
88 Discussions

QAT 4xxx (4942) Device Nodes Missing After Driver Load - Hardware Acceleration Fails in Container

yejn123
Beginner
1,604 Views

 

  1. ​Environment​
  • Host OS​​: Ubuntu 22.04 LTS

  • ​Kernel​​: 5.19.0-46-generic

  • Driver Version​​: QAT22.L.1.0.0-00001.tar.gz

  • ​Container Image​​: qat_crypto_base(OpenSSL 3.0 with QAT_Engine v2.0)

 

root@szns-p-se201-2-n2:~# lspci -nn | grep -E '8086:37c8|8086:19e2|8086:0435|8086:6f54|8086:4940|8086:4942'
f3:00.0 Co-processor [0b40]: Intel Corporation Device [8086:4942] (rev 40)
f7:00.0 Co-processor [0b40]: Intel Corporation Device [8086:4942] (rev 40)

root@szns-p-se201-2-n2:~# ls /dev/qat*
/dev/qat_adf_ctl /dev/qat_dev_processes

root@szns-p-se201-2-n2:~# adf_ctl status
Checking status of all devices.
There is 2 QAT acceleration device(s) in the system:
qat_dev0 - type: 4xxx, inst_id: 0, node_id: 0, bsf: 0000:f3:00.0, #accel: 1 #engines: 9 state: up
qat_dev1 - type: 4xxx, inst_id: 1, node_id: 0, bsf: 0000:f7:00.0, #accel: 1 #engines: 9 state: up

root@szns-p-se201-2-n2:~# docker run -it --cap-add=IPC_LOCK --security-opt seccomp=unconfined --security-opt apparmor=unconfined $(for i in `ls /dev/vfio/*`; do echo --device $i; done) --device /dev/qat_adf_ctl --device /dev/qat_dev_processes --device /dev/usdm_drv --cpuset-cpus 2-3 --env QAT_POLICY=1 --ulimit memlock=524288000:524288000 qat_crypto_base openssl speed -engine qatengine -elapsed -async_jobs 72 -multi 2 rsa2048
Forked child 0
Forked child 1
QAT_HW device not available & QAT_SW not enabled. Using OpenSSL_SW!
Engine "qatengine" set.
QAT_HW device not available & QAT_SW not enabled. Using OpenSSL_SW!
Engine "qatengine" set.
+DTP:2048:private:rsa:10
+DTP:2048:private:rsa:10
+R1:21558:2048:10.00
+DTP:2048:public:rsa:10
+R1:21989:2048:10.00
+DTP:2048:public:rsa:10
+R2:458028:2048:10.00
+R2:458339:2048:10.00
Got: +F2:2:2048:2198.900000:45833.900000 from 0
Got: +F2:2:2048:2155.800000:45802.800000 from 1
version: 3.0.16

ARG UBUNTU_BASE=ubuntu:22.04
FROM ${UBUNTU_BASE} AS builder

ARG OPENSSL_VERSION="openssl-3.0.16"
ARG QATLIB_VERSION="24.02.0"
ARG QAT_ENGINE_VERSION="v2.0.0"
ARG IPSEC_MB_VERSION="v2.0"
ARG IPP_CRYPTO_VERSION="v1.2.0"

......
# Building QAT Engine
WORKDIR /QAT_Engine
RUN ./autogen.sh && \
./configure \
--with-openssl_install_dir=/usr/local/ \
--with-qat-hw-dir=/usr/local/ \
--disable-qat_sw && \
make -j && make install -j

 

 

 

0 Kudos
1 Reply
DiegoV_Intel
Moderator
1,598 Views

Hi,


Can you share the reference document you are using for container deployment with QAT so that I can follow along?


Regards,

Diego V.


0 Kudos
Reply