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

Intel Quick Assist Adapter 8950-SCCP

Huang1
Beginner
687 Views

I have a Intel Quick Assist Adapter 8950-SCCP (dh895xcc).

I can not find it's driver in intel site.

 

Intel® QuickAssist Technology Driver for Linux* – HW Version 1.X

Intel® QuickAssist Adapter Family for Servers

 

Can anyone give me some hint? thanks.

Labels (1)
  • .

0 Kudos
1 Solution
Ronny_G_Intel
Moderator
486 Views

Hi Huang1,


If QAT install was performed with intel_iommu=on and ./configure targeting PF use only:

This particular configuration is not valid since PFs are not able to be used when IOMMU is enabled.


Please refer to the following website for cpa_sample_code details:

https://intel.github.io/quickassist/GSG/2.X/sampleapplications.html#performance-sample-code


Note: Before running cpa_sample_code make sure QAT is properly configured, refer to: https://intel.github.io/quickassist/GSG/2.X/installation.html



Regards,

Ronny G


View solution in original post

0 Kudos
6 Replies
Ronny_G_Intel
Moderator
651 Views

Hi Huang1,


You may want to use the following driver: https://www.intel.com/content/www/us/en/download/19734/intel-quickassist-technology-driver-for-linux-hw-version-1-x.html

This driver should also work for DH8925, DH8926, DH8950 and DH8955.

There is more information available here: https://ark.intel.com/content/www/us/en/ark/products/codename/60172/products-formerly-coleto-creek.html please be aware that this product has been discontinued.


Regards,

Ronny G


0 Kudos
Huang1
Beginner
622 Views

Hi Ronny,

  Thanks your kindly support on QAT 8950.

 

I did this on ubuntu 2204, no error appears.

  1. ./configure --enable-icp-debug -enable-icp-log-syslog --enable-icp-dc-return-counters-on-error
  2. make && make install 
  3. make samples && make samples-install

 

And list it

#lspci -s 0b:00.0 -v
0b:00.0 Co-processor: Intel Corporation DH895XCC Series QAT
Subsystem: Intel Corporation DH895XCC Series QAT
Flags: bus master, fast devsel, latency 0, IRQ 40, IOMMU group 26
Memory at ea100000 (64-bit, prefetchable) [size=512K]
Memory at fcb40000 (64-bit, non-prefetchable) [size=256K]
Memory at fcb00000 (64-bit, non-prefetchable) [size=256K]
Capabilities: [b0] MSI: Enable- Count=1/1 Maskable+ 64bit+
Capabilities: [60] MSI-X: Enable+ Count=33 Masked-
Capabilities: [6c] Power Management version 3
Capabilities: [74] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [138] Alternative Routing-ID Interpretation (ARI)
Capabilities: [140] Single Root I/O Virtualization (SR-IOV)
Kernel driver in use: dh895xcc
Kernel modules: qat_dh895xcc

#lsmod | grep qat
qat_dh895xcc 20480 0
intel_qat 389120 2 usdm_drv,qat_dh895xcc
uio 28672 1 intel_qat

#systemctl status qat_service.service
● qat_service.service - LSB: modprobe the QAT modules, which loads dependant modules, before calling the user space utility to pass configuration parameters
Loaded: loaded (/etc/init.d/qat_service; generated)
Active: active (exited) since Wed 2024-06-12 20:18:32 CST; 13h ago
Docs: man:systemd-sysv-generator(8)
Process: 52444 ExecStart=/etc/init.d/qat_service start (code=exited, status=0/SUCCESS)
CPU: 1.042s

6月 12 20:18:31 jinhua-x570 systemd[1]: Starting LSB: modprobe the QAT modules, which loads dependant modules, before calling the user space utility to pass configuration parameters...
6月 12 20:18:31 jinhua-x570 qat_service[52493]: Restarting all devices.
6月 12 20:18:31 jinhua-x570 qat_service[52493]: Processing /etc/dh895xcc_dev0.conf
6月 12 20:18:32 jinhua-x570 qat_service[52495]: Checking status of all devices.
6月 12 20:18:32 jinhua-x570 qat_service[52495]: There is 1 QAT acceleration device(s) in the system:
6月 12 20:18:32 jinhua-x570 qat_service[52495]: qat_dev0 - type: dh895xcc, inst_id: 0, node_id: 0, bsf: 0000:0b:00.0, #accel: 6 #engines: 12 state: up
6月 12 20:18:32 jinhua-x570 systemd[1]: Started LSB: modprobe the QAT modules, which loads dependant modules, before calling the user space utility to pass configuration parameters.

 

 

But, when I run the sample code, there is error.

#./build/cpa_sample_code
Latency computation Disabled
qaeOpenFd:163 Memory file handle is not initialized. Initializing it now
qaeMemInit started
[error] SalCtrl_AdfServicesStartedCheck() - : Sal Ctrl failed to start in given time

[error] do_userStart() - : Failed to start services

/opt/qat/QAT.L.4.25.0-00001/quickassist/lookaside/access_layer/src/sample_code/performance/cpa_sample_code_main.c, main():486 Could not start sal for user space

 

Could you give me more advice on this? thank you.

 

0 Kudos
Ronny_G_Intel
Moderator
603 Views

Hi Huang1,


Are you enabling sriov? I dont think you are, you are using: ./configure --enable-icp-debug -enable-icp-log-syslog --enable-icp-dc-return-counters-on-error


This error usually happends when QAT install was performed with intel_iommu=on and ./configure --enable-icp-sriov=host – verify vfs are running:

To start vfs enter: # service qat_service_vfs start


To verify vfs are running enter: # service qat_service_vfs status


If QAT install was performed with intel_iommu=on and ./configure targeting PF use only:

This particular configuration is not valid since PFs are not able to be used when IOMMU is enabled.


Regards,

Ronny G


0 Kudos
Huang1
Beginner
579 Views

Hi Ronny G,

 

I did not enable sriov and set intel_iommu=on in ./configure step.

Actually I want to invest compression things on QAT 8950. 

Could you help me on configure it correctly?  Thank you.

0 Kudos
Ronny_G_Intel
Moderator
487 Views

Hi Huang1,


If QAT install was performed with intel_iommu=on and ./configure targeting PF use only:

This particular configuration is not valid since PFs are not able to be used when IOMMU is enabled.


Please refer to the following website for cpa_sample_code details:

https://intel.github.io/quickassist/GSG/2.X/sampleapplications.html#performance-sample-code


Note: Before running cpa_sample_code make sure QAT is properly configured, refer to: https://intel.github.io/quickassist/GSG/2.X/installation.html



Regards,

Ronny G


0 Kudos
Huang1
Beginner
426 Views

Hi Ronny_G,

 

Thanks your kindly help.

I performance the test on a Intel CPU (Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz) (previously on a AMD).

Configured as:

./configure --enable-icp-debug --enable-icp-dc-return-counters-on-error --enable-icp-dc-only

 

The samples_code works:

...

Inst 0, Affin: 0, Dev: 0, Accel 0, EE 0, BDF 03:00:00
Inst 1, Affin: 1, Dev: 0, Accel 0, EE 0, BDF 03:00:00
---------------------------------------
API Data_Plane
Session State STATELESS
Algorithm DEFLATE
Huffman Type DYNAMIC
Mode ASYNCHRONOUS
Direction DECOMPRESS
Packet Size 8192
Compression Level 2
Corpus CALGARY_CORPUS
Corpus Filename calgary
CNV Recovery Enabled YES
Number of threads 2
Total Responses 79200
Total Retries 53921
Clock Cycles Start 578758886892702
Clock Cycles End 578760025055418
Total Cycles 1138162716
CPU Frequency(kHz) 3696230
Throughput(Mbps) 16907
Compression Ratio 0.4112
---------------------------------------

Sample code completed successfully.

 

Thank you very much on QAT env setup.

I will invest on compression test.

This ticket can be closed. I will raise new if having problem on compression test.

0 Kudos
Reply