<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic cpa_sample code get err could not start sal for user space in Intel® QuickAssist Technology (Intel® QAT)</title>
    <link>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1693519#M630</link>
    <description>&lt;P&gt;OS: Ubuntu 22.04&lt;BR /&gt;Kernel: Linux 5.15.0-140-generic x86_64&lt;/P&gt;&lt;P&gt;Firmware: Intel QAT 8970&lt;BR /&gt;HW Driver:&amp;nbsp; Lastest HW 1.* for Linux ,which is&amp;nbsp;QAT.L.4.28.0-00004.tar.gz&lt;BR /&gt;Compile cmd:&amp;nbsp;./configure --enable-icp-debug --enable-icp-log-syslog --enable-icp-sriov=host --enable-icp-qat-dbg&lt;/P&gt;&lt;P&gt;Other info:&lt;/P&gt;&lt;P&gt;intel_iommu=on has been added into grub configuration and IOMMU and SRIOV has been enabled&amp;nbsp; from the output of dmesg ,shown as below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[ 1.152230] Kernel command line: BOOT_IMAGE=/vmlinuz-5.15.0-140-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro intel_iommu=on&lt;BR /&gt;[ 1.152287] DMAR: IOMMU enabled&lt;BR /&gt;[ 2.353764] DMAR-IR: IOAPIC id 8 under DRHD base 0x9b7fc000 IOMMU 9&lt;BR /&gt;[ 4.338312] iommu: Default domain type: Translated&lt;BR /&gt;[ 4.338312] iommu: DMA domain TLB invalidation policy: lazy mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VF has been created as :&lt;BR /&gt;root@qat:~# lspci -d 8086:37c9&lt;BR /&gt;cc:01.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.1 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.2 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.3 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.4 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.5 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.6 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.7 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.1 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.2 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.3 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.4 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.5 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.6 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.7 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tests failed when running cpa_sample_code even add root as groupmember of "qat":&lt;BR /&gt;root@qat:~# id root&lt;BR /&gt;uid=0(root) gid=0(root) groups=0(root),1001(qat)&lt;/P&gt;&lt;P&gt;root@qat:~# cpa_sample_code signOfLife=1&lt;BR /&gt;Latency computation Disabled&lt;BR /&gt;qaeOpenFd:162 Memory file handle is not initialized. Initializing it now&lt;BR /&gt;qaeMemInit started&lt;BR /&gt;/QAT/quickassist/lookaside/access_layer/src/sample_code/performance/cpa_sample_code_main.c, main():506 Could not start sal for user space&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 07:49:16 GMT</pubDate>
    <dc:creator>ZhichengCai</dc:creator>
    <dc:date>2025-05-30T07:49:16Z</dc:date>
    <item>
      <title>cpa_sample code get err could not start sal for user space</title>
      <link>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1693519#M630</link>
      <description>&lt;P&gt;OS: Ubuntu 22.04&lt;BR /&gt;Kernel: Linux 5.15.0-140-generic x86_64&lt;/P&gt;&lt;P&gt;Firmware: Intel QAT 8970&lt;BR /&gt;HW Driver:&amp;nbsp; Lastest HW 1.* for Linux ,which is&amp;nbsp;QAT.L.4.28.0-00004.tar.gz&lt;BR /&gt;Compile cmd:&amp;nbsp;./configure --enable-icp-debug --enable-icp-log-syslog --enable-icp-sriov=host --enable-icp-qat-dbg&lt;/P&gt;&lt;P&gt;Other info:&lt;/P&gt;&lt;P&gt;intel_iommu=on has been added into grub configuration and IOMMU and SRIOV has been enabled&amp;nbsp; from the output of dmesg ,shown as below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[ 1.152230] Kernel command line: BOOT_IMAGE=/vmlinuz-5.15.0-140-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro intel_iommu=on&lt;BR /&gt;[ 1.152287] DMAR: IOMMU enabled&lt;BR /&gt;[ 2.353764] DMAR-IR: IOAPIC id 8 under DRHD base 0x9b7fc000 IOMMU 9&lt;BR /&gt;[ 4.338312] iommu: Default domain type: Translated&lt;BR /&gt;[ 4.338312] iommu: DMA domain TLB invalidation policy: lazy mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VF has been created as :&lt;BR /&gt;root@qat:~# lspci -d 8086:37c9&lt;BR /&gt;cc:01.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.1 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.2 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.3 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.4 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.5 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.6 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:01.7 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.0 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.1 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.2 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.3 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.4 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.5 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.6 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;BR /&gt;cc:02.7 Co-processor: Intel Corporation C62x Chipset QuickAssist Technology Virtual Function (rev 04)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tests failed when running cpa_sample_code even add root as groupmember of "qat":&lt;BR /&gt;root@qat:~# id root&lt;BR /&gt;uid=0(root) gid=0(root) groups=0(root),1001(qat)&lt;/P&gt;&lt;P&gt;root@qat:~# cpa_sample_code signOfLife=1&lt;BR /&gt;Latency computation Disabled&lt;BR /&gt;qaeOpenFd:162 Memory file handle is not initialized. Initializing it now&lt;BR /&gt;qaeMemInit started&lt;BR /&gt;/QAT/quickassist/lookaside/access_layer/src/sample_code/performance/cpa_sample_code_main.c, main():506 Could not start sal for user space&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 07:49:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1693519#M630</guid>
      <dc:creator>ZhichengCai</dc:creator>
      <dc:date>2025-05-30T07:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: cpa_sample code get err could not start sal for user space</title>
      <link>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1694441#M631</link>
      <description>&lt;P&gt;Hi ZhichengCai,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following commands to check the system status and restart the QAT service:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# service qat_service_vfs status&lt;/P&gt;
&lt;P&gt;# service qat_service_vfs restart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned that you have already done it but can you please check file permissions again:&lt;/P&gt;
&lt;P&gt;# ls -l /dev/qat*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check for modules installed:&lt;/P&gt;
&lt;P&gt;# lsmod | grep qat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Was QAT installed after iommu enablement targeting vfs?&lt;/P&gt;
&lt;P&gt;If QAT install was performed with intel_iommu=on and ./configure targeting PF use only, this configuration wont work and we will need to recompile and reinstall&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the steps mentioned before do not resolve the issue, I would recommend the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- Refer to section 3 of the following document, &lt;A href="https://www.intel.com/content/www/us/en/content-details/773842/intel-quickassist-technology-software-for-linux-getting-started-guide-customer-enabling-release.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/content-details/773842/intel-quickassist-technology-software-for-linux-getting-started-guide-customer-enabling-release.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- For testing purposes, try compiling with only enable sriov flag # ./configure --enable-icp-sriov&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3- Refer to section 4, follow the instructions and&amp;nbsp;# ./build/ cpa_sample_code, dont use other parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know the results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ronny G&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 21:01:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1694441#M631</guid>
      <dc:creator>Ronny_G_Intel</dc:creator>
      <dc:date>2025-06-03T21:01:11Z</dc:date>
    </item>
    <item>
      <title>Re:cpa_sample code get err could not start sal for user space</title>
      <link>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1695421#M637</link>
      <description>&lt;P&gt;Hi ZhichengCai,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am just checking if you had a chance to try my recommendations mentioned before.&lt;/P&gt;&lt;P&gt;Please let me know the results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronny G&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jun 2025 15:45:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1695421#M637</guid>
      <dc:creator>Ronny_G_Intel</dc:creator>
      <dc:date>2025-06-06T15:45:06Z</dc:date>
    </item>
    <item>
      <title>Re:cpa_sample code get err could not start sal for user space</title>
      <link>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1697571#M641</link>
      <description>&lt;P&gt;Hi ZhichengCai,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As I haven't received any updates concerning the report you submitted, I will be closing the internal ticket I created for this issue. &lt;/P&gt;&lt;P&gt;Please feel free to reopen it or create a new ticket if you still need assistance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronny G&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jun 2025 17:48:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-QuickAssist-Technology/cpa-sample-code-get-err-could-not-start-sal-for-user-space/m-p/1697571#M641</guid>
      <dc:creator>Ronny_G_Intel</dc:creator>
      <dc:date>2025-06-16T17:48:21Z</dc:date>
    </item>
  </channel>
</rss>

