intel / intel/QAT_Engine

cpa.h: No such file or directory

Open
#156 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
443
Forks
137
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have the C62X QAT coprocessor on my server -

$ lspci | grep -i "quick"
da:00.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology (rev 04)
db:00.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology (rev 04)
dc:00.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology (rev 04)
$

I am following the instructions at https://github.com/intel/QAT_Engine to try and build and use QAT but I'm running into issues.

I have two questions -

1) How can I obtain the USDM driver code? It doesn't seem to be present in the QAT_Engine github repo. Can you please point me to the right person/entity/process?

2) Where can I find the cpa.h file? It isn't present in the QAT_Engine repo. I tried building the qat_contig_mem driver. I ran into an error when trying to build it -

./arch/x86/include/asm/uaccess.h: In function ‘set_fs’:
./arch/x86/include/asm/uaccess.h:32:9: error: dereferencing pointer to incomplete type ‘struct task_struct’
current->thread.addr_limit = fs;
^~

Commenting out the line in the qat_contig_mem/qat_contig_mem.c file -

+//#include

allowed me to proceed with the make, and finally the contig_mem driver loaded -

$ lsmod | grep contig
qat_contig_mem 16384 0
$

Next, I attempted to build the QAT engine as described in the QAT_Engine repo README, but I run into this error -

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.tools -I/usr/local/ssl//include -I/home/neustar/vijay/qat/QAT_Engine//quickassist/include -I/home/neustar/vijay/qat/QAT_Engine//quickassist/include/lac -I/home/neustar/vijay/qat/QAT_Engine//quickassist/lookaside/access_layer/include -I/include -I//include -fPIC -Wall -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -DOPENSSL_ENABLE_QAT_UPSTREAM_DRIVER -DUSE_QAT_CONTIG_MEM -Iqat_contig_mem -DOPENSSL_QAT_OFFLOAD -DOPENSSL_ENABLE_QAT_RSA -DOPENSSL_ENABLE_QAT_CIPHERS -DOPENSSL_ENABLE_QAT_ECDH -DOPENSSL_ENABLE_QAT_ECDSA -DOPENSSL_ENABLE_QAT_DSA -DOPENSSL_ENABLE_QAT_DH -DOPENSSL_ENABLE_QAT_PRF -DOPENSSL_DISABLE_QAT_HKDF -DOPENSSL_ENABLE_QAT_ECX -DOPENSSL_DISABLE_VAES_GCM -DOPENSSL_DISABLE_MULTIBUFF_RSA -g -O2 -MT e_qat.lo -MD -MP -MF .deps/e_qat.Tpo -c e_qat.c -fPIC -DPIC -o .libs/e_qat.o
In file included from e_qat.c:86:0:
e_qat.h:55:12: fatal error: cpa.h: No such file or directory
# include "cpa.h"
^~~~~~~
compilation terminated.
Makefile:739: recipe for target 'e_qat.lo' failed

This has been referenced in an older github issue at https://github.com/intel/QAT_Engine/issues/27 , but no resolution was mentioned in that ticket.

Because of the two aforementioned issues (usdm and cpa.h and associated sources not available), I'm stuck and can't really proceed with QAT.

Can someone help me with this at the earliest? TIA!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.