├── .github ├── CODEOWNERS └── dependabot.yml ├── .gitignore ├── LICENSE ├── LICENSE.LZ4 ├── LICENSE.XXHASH ├── LICENSE.ZLIB ├── LICENSE.ZSTD ├── Makefile.am ├── README.md ├── SECURITY.md ├── autogen.sh ├── config_file ├── 4xxx │ ├── multiple_process_opt │ │ ├── 4xxx_dev0.conf │ │ ├── 4xxx_dev1.conf │ │ ├── 4xxx_dev2.conf │ │ ├── 4xxx_dev3.conf │ │ ├── 4xxx_dev4.conf │ │ ├── 4xxx_dev5.conf │ │ ├── 4xxx_dev6.conf │ │ └── 4xxx_dev7.conf │ └── multiple_thread_opt │ │ ├── 4xxx_dev0.conf │ │ ├── 4xxx_dev1.conf │ │ ├── 4xxx_dev2.conf │ │ ├── 4xxx_dev3.conf │ │ ├── 4xxx_dev4.conf │ │ ├── 4xxx_dev5.conf │ │ ├── 4xxx_dev6.conf │ │ └── 4xxx_dev7.conf ├── LICENSE.BSD ├── LICENSE.GPL ├── c3xxx │ ├── multiple_process_opt │ │ └── c3xxx_dev0.conf │ └── multiple_thread_opt │ │ └── c3xxx_dev0.conf ├── c6xx │ ├── multiple_process_opt │ │ ├── c6xx_dev0.conf │ │ ├── c6xx_dev1.conf │ │ └── c6xx_dev2.conf │ └── multiple_thread_opt │ │ ├── c6xx_dev0.conf │ │ ├── c6xx_dev1.conf │ │ └── c6xx_dev2.conf └── dh895xcc │ ├── multiple_process_opt │ └── dh895xcc_dev0.conf │ └── multiple_thread_opt │ └── dh895xcc_dev0.conf ├── configure.ac ├── dockerfiles ├── Dockerfile └── README.md ├── docs └── QATzip-man.pdf ├── include ├── qatzip.h └── qz_utils.h ├── man ├── qatzip-test.1 └── qzip.1 ├── qatzip.pc.in ├── qatzip.spec.in ├── specgen.sh ├── src ├── Makefile.am ├── qatzip.c ├── qatzip_counter.c ├── qatzip_gzip.c ├── qatzip_internal.h ├── qatzip_lz4.c ├── qatzip_mem.c ├── qatzip_page_table.h ├── qatzip_stream.c ├── qatzip_sw.c ├── qatzip_utils.c ├── xxhash.c └── xxhash.h ├── test ├── Makefile.am ├── README.md ├── bt.c ├── code_format_tests │ ├── astylerc │ └── format.sh ├── main.c └── performance_tests │ ├── config_file │ ├── 4xxx │ │ ├── 4xxx_dev0.conf │ │ ├── 4xxx_dev1.conf │ │ ├── 4xxx_dev2.conf │ │ ├── 4xxx_dev3.conf │ │ ├── 4xxx_dev4.conf │ │ ├── 4xxx_dev5.conf │ │ ├── 4xxx_dev6.conf │ │ └── 4xxx_dev7.conf │ ├── c3xxx │ │ └── c3xxx_dev0.conf │ ├── c6xx │ │ ├── c6xx_dev0.conf │ │ ├── c6xx_dev1.conf │ │ └── c6xx_dev2.conf │ └── dh895xcc │ │ └── dh895xcc_dev0.conf │ └── run_perf_test.sh └── utils ├── Makefile.am ├── qzip.c ├── qzip.h ├── qzip_7z.c ├── qzip_main.c ├── qzstd.c ├── qzstd.h └── qzstd_main.c /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * chengfei.zhu@intel.com xinghong.chen@intel.com lihui.zhang@intel.com david.qian@intel.com 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "github-actions" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "monthly" 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # automake file 2 | autom4te.cache 3 | m4 4 | src/.deps 5 | src/.libs 6 | utils/.deps 7 | test/.deps 8 | 9 | aclocal.m4 10 | Makefile 11 | Makefile.in 12 | ar-lib 13 | compile 14 | config.guess 15 | config.log 16 | config.status 17 | config.sub 18 | configure 19 | depcomp 20 | install-sh 21 | libtool 22 | ltmain.sh 23 | missing 24 | qatzip.spec 25 | 26 | # compile obj 27 | src/*.lo 28 | src/*.o 29 | src/*.la 30 | utils/*.o 31 | test/*.o 32 | 33 | # app 34 | test/bt 35 | test/qatzip-test 36 | utils/qzip 37 | utils/qzstd -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # BSD LICENSE 3 | # 4 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 5 | # All rights reserved. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of Intel Corporation nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | # 33 | ################################################################ 34 | -------------------------------------------------------------------------------- /LICENSE.LZ4: -------------------------------------------------------------------------------- 1 | LZ4 Library 2 | Copyright (c) 2011-2020, Yann Collet 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright notice, this 12 | list of conditions and the following disclaimer in the documentation and/or 13 | other materials provided with the distribution. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 19 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 22 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /LICENSE.XXHASH: -------------------------------------------------------------------------------- 1 | xxHash Library 2 | Copyright (c) 2012-2021 Yann Collet 3 | All rights reserved. 4 | 5 | BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) 6 | 7 | Redistribution and use in source and binary forms, with or without modification, 8 | are permitted provided that the following conditions are met: 9 | 10 | * Redistributions of source code must retain the above copyright notice, this 11 | list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright notice, this 14 | list of conditions and the following disclaimer in the documentation and/or 15 | other materials provided with the distribution. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 21 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /LICENSE.ZLIB: -------------------------------------------------------------------------------- 1 | Copyright notice: 2 | 3 | (C) 1995-2022 Jean-loup Gailly and Mark Adler 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | Jean-loup Gailly Mark Adler 22 | jloup@gzip.org madler@alumni.caltech.edu 23 | -------------------------------------------------------------------------------- /LICENSE.ZSTD: -------------------------------------------------------------------------------- 1 | BSD License 2 | 3 | For Zstandard software 4 | 5 | Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without modification, 8 | are permitted provided that the following conditions are met: 9 | 10 | * Redistributions of source code must retain the above copyright notice, this 11 | list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright notice, 14 | this list of conditions and the following disclaimer in the documentation 15 | and/or other materials provided with the distribution. 16 | 17 | * Neither the name Facebook, nor Meta, nor the names of its contributors may 18 | be used to endorse or promote products derived from this software without 19 | specific prior written permission. 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 25 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 28 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # BSD LICENSE 3 | # 4 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 5 | # All rights reserved. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of Intel Corporation nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | # 33 | ################################################################ 34 | 35 | QZIP_DIR = $(top_builddir)/utils 36 | TEST_DIR = $(top_builddir)/test 37 | QATZIP_LIB_DIR = $(top_builddir)/src 38 | QATZIP_LIB = libqatzip.la 39 | CODE_FORMATTING_BIN = $(top_builddir)/test/code_format_tests/format.sh 40 | 41 | DIST_SUBDIRS = src utils test 42 | SUBDIRS = src utils test 43 | 44 | pkgincludedir = $(includedir) 45 | pkginclude_HEADERS = include/qatzip.h 46 | pkgconfigdir = $(libdir)/pkgconfig 47 | pkgconfig_DATA = qatzip.pc 48 | dist_man_MANS = \ 49 | man/qzip.1 50 | 51 | EXTRA_DIST = \ 52 | LICENSE \ 53 | README.md \ 54 | include/qz_utils.h \ 55 | src/xxhash.h \ 56 | src/qatzip_internal.h \ 57 | src/qatzip_page_table.h \ 58 | utils/qzip.h \ 59 | utils/qzstd.h \ 60 | test/code_format_tests \ 61 | test/performance_tests \ 62 | docs/QATzip-man.pdf \ 63 | config_file/ 64 | 65 | 66 | $(QATZIP_LIB): 67 | @make -C $(QATZIP_LIB_DIR) $(QATZIP_LIB) 68 | 69 | qzip: $(QATZIP_LIB) 70 | @make -C $(QZIP_DIR) qzip 71 | 72 | qzip_obj_without_main: 73 | @make -C $(QZIP_DIR) qzip_obj_without_main 74 | 75 | qatzip-test:$(QATZIP_LIB) 76 | @make -C $(TEST_DIR) qatzip-test 77 | 78 | bt:$(QATZIP_LIB) 79 | @make -C $(TEST_DIR) bt 80 | qzstd: $(QATZIP_LIB) 81 | if QATZIP_LZ4S_POSTPROCESS_AC 82 | @make -C $(QZIP_DIR) qzstd 83 | else 84 | @echo "Error : please enable lz4s postprocessing in configure!" 85 | endif 86 | 87 | AM_CFLAGS=-DENABLE_TESTLOG 88 | testlog: clean 89 | @make -C $(QATZIP_LIB_DIR) $(QATZIP_LIB) AM_CFLAGS=$(AM_CFLAGS) 90 | @make -C $(QZIP_DIR) qzip 91 | @make -C $(TEST_DIR) qatzip-test 92 | @make -C $(TEST_DIR) bt 93 | if QATZIP_LZ4S_POSTPROCESS_AC 94 | @make -C $(QZIP_DIR) qzstd 95 | endif 96 | 97 | check_code: 98 | @echo -e "\n\nPerforming code formatting tests..." 99 | @if ! $(CODE_FORMATTING_BIN); then \ 100 | echo "Check code format FAILED!!! :("; \ 101 | exit 1; \ 102 | fi 103 | clean-local: 104 | @make -C $(TEST_DIR) clean 105 | 106 | ######################## 107 | # RPM package building # 108 | ######################## 109 | 110 | rpm: clean dist qatzip.spec 111 | @mkdir -p rpmbuild/BUILD rpmbuild/RPMS rpmbuild/SOURCES rpmbuild/SPECS rpmbuild/SRPMS 112 | @cp $(PACKAGE)-$(VERSION).tar.gz rpmbuild/SOURCES/ 113 | @cp qatzip.spec rpmbuild/SPECS/ 114 | @rpmbuild --define "_topdir $(abs_srcdir)/rpmbuild" -ba rpmbuild/SPECS/qatzip.spec 115 | 116 | rpmclean: 117 | @rm -fr rpmbuild 118 | 119 | .PHONY: rpm rpmclean libqatzip qzip qatzip-test check_code \ 120 | qzip_obj_without_main bt $(QATZIP_LIB) clean-local \ 121 | qzstd 122 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Reporting a Security Vulnerability 4 | 5 | Visit https://intel.com/security for information on how to report 6 | security vulnerabilities. Do not report any security vulnerability as a 7 | regular issue in this repository. 8 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # BSD LICENSE 3 | # 4 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 5 | # All rights reserved. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of Intel Corporation nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | # 33 | ################################################################ 34 | #!/bin/sh 35 | mkdir -p m4 36 | autoreconf -vif 37 | -------------------------------------------------------------------------------- /config_file/4xxx/multiple_process_opt/4xxx_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # Default heartbeat timer is 1s 84 | HeartbeatTimer = 1000 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 512 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | # Disable AT 123 | ATEnabled = 0 124 | ############################################## 125 | # Kernel Instances Section 126 | ############################################## 127 | [KERNEL] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 0 130 | 131 | ############################################## 132 | # ADI Section for Scalable IOV 133 | ############################################## 134 | [SIOV] 135 | NumberAdis = 0 136 | 137 | ############################################## 138 | # User Process Instance Section 139 | ############################################## 140 | [SHIM] 141 | NumberCyInstances = 0 142 | NumberDcInstances = 1 143 | NumProcesses = 64 144 | LimitDevAccess = 1 145 | 146 | # Crypto - User instance #0 147 | #Cy0Name = "SSL0" 148 | #Cy0IsPolled = 1 149 | ## List of core affinities 150 | #Cy0CoreAffinity = 1 151 | 152 | # Data Compression - User instance #0 153 | Dc0Name = "Dc0" 154 | Dc0IsPolled = 1 155 | # List of core affinities 156 | Dc0CoreAffinity = 1 157 | 158 | -------------------------------------------------------------------------------- /config_file/4xxx/multiple_process_opt/4xxx_dev1.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # Default heartbeat timer is 1s 84 | HeartbeatTimer = 1000 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 512 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | # Disable AT 123 | ATEnabled = 0 124 | ############################################## 125 | # Kernel Instances Section 126 | ############################################## 127 | [KERNEL] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 0 130 | 131 | ############################################## 132 | # ADI Section for Scalable IOV 133 | ############################################## 134 | [SIOV] 135 | NumberAdis = 0 136 | 137 | ############################################## 138 | # User Process Instance Section 139 | ############################################## 140 | [SHIM] 141 | NumberCyInstances = 0 142 | NumberDcInstances = 1 143 | NumProcesses = 64 144 | LimitDevAccess = 1 145 | 146 | # Crypto - User instance #0 147 | #Cy0Name = "SSL0" 148 | #Cy0IsPolled = 1 149 | ## List of core affinities 150 | #Cy0CoreAffinity = 1 151 | 152 | # Data Compression - User instance #0 153 | Dc0Name = "Dc0" 154 | Dc0IsPolled = 1 155 | # List of core affinities 156 | Dc0CoreAffinity = 1 157 | 158 | -------------------------------------------------------------------------------- /config_file/4xxx/multiple_process_opt/4xxx_dev2.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # Default heartbeat timer is 1s 84 | HeartbeatTimer = 1000 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 512 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | # Disable AT 123 | ATEnabled = 0 124 | ############################################## 125 | # Kernel Instances Section 126 | ############################################## 127 | [KERNEL] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 0 130 | 131 | ############################################## 132 | # ADI Section for Scalable IOV 133 | ############################################## 134 | [SIOV] 135 | NumberAdis = 0 136 | 137 | ############################################## 138 | # User Process Instance Section 139 | ############################################## 140 | [SHIM] 141 | NumberCyInstances = 0 142 | NumberDcInstances = 1 143 | NumProcesses = 64 144 | LimitDevAccess = 1 145 | 146 | # Crypto - User instance #0 147 | #Cy0Name = "SSL0" 148 | #Cy0IsPolled = 1 149 | ## List of core affinities 150 | #Cy0CoreAffinity = 1 151 | 152 | # Data Compression - User instance #0 153 | Dc0Name = "Dc0" 154 | Dc0IsPolled = 1 155 | # List of core affinities 156 | Dc0CoreAffinity = 1 157 | 158 | -------------------------------------------------------------------------------- /config_file/4xxx/multiple_process_opt/4xxx_dev3.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # Default heartbeat timer is 1s 84 | HeartbeatTimer = 1000 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 512 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | # Disable AT 123 | ATEnabled = 0 124 | ############################################## 125 | # Kernel Instances Section 126 | ############################################## 127 | [KERNEL] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 0 130 | 131 | ############################################## 132 | # ADI Section for Scalable IOV 133 | ############################################## 134 | [SIOV] 135 | NumberAdis = 0 136 | 137 | ############################################## 138 | # User Process Instance Section 139 | ############################################## 140 | [SHIM] 141 | NumberCyInstances = 0 142 | NumberDcInstances = 1 143 | NumProcesses = 64 144 | LimitDevAccess = 1 145 | 146 | # Crypto - User instance #0 147 | #Cy0Name = "SSL0" 148 | #Cy0IsPolled = 1 149 | ## List of core affinities 150 | #Cy0CoreAffinity = 1 151 | 152 | # Data Compression - User instance #0 153 | Dc0Name = "Dc0" 154 | Dc0IsPolled = 1 155 | # List of core affinities 156 | Dc0CoreAffinity = 1 157 | 158 | -------------------------------------------------------------------------------- /config_file/4xxx/multiple_process_opt/4xxx_dev4.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # Default heartbeat timer is 1s 84 | HeartbeatTimer = 1000 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 512 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | # Disable AT 123 | ATEnabled = 0 124 | ############################################## 125 | # Kernel Instances Section 126 | ############################################## 127 | [KERNEL] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 0 130 | 131 | ############################################## 132 | # ADI Section for Scalable IOV 133 | ############################################## 134 | [SIOV] 135 | NumberAdis = 0 136 | 137 | ############################################## 138 | # User Process Instance Section 139 | ############################################## 140 | [SHIM] 141 | NumberCyInstances = 0 142 | NumberDcInstances = 1 143 | NumProcesses = 64 144 | LimitDevAccess = 1 145 | 146 | # Crypto - User instance #0 147 | #Cy0Name = "SSL0" 148 | #Cy0IsPolled = 1 149 | ## List of core affinities 150 | #Cy0CoreAffinity = 1 151 | 152 | # Data Compression - User instance #0 153 | Dc0Name = "Dc0" 154 | Dc0IsPolled = 1 155 | # List of core affinities 156 | Dc0CoreAffinity = 1 157 | 158 | -------------------------------------------------------------------------------- /config_file/4xxx/multiple_process_opt/4xxx_dev5.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # Default heartbeat timer is 1s 84 | HeartbeatTimer = 1000 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 512 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | # Disable AT 123 | ATEnabled = 0 124 | ############################################## 125 | # Kernel Instances Section 126 | ############################################## 127 | [KERNEL] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 0 130 | 131 | ############################################## 132 | # ADI Section for Scalable IOV 133 | ############################################## 134 | [SIOV] 135 | NumberAdis = 0 136 | 137 | ############################################## 138 | # User Process Instance Section 139 | ############################################## 140 | [SHIM] 141 | NumberCyInstances = 0 142 | NumberDcInstances = 1 143 | NumProcesses = 64 144 | LimitDevAccess = 1 145 | 146 | # Crypto - User instance #0 147 | #Cy0Name = "SSL0" 148 | #Cy0IsPolled = 1 149 | ## List of core affinities 150 | #Cy0CoreAffinity = 1 151 | 152 | # Data Compression - User instance #0 153 | Dc0Name = "Dc0" 154 | Dc0IsPolled = 1 155 | # List of core affinities 156 | Dc0CoreAffinity = 1 157 | 158 | -------------------------------------------------------------------------------- /config_file/4xxx/multiple_process_opt/4xxx_dev6.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # Default heartbeat timer is 1s 84 | HeartbeatTimer = 1000 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 512 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | # Disable AT 123 | ATEnabled = 0 124 | ############################################## 125 | # Kernel Instances Section 126 | ############################################## 127 | [KERNEL] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 0 130 | 131 | ############################################## 132 | # ADI Section for Scalable IOV 133 | ############################################## 134 | [SIOV] 135 | NumberAdis = 0 136 | 137 | ############################################## 138 | # User Process Instance Section 139 | ############################################## 140 | [SHIM] 141 | NumberCyInstances = 0 142 | NumberDcInstances = 1 143 | NumProcesses = 64 144 | LimitDevAccess = 1 145 | 146 | # Crypto - User instance #0 147 | #Cy0Name = "SSL0" 148 | #Cy0IsPolled = 1 149 | ## List of core affinities 150 | #Cy0CoreAffinity = 1 151 | 152 | # Data Compression - User instance #0 153 | Dc0Name = "Dc0" 154 | Dc0IsPolled = 1 155 | # List of core affinities 156 | Dc0CoreAffinity = 1 157 | 158 | -------------------------------------------------------------------------------- /config_file/4xxx/multiple_process_opt/4xxx_dev7.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # Default heartbeat timer is 1s 84 | HeartbeatTimer = 1000 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 512 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | # Disable AT 123 | ATEnabled = 0 124 | ############################################## 125 | # Kernel Instances Section 126 | ############################################## 127 | [KERNEL] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 0 130 | 131 | ############################################## 132 | # ADI Section for Scalable IOV 133 | ############################################## 134 | [SIOV] 135 | NumberAdis = 0 136 | 137 | ############################################## 138 | # User Process Instance Section 139 | ############################################## 140 | [SHIM] 141 | NumberCyInstances = 0 142 | NumberDcInstances = 1 143 | NumProcesses = 64 144 | LimitDevAccess = 1 145 | 146 | # Crypto - User instance #0 147 | #Cy0Name = "SSL0" 148 | #Cy0IsPolled = 1 149 | ## List of core affinities 150 | #Cy0CoreAffinity = 1 151 | 152 | # Data Compression - User instance #0 153 | Dc0Name = "Dc0" 154 | Dc0IsPolled = 1 155 | # List of core affinities 156 | Dc0CoreAffinity = 1 157 | 158 | -------------------------------------------------------------------------------- /config_file/LICENSE.BSD: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # BSD LICENSE 3 | # 4 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 5 | # All rights reserved. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of Intel Corporation nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | # 33 | ################################################################ 34 | -------------------------------------------------------------------------------- /config_file/c3xxx/multiple_process_opt/c3xxx_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | ################################################################ 60 | [GENERAL] 61 | ServicesEnabled = dc 62 | 63 | # Set the service profile to determine available features 64 | # ===================================================================== 65 | # DEFAULT CRYPTO COMPRESSION CUSTOM1 66 | # Asymmetric Crypto * * * 67 | # Symmetric Crypto * * * 68 | # MGF KeyGen * * 69 | # SSL/TLS KeyGen * * * 70 | # HKDF * * 71 | # Compression * * * 72 | # Decompression (stateless) * * * 73 | # Decompression (stateful) * * 74 | # Service Chaining * 75 | # Device Utilization * * 76 | # Rate Limiting * * 77 | # ===================================================================== 78 | ServicesProfile = DEFAULT 79 | 80 | ConfigVersion = 2 81 | 82 | #Default values for number of concurrent requests*/ 83 | CyNumConcurrentSymRequests = 512 84 | CyNumConcurrentAsymRequests = 64 85 | 86 | #Statistics, valid values: 1,0 87 | statsGeneral = 1 88 | statsDh = 1 89 | statsDrbg = 1 90 | statsDsa = 1 91 | statsEcc = 1 92 | statsKeyGen = 1 93 | statsDc = 1 94 | statsLn = 1 95 | statsPrime = 1 96 | statsRsa = 1 97 | statsSym = 1 98 | 99 | # This flag is to enable device auto reset on heartbeat error 100 | AutoResetOnError = 0 101 | 102 | ############################################## 103 | # Kernel Instances Section 104 | ############################################## 105 | [KERNEL] 106 | NumberCyInstances = 0 107 | NumberDcInstances = 0 108 | 109 | # Crypto - Kernel instance #0 110 | Cy0Name = "IPSec0" 111 | Cy0IsPolled = 0 112 | Cy0CoreAffinity = 0 113 | 114 | ############################################## 115 | # User Process Instance Section 116 | ############################################## 117 | [SHIM] 118 | NumberCyInstances = 0 119 | NumberDcInstances = 1 120 | NumProcesses = 32 121 | LimitDevAccess = 0 122 | 123 | # Data Compression - User instance #0 124 | Dc0Name = "Dc0" 125 | Dc0IsPolled = 1 126 | # List of core affinities 127 | Dc0CoreAffinity = 1 128 | -------------------------------------------------------------------------------- /config_file/c3xxx/multiple_thread_opt/c3xxx_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | ################################################################ 60 | [GENERAL] 61 | ServicesEnabled = dc 62 | 63 | # Set the service profile to determine available features 64 | # ===================================================================== 65 | # DEFAULT CRYPTO COMPRESSION CUSTOM1 66 | # Asymmetric Crypto * * * 67 | # Symmetric Crypto * * * 68 | # MGF KeyGen * * 69 | # SSL/TLS KeyGen * * * 70 | # HKDF * * 71 | # Compression * * * 72 | # Decompression (stateless) * * * 73 | # Decompression (stateful) * * 74 | # Service Chaining * 75 | # Device Utilization * * 76 | # Rate Limiting * * 77 | # ===================================================================== 78 | ServicesProfile = DEFAULT 79 | 80 | ConfigVersion = 2 81 | 82 | #Default values for number of concurrent requests*/ 83 | CyNumConcurrentSymRequests = 512 84 | CyNumConcurrentAsymRequests = 64 85 | 86 | #Statistics, valid values: 1,0 87 | statsGeneral = 1 88 | statsDh = 1 89 | statsDrbg = 1 90 | statsDsa = 1 91 | statsEcc = 1 92 | statsKeyGen = 1 93 | statsDc = 1 94 | statsLn = 1 95 | statsPrime = 1 96 | statsRsa = 1 97 | statsSym = 1 98 | 99 | # This flag is to enable device auto reset on heartbeat error 100 | AutoResetOnError = 0 101 | 102 | ############################################## 103 | # Kernel Instances Section 104 | ############################################## 105 | [KERNEL] 106 | NumberCyInstances = 0 107 | NumberDcInstances = 0 108 | 109 | # Crypto - Kernel instance #0 110 | Cy0Name = "IPSec0" 111 | Cy0IsPolled = 0 112 | Cy0CoreAffinity = 0 113 | 114 | ############################################## 115 | # User Process Instance Section 116 | ############################################## 117 | [SHIM] 118 | NumberCyInstances = 0 119 | NumberDcInstances = 4 120 | NumProcesses = 8 121 | LimitDevAccess = 1 122 | 123 | # Data Compression - User instance #0 124 | Dc0Name = "Dc0" 125 | Dc0IsPolled = 1 126 | # List of core affinities 127 | Dc0CoreAffinity = 1 128 | 129 | # Data Compression - User instance #1 130 | Dc1Name = "Dc1" 131 | Dc1IsPolled = 1 132 | # # List of core affinities 133 | Dc1CoreAffinity = 2 134 | # 135 | # # Data Compression - User instance #2 136 | Dc2Name = "Dc2" 137 | Dc2IsPolled = 1 138 | # # List of core affinities 139 | Dc2CoreAffinity = 3 140 | # 141 | # # Data Compression - User instance #3 142 | Dc3Name = "Dc3" 143 | Dc3IsPolled = 1 144 | # # List of core affinities 145 | Dc3CoreAffinity = 4 146 | -------------------------------------------------------------------------------- /config_file/c6xx/multiple_process_opt/c6xx_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | # Set the service profile to determine available features 65 | # ===================================================================== 66 | # DEFAULT CRYPTO COMPRESSION CUSTOM1 67 | # Asymmetric Crypto * * * 68 | # Symmetric Crypto * * * 69 | # Hash * * * * 70 | # Cipher * * * 71 | # MGF KeyGen * * 72 | # SSL/TLS KeyGen * * * 73 | # HKDF * * 74 | # Compression * * * 75 | # Decompression (stateless) * * * 76 | # Decompression (stateful) * * 77 | # Service Chaining * 78 | # Device Utilization * * * 79 | # Rate Limiting * * * 80 | # ===================================================================== 81 | ServicesProfile = DEFAULT 82 | 83 | ConfigVersion = 2 84 | 85 | #Default values for number of concurrent requests*/ 86 | CyNumConcurrentSymRequests = 512 87 | CyNumConcurrentAsymRequests = 64 88 | 89 | #Statistics, valid values: 1,0 90 | statsGeneral = 1 91 | statsDh = 1 92 | statsDrbg = 1 93 | statsDsa = 1 94 | statsEcc = 1 95 | statsKeyGen = 1 96 | statsDc = 1 97 | statsLn = 1 98 | statsPrime = 1 99 | statsRsa = 1 100 | statsSym = 1 101 | 102 | 103 | # Specify size of intermediate buffers for which to 104 | # allocate on-chip buffers. Legal values are 32 and 105 | # 64 (default is 64). Specify 32 to optimize for 106 | # compressing buffers <=32KB in size. 107 | DcIntermediateBufferSizeInKB = 64 108 | 109 | # This flag is to enable device auto reset on heartbeat error 110 | AutoResetOnError = 0 111 | 112 | ############################################## 113 | # Kernel Instances Section 114 | ############################################## 115 | [KERNEL] 116 | NumberCyInstances = 0 117 | NumberDcInstances = 0 118 | 119 | # Crypto - Kernel instance #0 120 | Cy0Name = "IPSec0" 121 | Cy0IsPolled = 0 122 | Cy0CoreAffinity = 0 123 | 124 | ############################################## 125 | # User Process Instance Section 126 | ############################################## 127 | [SHIM] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 1 130 | NumProcesses = 32 131 | LimitDevAccess = 1 132 | 133 | # Crypto - User instance #0 134 | #Cy0Name = "SSL0" 135 | #Cy0IsPolled = 1 136 | ## List of core affinities 137 | #Cy0CoreAffinity = 0 138 | 139 | 140 | # Data Compression - User instance #0 141 | Dc0Name = "Dc0" 142 | Dc0IsPolled = 1 143 | # List of core affinities 144 | Dc0CoreAffinity = 1 145 | 146 | -------------------------------------------------------------------------------- /config_file/c6xx/multiple_process_opt/c6xx_dev1.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | # Set the service profile to determine available features 65 | # ===================================================================== 66 | # DEFAULT CRYPTO COMPRESSION CUSTOM1 67 | # Asymmetric Crypto * * * 68 | # Symmetric Crypto * * * 69 | # Hash * * * * 70 | # Cipher * * * 71 | # MGF KeyGen * * 72 | # SSL/TLS KeyGen * * * 73 | # HKDF * * 74 | # Compression * * * 75 | # Decompression (stateless) * * * 76 | # Decompression (stateful) * * 77 | # Service Chaining * 78 | # Device Utilization * * * 79 | # Rate Limiting * * * 80 | # ===================================================================== 81 | ServicesProfile = DEFAULT 82 | 83 | ConfigVersion = 2 84 | 85 | #Default values for number of concurrent requests*/ 86 | CyNumConcurrentSymRequests = 512 87 | CyNumConcurrentAsymRequests = 64 88 | 89 | #Statistics, valid values: 1,0 90 | statsGeneral = 1 91 | statsDh = 1 92 | statsDrbg = 1 93 | statsDsa = 1 94 | statsEcc = 1 95 | statsKeyGen = 1 96 | statsDc = 1 97 | statsLn = 1 98 | statsPrime = 1 99 | statsRsa = 1 100 | statsSym = 1 101 | 102 | 103 | # Specify size of intermediate buffers for which to 104 | # allocate on-chip buffers. Legal values are 32 and 105 | # 64 (default is 64). Specify 32 to optimize for 106 | # compressing buffers <=32KB in size. 107 | DcIntermediateBufferSizeInKB = 64 108 | 109 | # This flag is to enable device auto reset on heartbeat error 110 | AutoResetOnError = 0 111 | 112 | ############################################## 113 | # Kernel Instances Section 114 | ############################################## 115 | [KERNEL] 116 | NumberCyInstances = 0 117 | NumberDcInstances = 0 118 | 119 | # Crypto - Kernel instance #0 120 | Cy0Name = "IPSec0" 121 | Cy0IsPolled = 0 122 | Cy0CoreAffinity = 0 123 | 124 | ############################################## 125 | # User Process Instance Section 126 | ############################################## 127 | [SHIM] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 1 130 | NumProcesses = 32 131 | LimitDevAccess = 1 132 | 133 | # Crypto - User instance #0 134 | #Cy0Name = "SSL0" 135 | #Cy0IsPolled = 1 136 | ## List of core affinities 137 | #Cy0CoreAffinity = 0 138 | 139 | 140 | # Data Compression - User instance #0 141 | Dc0Name = "Dc0" 142 | Dc0IsPolled = 1 143 | # List of core affinities 144 | Dc0CoreAffinity = 1 145 | 146 | -------------------------------------------------------------------------------- /config_file/c6xx/multiple_process_opt/c6xx_dev2.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | # Set the service profile to determine available features 65 | # ===================================================================== 66 | # DEFAULT CRYPTO COMPRESSION CUSTOM1 67 | # Asymmetric Crypto * * * 68 | # Symmetric Crypto * * * 69 | # Hash * * * * 70 | # Cipher * * * 71 | # MGF KeyGen * * 72 | # SSL/TLS KeyGen * * * 73 | # HKDF * * 74 | # Compression * * * 75 | # Decompression (stateless) * * * 76 | # Decompression (stateful) * * 77 | # Service Chaining * 78 | # Device Utilization * * * 79 | # Rate Limiting * * * 80 | # ===================================================================== 81 | ServicesProfile = DEFAULT 82 | 83 | ConfigVersion = 2 84 | 85 | #Default values for number of concurrent requests*/ 86 | CyNumConcurrentSymRequests = 512 87 | CyNumConcurrentAsymRequests = 64 88 | 89 | #Statistics, valid values: 1,0 90 | statsGeneral = 1 91 | statsDh = 1 92 | statsDrbg = 1 93 | statsDsa = 1 94 | statsEcc = 1 95 | statsKeyGen = 1 96 | statsDc = 1 97 | statsLn = 1 98 | statsPrime = 1 99 | statsRsa = 1 100 | statsSym = 1 101 | 102 | 103 | # Specify size of intermediate buffers for which to 104 | # allocate on-chip buffers. Legal values are 32 and 105 | # 64 (default is 64). Specify 32 to optimize for 106 | # compressing buffers <=32KB in size. 107 | DcIntermediateBufferSizeInKB = 64 108 | 109 | # This flag is to enable device auto reset on heartbeat error 110 | AutoResetOnError = 0 111 | 112 | ############################################## 113 | # Kernel Instances Section 114 | ############################################## 115 | [KERNEL] 116 | NumberCyInstances = 0 117 | NumberDcInstances = 0 118 | 119 | # Crypto - Kernel instance #0 120 | Cy0Name = "IPSec0" 121 | Cy0IsPolled = 0 122 | Cy0CoreAffinity = 0 123 | 124 | ############################################## 125 | # User Process Instance Section 126 | ############################################## 127 | [SHIM] 128 | NumberCyInstances = 0 129 | NumberDcInstances = 1 130 | NumProcesses = 32 131 | LimitDevAccess = 1 132 | 133 | # Crypto - User instance #0 134 | #Cy0Name = "SSL0" 135 | #Cy0IsPolled = 1 136 | ## List of core affinities 137 | #Cy0CoreAffinity = 0 138 | 139 | 140 | # Data Compression - User instance #0 141 | Dc0Name = "Dc0" 142 | Dc0IsPolled = 1 143 | # List of core affinities 144 | Dc0CoreAffinity = 1 145 | 146 | -------------------------------------------------------------------------------- /config_file/dh895xcc/multiple_process_opt/dh895xcc_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | ################################################################ 60 | [GENERAL] 61 | ServicesEnabled = cy;dc 62 | 63 | ConfigVersion = 2 64 | 65 | #Default values for number of concurrent requests 66 | CyNumConcurrentSymRequests = 512 67 | CyNumConcurrentAsymRequests = 64 68 | 69 | #Statistics, valid values: 1,0 70 | statsGeneral = 1 71 | statsDh = 1 72 | statsDrbg = 1 73 | statsDsa = 1 74 | statsEcc = 1 75 | statsKeyGen = 1 76 | statsDc = 1 77 | statsLn = 1 78 | statsPrime = 1 79 | statsRsa = 1 80 | statsSym = 1 81 | KptEnabled = 0 82 | 83 | # This flag is to enable SSF features (MCA and BnP) 84 | StorageEnabled = 0 85 | 86 | # Disable public key crypto and prime number 87 | # services by specifying a value of 1 (default is 0) 88 | PkeServiceDisabled = 0 89 | 90 | # Specify size of intermediate buffers for which to 91 | # allocate on-chip buffers. Legal values are 32 and 92 | # 64 (default is 64). Specify 32 to optimize for 93 | # compressing buffers <=32KB in size. 94 | DcIntermediateBufferSizeInKB = 64 95 | 96 | ############################################## 97 | # Kernel Instances Section 98 | ############################################## 99 | [KERNEL] 100 | NumberCyInstances = 0 101 | NumberDcInstances = 0 102 | 103 | ############################################## 104 | # User Process Instance Section 105 | ############################################## 106 | [SHIM] 107 | NumberCyInstances = 0 108 | NumberDcInstances = 1 109 | NumProcesses = 32 110 | LimitDevAccess = 1 111 | 112 | # Data Compression - User instance #0 113 | Dc0Name = "Dc0" 114 | Dc0IsPolled = 1 115 | # List of core affinities 116 | Dc0CoreAffinity = 1 117 | -------------------------------------------------------------------------------- /config_file/dh895xcc/multiple_thread_opt/dh895xcc_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | ################################################################ 60 | [GENERAL] 61 | ServicesEnabled = cy;dc 62 | 63 | ConfigVersion = 2 64 | 65 | #Default values for number of concurrent requests 66 | CyNumConcurrentSymRequests = 512 67 | CyNumConcurrentAsymRequests = 64 68 | 69 | #Statistics, valid values: 1,0 70 | statsGeneral = 1 71 | statsDh = 1 72 | statsDrbg = 1 73 | statsDsa = 1 74 | statsEcc = 1 75 | statsKeyGen = 1 76 | statsDc = 1 77 | statsLn = 1 78 | statsPrime = 1 79 | statsRsa = 1 80 | statsSym = 1 81 | KptEnabled = 0 82 | 83 | # This flag is to enable SSF features (MCA and BnP) 84 | StorageEnabled = 0 85 | 86 | # Disable public key crypto and prime number 87 | # services by specifying a value of 1 (default is 0) 88 | PkeServiceDisabled = 0 89 | 90 | # Specify size of intermediate buffers for which to 91 | # allocate on-chip buffers. Legal values are 32 and 92 | # 64 (default is 64). Specify 32 to optimize for 93 | # compressing buffers <=32KB in size. 94 | DcIntermediateBufferSizeInKB = 64 95 | 96 | ############################################## 97 | # Kernel Instances Section 98 | ############################################## 99 | [KERNEL] 100 | NumberCyInstances = 0 101 | NumberDcInstances = 0 102 | 103 | ############################################## 104 | # User Process Instance Section 105 | ############################################## 106 | [SHIM] 107 | NumberCyInstances = 0 108 | NumberDcInstances = 4 109 | NumProcesses = 8 110 | LimitDevAccess = 1 111 | 112 | # Data Compression - User instance #0 113 | Dc0Name = "Dc0" 114 | Dc0IsPolled = 1 115 | # List of core affinities 116 | Dc0CoreAffinity = 1 117 | 118 | 119 | # Data Compression - User instance #1 120 | Dc1Name = "Dc1" 121 | Dc1IsPolled = 1 122 | # List of core affinities 123 | Dc1CoreAffinity = 1 124 | 125 | 126 | # Data Compression - User instance #2 127 | Dc2Name = "Dc2" 128 | Dc2IsPolled = 1 129 | # List of core affinities 130 | Dc2CoreAffinity = 2 131 | 132 | 133 | # Data Compression - User instance #3 134 | Dc3Name = "Dc3" 135 | Dc3IsPolled = 1 136 | # List of core affinities 137 | Dc3CoreAffinity = 3 138 | -------------------------------------------------------------------------------- /dockerfiles/README.md: -------------------------------------------------------------------------------- 1 | # Intel® QuickAssist Technology(QAT) QATZip\* Container support 2 | 3 | QATZip Dockerfiles contains QAT Compression Base (qatzip and zst with zstdplugin) which can be built into docker images on the platforms 4 | with [Intel® QuickAssist 4xxx Series](https://www.intel.com/content/www/us/en/products/details/processors/xeon/scalable.html) 5 | QAT device. 6 | 7 | This Dockerfile (QAT Compression Base) is build and tested with software versions mentioned in [software_requirements] (../README.md#software-requirements)section. 8 | 9 | ## Docker setup and testing 10 | 11 | Refer [here](https://intel.github.io/quickassist/AppNotes/Containers/setup.html) 12 | for setting up the host for QAT_HW (qatlib intree) if the platform has QAT 4xxx Hardware 13 | device. Stop QAT service if any running on the host. 14 | 15 | ### QAT_HW settings 16 | Follow the below steps to enable required service. The service should be dc alone for compression. 17 | in step 2 depending on the particular use case. Configure the required service only to get best performance. 18 | 19 | 1. Bring down the QAT devices 20 | ``` 21 | for i in `lspci -D -d :4940| awk '{print $1}'`; do echo down > /sys/bus/pci/devices/$i/qat/state;done 22 | ``` 23 | 24 | 2. Set up the required crypto service(s) 25 | ``` 26 | for i in `lspci -D -d :4940| awk '{print $1}'`; do echo “dc“ > /sys/bus/pci/devices/$i/qat/cfg_services;done 27 | ``` 28 | 29 | 3. Bring up the QAT devices 30 | ``` 31 | for i in `lspci -D -d :4940| awk '{print $1}'`; do echo up> /sys/bus/pci/devices/$i/qat/state;done 32 | ``` 33 | 34 | 4. Check the status of the QAT devices 35 | ``` 36 | for i in `lspci -D -d :4940| awk '{print $1}'`; do cat /sys/bus/pci/devices/$i/qat/state;done 37 | ``` 38 | 39 | 5. Enable VF for the PF in the host 40 | ``` 41 | for i in `lspci -D -d :4940| awk '{print $1}'`; do echo 16|sudo tee /sys/bus/pci/devices/$i/sriov_numvfs; done 42 | ``` 43 | 44 | 6. Add QAT group and Permission to the VF devices in the host 45 | ``` 46 | chown root.qat /dev/vfio/* 47 | chmod 660 /dev/vfio/* 48 | ``` 49 | 50 | ### Image creation 51 | 52 | Docker images can be build using the below command with appropiate image name. 53 | 54 | ``` 55 | docker build --build-arg GID=$(getent group qat | cut -d ':' -f 3) -t --no-cache 56 | ``` 57 | Note: GID is the group id of qat group in the host. 58 | 59 | ### Testing QAT Compression base using qzip\* utility 60 | 61 | ##Compression using 7z 62 | 63 | ``` 64 | 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) --env QAT_POLICY=1 --ulimit memlock=524288000:524288000 qzip -k $your_input_file -O gzipext -A deflate 65 | ``` 66 | 67 | ##Decompress using 7z 68 | 69 | ``` 70 | 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) --env QAT_POLICY=1 --ulimit memlock=524288000:524288000 qzip -d $your_input_file.7z 71 | ``` 72 | 73 | NOTE: "Warning, users who have access to the docker group also have root access" 74 | -------------------------------------------------------------------------------- /docs/QATzip-man.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/QATzip/10dbadbab384ab3a0cb514163ff1aa47c2bf42f2/docs/QATzip-man.pdf -------------------------------------------------------------------------------- /include/qz_utils.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * 3 | * BSD LICENSE 4 | * 5 | * Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions 10 | * are met: 11 | * 12 | * * Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * * Redistributions in binary form must reproduce the above copyright 15 | * notice, this list of conditions and the following disclaimer in 16 | * the documentation and/or other materials provided with the 17 | * distribution. 18 | * * Neither the name of Intel Corporation nor the names of its 19 | * contributors may be used to endorse or promote products derived 20 | * from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | * 34 | ***************************************************************************/ 35 | 36 | /** 37 | ***************************************************************************** 38 | * @file qz_utils.h 39 | * 40 | * @defgroup qatzip debug API 41 | * 42 | * @description 43 | * These functions specify the API for debug operations. 44 | * 45 | * @remarks 46 | * 47 | * 48 | *****************************************************************************/ 49 | 50 | #ifndef _QZ_UTILS_H_ 51 | #define _QZ_UTILS_H_ 52 | 53 | #include 54 | #include 55 | #include 56 | #include 57 | #include 58 | #include "qatzip.h" 59 | 60 | typedef enum SERV_E { 61 | COMPRESSION = 0, 62 | DECOMPRESSION 63 | } Serv_T; 64 | 65 | typedef enum ENGINE_E { 66 | HW = 0, 67 | SW 68 | } Engine_T; 69 | 70 | typedef struct ThreadList_S { 71 | unsigned int thread_id; 72 | unsigned int comp_hw_count; 73 | unsigned int comp_sw_count; 74 | unsigned int decomp_hw_count; 75 | unsigned int decomp_sw_count; 76 | struct ThreadList_S *next; 77 | } ThreadList_T; 78 | 79 | typedef struct QatThread_S { 80 | ThreadList_T *comp_th_list; 81 | unsigned int num_comp_th; 82 | pthread_mutex_t comp_lock; 83 | ThreadList_T *decomp_th_list; 84 | unsigned int num_decomp_th; 85 | pthread_mutex_t decomp_lock; 86 | } QatThread_T; 87 | 88 | typedef struct QzRingHeadTail_S { 89 | uint32_t head; 90 | uint32_t tail; 91 | } QzRingHeadTail_T; 92 | 93 | typedef struct QzRing_S { 94 | uint32_t size; /**< Size of ring. */ 95 | uint32_t mask; /**< Mask (size-1) of ring. */ 96 | uint32_t capacity; /**< Usable size of ring */ 97 | 98 | void **elems; 99 | 100 | QzRingHeadTail_T prod; 101 | QzRingHeadTail_T cons; 102 | } QzRing_T; 103 | 104 | QzRing_T *QzRingCreate(int size); 105 | void QzRingFree(QzRing_T *ring); 106 | void QzClearRing(QzRing_T *ring); 107 | int QzRingProduceEnQueue(QzRing_T *ring, void *obj, int is_single_producer); 108 | void *QzRingConsumeDequeue(QzRing_T *ring, int is_single_consumer); 109 | 110 | extern void initDebugLock(void); 111 | extern void dumpThreadInfo(void); 112 | extern void insertThread(unsigned int th_id, 113 | Serv_T serv_type, 114 | Engine_T engine_type); 115 | 116 | /* QATzip log API 117 | * could change the log level on runtime 118 | */ 119 | void logMessage(QzLogLevel_T level, const char *file, int line, 120 | const char *format, ...); 121 | 122 | #define LOG(level, ...) logMessage(level, __FILE__, __LINE__, __VA_ARGS__) 123 | #define QZ_PRINT(...) LOG(LOG_NONE, __VA_ARGS__) 124 | #define QZ_ERROR(...) LOG(LOG_ERROR, __VA_ARGS__) 125 | #define QZ_WARN(...) LOG(LOG_WARNING, __VA_ARGS__) 126 | #define QZ_INFO(...) LOG(LOG_INFO, __VA_ARGS__) 127 | #define QZ_DEBUG(...) LOG(LOG_DEBUG1, __VA_ARGS__) 128 | #define QZ_TEST(...) LOG(LOG_DEBUG2, __VA_ARGS__) 129 | #define QZ_MEM_PRINT(...) LOG(LOG_DEBUG3, __VA_ARGS__) 130 | 131 | #ifdef ENABLE_TESTLOG 132 | #define QZ_TESTLOG(debuglevel, Readable, tag, ...) { \ 133 | FILE *fd = debuglevel > 1 ? stdout : stderr; \ 134 | fprintf(fd, "Tag: %s; ", tag); \ 135 | if (Readable) { \ 136 | fprintf(fd, "Time: %s %s; Location: %s->%s->%d; ", \ 137 | __DATE__, __TIME__, __FILE__, __func__, __LINE__); \ 138 | } else { \ 139 | struct timespec ts = { 0 }; \ 140 | clock_gettime(CLOCK_MONOTONIC_RAW, &ts); \ 141 | fprintf(fd, "Time: %ld.%06lds; ", ts.tv_sec, ts.tv_nsec / 1000); \ 142 | } \ 143 | fprintf(fd, "%s", "Info: "); \ 144 | fprintf(fd, __VA_ARGS__); \ 145 | fprintf(fd, " \n"); \ 146 | } 147 | #endif 148 | 149 | 150 | #endif 151 | -------------------------------------------------------------------------------- /man/qatzip-test.1: -------------------------------------------------------------------------------- 1 | .TH QATZIP-TEST 1 local 2 | .SH NAME 3 | qatzip-test \- test app for compression or decompression function and perf with qat acceleration 4 | .SH SYNOPSIS 5 | .ll +8 6 | .B qatzip-test 7 | .RB [ " \-m:t:A:C:D:F:L:T:i:l:e:s:r:B:O:S:P:M:b:p:g:vh " ] 8 | [ 9 | .I "name \&..." 10 | ] 11 | .ll -8 12 | .br 13 | .SH DESCRIPTION 14 | QATzip is a user space library which builds on top of the Intel QuickAssist 15 | Technology user space library, to provide extended accelerated compression and 16 | decompression services by offloading the actual compression and decompression 17 | request(s) to the Intel Chipset Series. 18 | qatzip-test is the test tool for validating QATzip user space library's functional 19 | and performance. It could construct different testing scenarios by combining 20 | various software selectable parameters, then Capture and analyze performance data 21 | The parameters include different compression data formats, block size, hw buffer 22 | size, test threads and so on... 23 | qatzip-test tool is design to take full advantage of the performance provided 24 | by Intel® QuickAssist Technology. 25 | 26 | .SH OPTIONS 27 | .TP 28 | .B \-m 29 | set test mode for different function of qatzip 30 | 1 test memcpy feature 31 | 2 test Memory 32 | 3 test comp/decomp by default parameters 33 | 4 test comp/decomp by configurable parameters 34 | 5 test comp/decomp by format parameters 35 | test set default configurable parameters 36 | .TP 37 | .B \-i 38 | input source file, default by random generate data 39 | .TP 40 | .B \-t 41 | maximum forks permitted in the current thread 42 | .TP 43 | .B \-l 44 | Test case loop count, default is 2 45 | .TP 46 | .B \-v 47 | verify, disabled by default 48 | .TP 49 | .B \-e 50 | enable/disable QAT HW. enabled by default 51 | .TP 52 | .B \-s 53 | enable/disable QAT session setup, enabled by default 54 | .TP 55 | .B \-A 56 | set compression algorithm, deflate/lz4/lz4s 57 | .TP 58 | .B \-B 59 | enable/disable QATzip sw fallback 60 | .TP 61 | .B \-C 62 | set HW buffer size 63 | .B \-b 64 | set API source block size 65 | .TP 66 | .B \-D 67 | set compression or decompression, comp | decomp | both 68 | .TP 69 | .B \-O 70 | set data format, deflate | gzip | gzipext | deflate_4B | lz4 | lz4s 71 | .TP 72 | .B \-T 73 | set huffman tree type, static | dynamic 74 | 75 | .SH COPYRIGHT 76 | .nf 77 | ################################################################ 78 | # BSD LICENSE 79 | # 80 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 81 | # All rights reserved. 82 | # 83 | # Redistribution and use in source and binary forms, with or without 84 | # modification, are permitted provided that the following conditions 85 | # are met: 86 | # 87 | # * Redistributions of source code must retain the above copyright 88 | # notice, this list of conditions and the following disclaimer. 89 | # * Redistributions in binary form must reproduce the above copyright 90 | # notice, this list of conditions and the following disclaimer in 91 | # the documentation and/or other materials provided with the 92 | # distribution. 93 | # * Neither the name of Intel Corporation nor the names of its 94 | # contributors may be used to endorse or promote products derived 95 | # from this software without specific prior written permission. 96 | # 97 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 98 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 99 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 100 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 101 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 102 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 103 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 104 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 105 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 106 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 107 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 108 | # 109 | ################################################################ 110 | .fi 111 | -------------------------------------------------------------------------------- /man/qzip.1: -------------------------------------------------------------------------------- 1 | .TH QZIP 1 local 2 | .SH NAME 3 | qzip \- compress or decompress with qat acceleration 4 | .SH SYNOPSIS 5 | .ll +8 6 | .B qzip 7 | .RB [ " \-AdfhHkLCro " ] 8 | [ 9 | .I "name \&..." 10 | ] 11 | .ll -8 12 | .br 13 | .SH DESCRIPTION 14 | QATzip is a user space library which builds on top of the Intel QuickAssist 15 | Technology user space library, to provide extended accelerated compression and 16 | decompression services by offloading the actual compression and decompression 17 | request(s) to the Intel Chipset Series. QATzip produces data using the standard 18 | gzip format (RFC1952) with extended headers. The data can be decompressed with a 19 | compliant gzip implementation. QATzip is design to take full advantage of the 20 | performance provided by Intel® QuickAssist Technology. 21 | 22 | .SH OPTIONS 23 | .TP 24 | .B \-A --algorithm 25 | set algorithm type, currently only support deflate 26 | .TP 27 | .B \-d --decompress 28 | decompress 29 | .TP 30 | .B \-f --force 31 | force overwrite of output file and compress links 32 | .TP 33 | .B \-h --help 34 | give this help 35 | .TP 36 | .B \-H --huffmanhdr 37 | set huffman header type 38 | .TP 39 | .B \-k --keep 40 | Keep (don't delete) input files during compression or decompression. 41 | .TP 42 | .B \-L --level 43 | set compression level 44 | .TP 45 | .B \-C --chunksz 46 | set chunk size 47 | .TP 48 | .B \-r 49 | set max in-flight request number 50 | .TP 51 | .B \-o 52 | set output file name 53 | 54 | .SH COPYRIGHT 55 | .nf 56 | ################################################################ 57 | # BSD LICENSE 58 | # 59 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 60 | # All rights reserved. 61 | # 62 | # Redistribution and use in source and binary forms, with or without 63 | # modification, are permitted provided that the following conditions 64 | # are met: 65 | # 66 | # * Redistributions of source code must retain the above copyright 67 | # notice, this list of conditions and the following disclaimer. 68 | # * Redistributions in binary form must reproduce the above copyright 69 | # notice, this list of conditions and the following disclaimer in 70 | # the documentation and/or other materials provided with the 71 | # distribution. 72 | # * Neither the name of Intel Corporation nor the names of its 73 | # contributors may be used to endorse or promote products derived 74 | # from this software without specific prior written permission. 75 | # 76 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 77 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 78 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 79 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 80 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 81 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 82 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 83 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 84 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 85 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 86 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 87 | # 88 | ################################################################ 89 | .fi 90 | -------------------------------------------------------------------------------- /qatzip.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: qatzip 7 | Description: Higher level library provides access to Intel QAT compression 8 | URL: https://github.com/intel/QATzip 9 | Version: @VERSION@ 10 | Libs: -L${libdir} -lqatzip 11 | Cflags: -I${includedir} 12 | Requires: zlib, liblz4 13 | -------------------------------------------------------------------------------- /qatzip.spec.in: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: MIT 2 | 3 | %global githubname @PACKAGE@ 4 | %global libqatzip_soversion 3 5 | 6 | Name: @PACKAGE@ 7 | Version: @VERSION@ 8 | Release: 1%{?dist} 9 | Summary: Intel QuickAssist Technology (QAT) QATzip Library 10 | License: BSD 11 | URL: https://github.com/intel/%{githubname} 12 | Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz 13 | 14 | BuildRequires: gcc >= 4.8.5 15 | BuildRequires: zlib-devel >= 1.2.7 16 | BuildRequires: qatlib-devel >= 22.07.0 17 | BuildRequires: autoconf automake libtool make lz4-devel numactl-devel 18 | # The purpose of the package is to support hardware that only exists on x86_64 platforms 19 | # https://bugzilla.redhat.com/show_bug.cgi?id=1987280 20 | ExclusiveArch: x86_64 21 | 22 | %description 23 | QATzip is a user space library which builds on top of the Intel 24 | QuickAssist Technology user space library, to provide extended 25 | accelerated compression and decompression services by offloading the 26 | actual compression and decompression request(s) to the Intel Chipset 27 | Series. QATzip produces data using the standard gzip* format 28 | (RFC1952) with extended headers. The data can be decompressed with a 29 | compliant gzip* implementation. QATzip is designed to take full 30 | advantage of the performance provided by Intel QuickAssist 31 | Technology. 32 | 33 | %package libs 34 | Summary: Libraries for the qatzip package 35 | 36 | %description libs 37 | This package contains libraries for applications to use 38 | the QATzip APIs. 39 | 40 | %package devel 41 | Summary: Development components for the libqatzip package 42 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} 43 | 44 | %description devel 45 | This package contains headers and libraries required to build 46 | applications that use the QATzip APIs. 47 | 48 | %prep 49 | %autosetup -p0 -n %{githubname}-%{version} 50 | 51 | %build 52 | %set_build_flags 53 | 54 | autoreconf -vif 55 | ./configure \ 56 | --bindir=%{_bindir} \ 57 | --libdir=%{_libdir} \ 58 | --includedir=%{_includedir} \ 59 | --mandir=%{_mandir} \ 60 | --prefix=%{_prefix} \ 61 | --enable-symbol 62 | 63 | %make_build 64 | 65 | %install 66 | %make_install 67 | rm %{buildroot}/%{_libdir}/libqatzip.a 68 | rm %{buildroot}/%{_libdir}/libqatzip.la 69 | rm -vf %{buildroot}%{_mandir}/*.pdf 70 | 71 | # Check section is not available for these functional and performance tests require special hardware. 72 | 73 | %files 74 | %license LICENSE* 75 | %{_mandir}/man1/qzip.1* 76 | %{_bindir}/qzip 77 | %{_bindir}/qatzip-test 78 | 79 | %files libs 80 | %license LICENSE* 81 | %{_libdir}/libqatzip.so.%{libqatzip_soversion}* 82 | 83 | %files devel 84 | %doc docs/QATzip-man.pdf 85 | %{_includedir}/qatzip.h 86 | %{_libdir}/libqatzip.so 87 | %{_libdir}/pkgconfig/*.pc 88 | 89 | %changelog 90 | * Thu Apr 10 2025 xinghong - 1.3.1-1 91 | - Update to qatzip v1.3.1 92 | - Fix qatzip docker file build broken issue 93 | 94 | * Tue Mar 18 2025 xinghong - 1.3.0-1 95 | - Update to qatzip v1.3.0 96 | - Support Latency sesitive mode for qatzip 97 | - Add a suit of comp/decomp API to support Async offloading 98 | - Support zlib format and end of stream flag 99 | - Fix some bugs 100 | 101 | * Fri Jan 05 2024 taorong - 1.2.0-1 102 | - Update to qatzip v1.2.0 103 | - Add qatzip-test tool 104 | - SW fallback 105 | - Fix some bugs 106 | 107 | * Mon Mar 06 2023 xinghong - 1.1.2-1 108 | - Update to qatzip v1.1.2 109 | - Update README, update driver configure files 110 | - Fix some bugs 111 | 112 | * Fri Jan 20 2023 Fedora Release Engineering - 1.1.1-2 113 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild 114 | 115 | * Wed Jan 11 2023 Vladis Dronov - 1.1.1-1 116 | - Update to qatzip v1.1.1 117 | - Add support for pkgconfig 118 | 119 | * Thu Nov 24 2022 Vladis Dronov - 1.1.0-1 120 | - Rebuild for qatzip v1.1.0 121 | 122 | * Mon Aug 08 2022 Vladis Dronov - 1.0.9-1 123 | - Rebuild for qatzip v1.0.9 124 | - Update to require qatlib-devel >= 22.07.0 due to soversion bump 125 | 126 | * Fri Jul 22 2022 Fedora Release Engineering - 1.0.7-2 127 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild 128 | 129 | * Wed Feb 09 2022 Vladis Dronov - 1.0.7-1 130 | - Rebuild for qatzip v1.0.7 131 | - Fix snprintf truncation check (bz 2046925) 132 | - Add -fstack-protector-strong build option (bz 2044889) 133 | 134 | * Fri Jan 21 2022 Fedora Release Engineering - 1.0.6-4 135 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild 136 | 137 | * Mon Sep 13 2021 zm627 - 1.0.6-3 138 | - Rebuild for qatzip v1.0.6 139 | 140 | * Sun Sep 12 2021 zm627 - 1.0.6-2 141 | - Upload new qatzip source package and rebuild 142 | 143 | * Sun Sep 12 2021 zm627 - 1.0.6-1 144 | - Update to latest qatlib and qatzip upstream release 145 | 146 | * Sun Sep 12 2021 zm627 - 1.0.5-3 147 | - Add ExcludeArch ticket number 148 | 149 | * Sun Sep 12 2021 zm627 - 1.0.5-2 150 | - Rebuilt for qatlib v21.08 151 | 152 | * Tue Jul 13 2021 Ma Zheng - 1.0.5-1 153 | - Initial version of RPM Package 154 | -------------------------------------------------------------------------------- /specgen.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | ################################################################ 3 | # BSD LICENSE 4 | # 5 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 6 | # All rights reserved. 7 | # 8 | # Redistribution and use in source and binary forms, with or without 9 | # modification, are permitted provided that the following conditions 10 | # are met: 11 | # 12 | # * Redistributions of source code must retain the above copyright 13 | # notice, this list of conditions and the following disclaimer. 14 | # * Redistributions in binary form must reproduce the above copyright 15 | # notice, this list of conditions and the following disclaimer in 16 | # the documentation and/or other materials provided with the 17 | # distribution. 18 | # * Neither the name of Intel Corporation nor the names of its 19 | # contributors may be used to endorse or promote products derived 20 | # from this software without specific prior written permission. 21 | # 22 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | # 34 | ################################################################ 35 | set -o errexit 36 | 37 | # extract version numbers from qatzip_internal.h 38 | VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < src/qatzip_internal.h` 39 | 40 | # Generate qatzip.spec 41 | echo "Generating qatzip.spec" 42 | echo "QATzip version: $VER" 43 | sed < qatzip.spec.in 's/VERSION/'"$VER"'/g'> qatzip.spec 44 | 45 | if [ -f qatzip.spec ];then 46 | echo "qatzip.spec generated" 47 | else 48 | echo "Failed to generate qatzip.spec" 49 | fi 50 | -------------------------------------------------------------------------------- /src/Makefile.am: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # BSD LICENSE 3 | # 4 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 5 | # All rights reserved. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of Intel Corporation nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | # 33 | ################################################################ 34 | 35 | lib_LTLIBRARIES = libqatzip.la 36 | libqatzip_la_SOURCES = \ 37 | qatzip.c \ 38 | qatzip_counter.c \ 39 | qatzip_gzip.c \ 40 | qatzip_mem.c \ 41 | qatzip_stream.c \ 42 | qatzip_sw.c \ 43 | qatzip_utils.c \ 44 | qatzip_lz4.c \ 45 | xxhash.c 46 | libqatzip_la_CFLAGS = \ 47 | -I./ \ 48 | -I../include/ \ 49 | $(COMMON_CFLAGS) \ 50 | $(SAL_CFLAGS) \ 51 | $(ADF_CFLAGS) \ 52 | $(ICP_INCLUDE_CFLAGS) \ 53 | $(AM_CFLAGS) 54 | libqatzip_la_LDFLAGS = \ 55 | -version-info $(LIBQATZIP_VERSION) \ 56 | $(ICP_LDFLAGS) 57 | 58 | libqatzip_la_LIBADD= $(QATLIB_FLAGS) \ 59 | $(USDMLIB_FLAGS) 60 | -------------------------------------------------------------------------------- /src/qatzip_counter.c: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * 3 | * BSD LICENSE 4 | * 5 | * Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions 10 | * are met: 11 | * 12 | * * Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * * Redistributions in binary form must reproduce the above copyright 15 | * notice, this list of conditions and the following disclaimer in 16 | * the documentation and/or other materials provided with the 17 | * distribution. 18 | * * Neither the name of Intel Corporation nor the names of its 19 | * contributors may be used to endorse or promote products derived 20 | * from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | * 34 | ***************************************************************************/ 35 | 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | 43 | #ifdef HAVE_QAT_HEADERS 44 | #include 45 | #include 46 | #else 47 | #include 48 | #include 49 | #endif 50 | #include "qatzip.h" 51 | #include "qatzip_internal.h" 52 | #include "qz_utils.h" 53 | 54 | extern processData_T g_process; 55 | 56 | void dumpCounters(QzInstance_T *inst) 57 | { 58 | int i; 59 | 60 | if (inst->mem_setup == 0) { 61 | QZ_INFO("\tNot in use\n"); 62 | return; 63 | } 64 | 65 | for (i = 0; i < inst->dest_count; i++) { 66 | QZ_INFO("\tbuffer %d\t ses %ld\t %ld %ld %ld %ld\n", 67 | i, inst->stream[i].seq, inst->stream[i].src1, 68 | inst->stream[i].src2, inst->stream[i].sink1, 69 | inst->stream[i].sink2); 70 | } 71 | } 72 | 73 | void dumpAllCounters(void) 74 | { 75 | int i; 76 | 77 | for (i = 0; i < g_process.num_instances; i++) { 78 | QZ_INFO("Instance %d\n", i); 79 | dumpCounters(&g_process.qz_inst[i]); 80 | QZ_INFO("\n"); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/qatzip_page_table.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * 3 | * BSD LICENSE 4 | * 5 | * Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions 10 | * are met: 11 | * 12 | * * Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * * Redistributions in binary form must reproduce the above copyright 15 | * notice, this list of conditions and the following disclaimer in 16 | * the documentation and/or other materials provided with the 17 | * distribution. 18 | * * Neither the name of Intel Corporation nor the names of its 19 | * contributors may be used to endorse or promote products derived 20 | * from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | * 34 | ***************************************************************************/ 35 | 36 | 37 | #ifndef _QATZIP_PAGE_TABLE_H 38 | #define _QATZIP_PAGE_TABLE_H 39 | 40 | #include 41 | #include 42 | #include 43 | 44 | #define PAGE_SHIFT (12) 45 | #define PAGE_SIZE (0x1000) 46 | #define PAGE_MASK (~(PAGE_SIZE - 1)) 47 | #define LEVEL_SIZE (PAGE_SIZE / sizeof(uint64_t)) 48 | #define PINNED (-1) 49 | 50 | typedef struct __attribute__((__packed__)) 51 | { 52 | uint32_t offset : 12; 53 | uint32_t idxl0 : 9; 54 | uint32_t idxl1 : 9; 55 | uint32_t idxl2 : 9; 56 | uint32_t idxl3 : 9; 57 | } 58 | QzPageEntry_T; 59 | 60 | typedef union { 61 | uint64_t addr; 62 | QzPageEntry_T pg_entry; 63 | } QzPageIndex_T; 64 | 65 | typedef struct QzPageTable_T { 66 | union { 67 | uint64_t mt; 68 | struct QzPageTable_T *pt; 69 | } next[LEVEL_SIZE]; 70 | } QzPageTable_T; 71 | 72 | 73 | static inline void *nextLevel(QzPageTable_T *volatile *ptr) 74 | { 75 | QzPageTable_T *old_ptr = *ptr; 76 | QzPageTable_T *new_ptr; 77 | 78 | if (NULL != old_ptr) 79 | return old_ptr; 80 | 81 | new_ptr = mmap(NULL, 82 | sizeof(QzPageTable_T), 83 | PROT_READ | PROT_WRITE, 84 | MAP_PRIVATE | MAP_ANONYMOUS, 85 | -1, 86 | 0); 87 | if ((void *) - 1 == new_ptr) { 88 | QZ_ERROR("nextLevel: mmap error\n"); 89 | return NULL; 90 | } 91 | 92 | if (!__sync_bool_compare_and_swap(ptr, NULL, new_ptr)) 93 | munmap(new_ptr, sizeof(QzPageTable_T)); 94 | 95 | return *ptr; 96 | } 97 | 98 | static inline void freePageLevel(QzPageTable_T *const level, const size_t iter) 99 | { 100 | size_t i = 0; 101 | 102 | if (0 == iter) 103 | return; 104 | 105 | for (i = 0; i < LEVEL_SIZE; ++i) { 106 | QzPageTable_T *pt = level->next[i].pt; 107 | if (NULL != pt) { 108 | freePageLevel(pt, iter - 1); 109 | munmap(pt, sizeof(QzPageTable_T)); 110 | } 111 | } 112 | } 113 | 114 | static inline void freePageTable(QzPageTable_T *const table) 115 | { 116 | /* There are 1+3 levels in 48-bit page table for 4KB pages. */ 117 | freePageLevel(table, 3); 118 | /* Reset global root table. */ 119 | qzMemSet(table, 0, sizeof(QzPageTable_T)); 120 | } 121 | 122 | static inline int storeAddr(QzPageTable_T *level, 123 | uintptr_t virt, 124 | uint64_t type) 125 | { 126 | QzPageIndex_T id; 127 | 128 | id.addr = virt; 129 | 130 | level = nextLevel(&level->next[id.pg_entry.idxl3].pt); 131 | if (NULL == level) { 132 | return -1; 133 | } 134 | 135 | level = nextLevel(&level->next[id.pg_entry.idxl2].pt); 136 | if (NULL == level) { 137 | return -1; 138 | } 139 | 140 | level = nextLevel(&level->next[id.pg_entry.idxl1].pt); 141 | if (NULL == level) { 142 | return -1; 143 | } 144 | 145 | level->next[id.pg_entry.idxl0].mt = type; 146 | return 0; 147 | } 148 | 149 | static inline int storeMmapRange(QzPageTable_T *p_level, 150 | void *p_virt, 151 | uint64_t type, 152 | size_t p_size) 153 | { 154 | size_t offset; 155 | size_t page_size = PAGE_SIZE; 156 | const uintptr_t virt = (uintptr_t)p_virt; 157 | 158 | for (offset = 0; offset < p_size; offset += page_size) { 159 | if (0 != storeAddr(p_level, virt + offset, type)) { 160 | return -1; 161 | } 162 | } 163 | 164 | return 0; 165 | } 166 | 167 | static inline uint64_t loadAddr(QzPageTable_T *level, void *virt) 168 | { 169 | QzPageIndex_T id; 170 | 171 | id.addr = (uintptr_t)virt; 172 | 173 | level = level->next[id.pg_entry.idxl3].pt; 174 | if (NULL == level) 175 | return 0; 176 | 177 | level = level->next[id.pg_entry.idxl2].pt; 178 | if (NULL == level) 179 | return 0; 180 | 181 | level = level->next[id.pg_entry.idxl1].pt; 182 | if (NULL == level) 183 | return 0; 184 | 185 | return level->next[id.pg_entry.idxl0].mt; 186 | } 187 | 188 | #endif 189 | -------------------------------------------------------------------------------- /test/Makefile.am: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # BSD LICENSE 3 | # 4 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 5 | # All rights reserved. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of Intel Corporation nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | # 33 | ################################################################ 34 | 35 | noinst_PROGRAMS = bt 36 | bin_PROGRAMS = qatzip-test 37 | qatzip_test_SOURCES = main.c 38 | qatzip_test_CFLAGS = \ 39 | -I$(abs_top_srcdir)/include/ \ 40 | -I$(abs_top_srcdir)/src/ \ 41 | -I$(abs_top_srcdir)/utils/ \ 42 | $(COMMON_CFLAGS) \ 43 | $(ICP_INCLUDE_CFLAGS) 44 | qatzip_test_LDADD = \ 45 | $(abs_top_srcdir)/src/.libs/libqatzip.a \ 46 | $(QATLIB_FLAGS) \ 47 | $(USDMLIB_FLAGS) 48 | qatzip_test_LDFLAGS = \ 49 | $(ICP_LDFLAGS) 50 | 51 | bt_SOURCES = bt.c 52 | bt_CFLAGS = \ 53 | -I$(abs_top_srcdir)/include/ \ 54 | -I$(abs_top_srcdir)/src/ \ 55 | -I$(abs_top_srcdir)/utils/ \ 56 | $(COMMON_CFLAGS) \ 57 | $(ICP_INCLUDE_CFLAGS) 58 | bt_LDADD = \ 59 | $(abs_top_srcdir)/src/.libs/libqatzip.a \ 60 | $(QATLIB_FLAGS) \ 61 | $(USDMLIB_FLAGS) 62 | bt_LDFLAGS = \ 63 | $(ICP_LDFLAGS) 64 | -------------------------------------------------------------------------------- /test/code_format_tests/astylerc: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # BSD LICENSE 3 | # 4 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 5 | # All rights reserved. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of Intel Corporation nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | # 33 | ################################################################ 34 | 35 | 36 | # Bracket Style 37 | style=kr --keep-one-line-blocks # K&R brackets 38 | 39 | # Indentation 40 | indent=spaces # 4 white space 41 | min-conditional-indent=0 42 | 43 | # Padding 44 | unpad-paren # Remove all spaces with parens that aren't requested below 45 | pad-oper # Put spaces around operators 46 | pad-header # Put spaces between if/while/for etc. and the first paren 47 | 48 | # Pointers 49 | align-pointer=name # Align the * next to the variable name 50 | 51 | # Line wrapping 52 | max-code-length=80 # 80 character line limit 53 | break-after-logical # For if statements, wrap to the next line after logical operator 54 | 55 | # Line endings 56 | lineend=linux # LF line endings 57 | 58 | # General options 59 | suffix=none 60 | formatted 61 | -------------------------------------------------------------------------------- /test/code_format_tests/format.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | ################################################################ 3 | # BSD LICENSE 4 | # 5 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 6 | # All rights reserved. 7 | # 8 | # Redistribution and use in source and binary forms, with or without 9 | # modification, are permitted provided that the following conditions 10 | # are met: 11 | # 12 | # * Redistributions of source code must retain the above copyright 13 | # notice, this list of conditions and the following disclaimer. 14 | # * Redistributions in binary form must reproduce the above copyright 15 | # notice, this list of conditions and the following disclaimer in 16 | # the documentation and/or other materials provided with the 17 | # distribution. 18 | # * Neither the name of Intel Corporation nor the names of its 19 | # contributors may be used to endorse or promote products derived 20 | # from this software without specific prior written permission. 21 | # 22 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | # 34 | ################################################################ 35 | 36 | 37 | # exit on errors 38 | set -e 39 | : ${QZ_ROOT?} 40 | 41 | readonly BASEDIR=$(readlink -f $(dirname $0)) 42 | declare -i rc=0 43 | rm -f $BASEDIR/astyle.log 44 | 45 | if hash astyle; then 46 | echo -n "Checking coding style..." 47 | find $QZ_ROOT -iregex '.*\.[ch]' | \ 48 | xargs astyle --options=$BASEDIR/astylerc | \ 49 | tee -a $BASEDIR/astyle.log 50 | 51 | if grep -q "^Formatted" $BASEDIR/astyle.log; then 52 | echo -e "ERRORS detected\n" 53 | grep --color=auto "^Formatted.*" $BASEDIR/astyle.log 54 | echo "Incorrect code style detected in one or more files." 55 | echo "The files have been automatically formatted." 56 | rc=1 57 | else 58 | echo " OK" 59 | fi 60 | else 61 | echo "You do not have astyle installed so your code style is not being checked!" 62 | rc=2 63 | fi 64 | 65 | exit $rc 66 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/4xxx/4xxx_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default value for FW Auth loading 67 | FirmwareAuthEnabled = 1 68 | 69 | #Default values for number of concurrent requests*/ 70 | CyNumConcurrentSymRequests = 512 71 | CyNumConcurrentAsymRequests = 64 72 | 73 | #Statistics, valid values: 1,0 74 | statsGeneral = 1 75 | statsDh = 1 76 | statsDrbg = 1 77 | statsDsa = 1 78 | statsEcc = 1 79 | statsKeyGen = 1 80 | statsDc = 1 81 | statsLn = 1 82 | statsPrime = 1 83 | statsRsa = 1 84 | statsSym = 1 85 | 86 | # This flag is to enable SSF features (CNV and BnP) 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 0 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | ############################################## 123 | # Kernel Instances Section 124 | ############################################## 125 | [KERNEL] 126 | NumberCyInstances = 0 127 | NumberDcInstances = 0 128 | 129 | # Crypto - Kernel instance #0 130 | Cy0Name = "IPSec0" 131 | Cy0IsPolled = 0 132 | Cy0CoreAffinity = 0 133 | 134 | # Data Compression - Kernel instance #0 135 | Dc0Name = "IPComp0" 136 | Dc0IsPolled = 0 137 | Dc0CoreAffinity = 0 138 | 139 | ############################################## 140 | # ADI Section for Scalable IOV 141 | ############################################## 142 | [SIOV] 143 | NumberAdis = 0 144 | 145 | ############################################## 146 | # User Process Instance Section 147 | ############################################## 148 | [SHIM] 149 | NumberCyInstances = 0 150 | NumberDcInstances = 1 151 | NumProcesses = 6 152 | LimitDevAccess = 1 153 | 154 | # Crypto - User instance #0 155 | #Cy0Name = "SSL0" 156 | #Cy0IsPolled = 1 157 | ## List of core affinities 158 | #Cy0CoreAffinity = 1 159 | 160 | # Data Compression - User instance #0 161 | Dc0Name = "Dc0" 162 | Dc0IsPolled = 1 163 | # List of core affinities 164 | Dc0CoreAffinity = 1 165 | 166 | # Data Compression - User instance #1 167 | Dc1Name = "Dc1" 168 | Dc1IsPolled = 1 169 | # List of core affinities 170 | Dc1CoreAffinity =2 171 | 172 | # Data Compression - User instance #2 173 | Dc2Name = "Dc2" 174 | Dc2IsPolled = 1 175 | # List of core affinities 176 | Dc2CoreAffinity =3 177 | 178 | # Data Compression - User instance #3 179 | Dc3Name = "Dc3" 180 | Dc3IsPolled = 1 181 | # List of core affinities 182 | Dc3CoreAffinity =4 183 | 184 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/4xxx/4xxx_dev1.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default value for FW Auth loading 67 | FirmwareAuthEnabled = 1 68 | 69 | #Default values for number of concurrent requests*/ 70 | CyNumConcurrentSymRequests = 512 71 | CyNumConcurrentAsymRequests = 64 72 | 73 | #Statistics, valid values: 1,0 74 | statsGeneral = 1 75 | statsDh = 1 76 | statsDrbg = 1 77 | statsDsa = 1 78 | statsEcc = 1 79 | statsKeyGen = 1 80 | statsDc = 1 81 | statsLn = 1 82 | statsPrime = 1 83 | statsRsa = 1 84 | statsSym = 1 85 | 86 | # This flag is to enable SSF features (CNV and BnP) 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 0 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | ############################################## 123 | # Kernel Instances Section 124 | ############################################## 125 | [KERNEL] 126 | NumberCyInstances = 0 127 | NumberDcInstances = 0 128 | 129 | # Crypto - Kernel instance #0 130 | Cy0Name = "IPSec0" 131 | Cy0IsPolled = 0 132 | Cy0CoreAffinity = 0 133 | 134 | # Data Compression - Kernel instance #0 135 | Dc0Name = "IPComp0" 136 | Dc0IsPolled = 0 137 | Dc0CoreAffinity = 0 138 | 139 | ############################################## 140 | # ADI Section for Scalable IOV 141 | ############################################## 142 | [SIOV] 143 | NumberAdis = 0 144 | 145 | ############################################## 146 | # User Process Instance Section 147 | ############################################## 148 | [SHIM] 149 | NumberCyInstances = 0 150 | NumberDcInstances = 1 151 | NumProcesses = 6 152 | LimitDevAccess = 1 153 | 154 | # Crypto - User instance #0 155 | #Cy0Name = "SSL0" 156 | #Cy0IsPolled = 1 157 | ## List of core affinities 158 | #Cy0CoreAffinity = 1 159 | 160 | # Data Compression - User instance #0 161 | Dc0Name = "Dc0" 162 | Dc0IsPolled = 1 163 | # List of core affinities 164 | Dc0CoreAffinity = 1 165 | 166 | # Data Compression - User instance #1 167 | Dc1Name = "Dc1" 168 | Dc1IsPolled = 1 169 | # List of core affinities 170 | Dc1CoreAffinity =2 171 | 172 | # Data Compression - User instance #2 173 | Dc2Name = "Dc2" 174 | Dc2IsPolled = 1 175 | # List of core affinities 176 | Dc2CoreAffinity =3 177 | 178 | # Data Compression - User instance #3 179 | Dc3Name = "Dc3" 180 | Dc3IsPolled = 1 181 | # List of core affinities 182 | Dc3CoreAffinity =4 183 | 184 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/4xxx/4xxx_dev2.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default value for FW Auth loading 67 | FirmwareAuthEnabled = 1 68 | 69 | #Default values for number of concurrent requests*/ 70 | CyNumConcurrentSymRequests = 512 71 | CyNumConcurrentAsymRequests = 64 72 | 73 | #Statistics, valid values: 1,0 74 | statsGeneral = 1 75 | statsDh = 1 76 | statsDrbg = 1 77 | statsDsa = 1 78 | statsEcc = 1 79 | statsKeyGen = 1 80 | statsDc = 1 81 | statsLn = 1 82 | statsPrime = 1 83 | statsRsa = 1 84 | statsSym = 1 85 | 86 | # This flag is to enable SSF features (CNV and BnP) 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 0 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | ############################################## 123 | # Kernel Instances Section 124 | ############################################## 125 | [KERNEL] 126 | NumberCyInstances = 0 127 | NumberDcInstances = 0 128 | 129 | # Crypto - Kernel instance #0 130 | Cy0Name = "IPSec0" 131 | Cy0IsPolled = 0 132 | Cy0CoreAffinity = 0 133 | 134 | # Data Compression - Kernel instance #0 135 | Dc0Name = "IPComp0" 136 | Dc0IsPolled = 0 137 | Dc0CoreAffinity = 0 138 | 139 | ############################################## 140 | # ADI Section for Scalable IOV 141 | ############################################## 142 | [SIOV] 143 | NumberAdis = 0 144 | 145 | ############################################## 146 | # User Process Instance Section 147 | ############################################## 148 | [SHIM] 149 | NumberCyInstances = 0 150 | NumberDcInstances = 1 151 | NumProcesses = 6 152 | LimitDevAccess = 1 153 | 154 | # Crypto - User instance #0 155 | #Cy0Name = "SSL0" 156 | #Cy0IsPolled = 1 157 | ## List of core affinities 158 | #Cy0CoreAffinity = 1 159 | 160 | # Data Compression - User instance #0 161 | Dc0Name = "Dc0" 162 | Dc0IsPolled = 1 163 | # List of core affinities 164 | Dc0CoreAffinity = 1 165 | 166 | # Data Compression - User instance #1 167 | Dc1Name = "Dc1" 168 | Dc1IsPolled = 1 169 | # List of core affinities 170 | Dc1CoreAffinity =2 171 | 172 | # Data Compression - User instance #2 173 | Dc2Name = "Dc2" 174 | Dc2IsPolled = 1 175 | # List of core affinities 176 | Dc2CoreAffinity =3 177 | 178 | # Data Compression - User instance #3 179 | Dc3Name = "Dc3" 180 | Dc3IsPolled = 1 181 | # List of core affinities 182 | Dc3CoreAffinity =4 183 | 184 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/4xxx/4xxx_dev3.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default value for FW Auth loading 67 | FirmwareAuthEnabled = 1 68 | 69 | #Default values for number of concurrent requests*/ 70 | CyNumConcurrentSymRequests = 512 71 | CyNumConcurrentAsymRequests = 64 72 | 73 | #Statistics, valid values: 1,0 74 | statsGeneral = 1 75 | statsDh = 1 76 | statsDrbg = 1 77 | statsDsa = 1 78 | statsEcc = 1 79 | statsKeyGen = 1 80 | statsDc = 1 81 | statsLn = 1 82 | statsPrime = 1 83 | statsRsa = 1 84 | statsSym = 1 85 | 86 | # This flag is to enable SSF features (CNV and BnP) 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 0 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | ############################################## 123 | # Kernel Instances Section 124 | ############################################## 125 | [KERNEL] 126 | NumberCyInstances = 0 127 | NumberDcInstances = 0 128 | 129 | # Crypto - Kernel instance #0 130 | Cy0Name = "IPSec0" 131 | Cy0IsPolled = 0 132 | Cy0CoreAffinity = 0 133 | 134 | # Data Compression - Kernel instance #0 135 | Dc0Name = "IPComp0" 136 | Dc0IsPolled = 0 137 | Dc0CoreAffinity = 0 138 | 139 | ############################################## 140 | # ADI Section for Scalable IOV 141 | ############################################## 142 | [SIOV] 143 | NumberAdis = 0 144 | 145 | ############################################## 146 | # User Process Instance Section 147 | ############################################## 148 | [SHIM] 149 | NumberCyInstances = 0 150 | NumberDcInstances = 1 151 | NumProcesses = 6 152 | LimitDevAccess = 1 153 | 154 | # Crypto - User instance #0 155 | #Cy0Name = "SSL0" 156 | #Cy0IsPolled = 1 157 | ## List of core affinities 158 | #Cy0CoreAffinity = 1 159 | 160 | # Data Compression - User instance #0 161 | Dc0Name = "Dc0" 162 | Dc0IsPolled = 1 163 | # List of core affinities 164 | Dc0CoreAffinity = 1 165 | 166 | # Data Compression - User instance #1 167 | Dc1Name = "Dc1" 168 | Dc1IsPolled = 1 169 | # List of core affinities 170 | Dc1CoreAffinity =2 171 | 172 | # Data Compression - User instance #2 173 | Dc2Name = "Dc2" 174 | Dc2IsPolled = 1 175 | # List of core affinities 176 | Dc2CoreAffinity =3 177 | 178 | # Data Compression - User instance #3 179 | Dc3Name = "Dc3" 180 | Dc3IsPolled = 1 181 | # List of core affinities 182 | Dc3CoreAffinity =4 183 | 184 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/4xxx/4xxx_dev4.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default value for FW Auth loading 67 | FirmwareAuthEnabled = 1 68 | 69 | #Default values for number of concurrent requests*/ 70 | CyNumConcurrentSymRequests = 512 71 | CyNumConcurrentAsymRequests = 64 72 | 73 | #Statistics, valid values: 1,0 74 | statsGeneral = 1 75 | statsDh = 1 76 | statsDrbg = 1 77 | statsDsa = 1 78 | statsEcc = 1 79 | statsKeyGen = 1 80 | statsDc = 1 81 | statsLn = 1 82 | statsPrime = 1 83 | statsRsa = 1 84 | statsSym = 1 85 | 86 | # This flag is to enable SSF features (CNV and BnP) 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 0 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | ############################################## 123 | # Kernel Instances Section 124 | ############################################## 125 | [KERNEL] 126 | NumberCyInstances = 0 127 | NumberDcInstances = 0 128 | 129 | # Crypto - Kernel instance #0 130 | Cy0Name = "IPSec0" 131 | Cy0IsPolled = 0 132 | Cy0CoreAffinity = 0 133 | 134 | # Data Compression - Kernel instance #0 135 | Dc0Name = "IPComp0" 136 | Dc0IsPolled = 0 137 | Dc0CoreAffinity = 0 138 | 139 | ############################################## 140 | # ADI Section for Scalable IOV 141 | ############################################## 142 | [SIOV] 143 | NumberAdis = 0 144 | 145 | ############################################## 146 | # User Process Instance Section 147 | ############################################## 148 | [SHIM] 149 | NumberCyInstances = 0 150 | NumberDcInstances = 1 151 | NumProcesses = 6 152 | LimitDevAccess = 1 153 | 154 | # Crypto - User instance #0 155 | #Cy0Name = "SSL0" 156 | #Cy0IsPolled = 1 157 | ## List of core affinities 158 | #Cy0CoreAffinity = 1 159 | 160 | # Data Compression - User instance #0 161 | Dc0Name = "Dc0" 162 | Dc0IsPolled = 1 163 | # List of core affinities 164 | Dc0CoreAffinity = 1 165 | 166 | # Data Compression - User instance #1 167 | Dc1Name = "Dc1" 168 | Dc1IsPolled = 1 169 | # List of core affinities 170 | Dc1CoreAffinity =2 171 | 172 | # Data Compression - User instance #2 173 | Dc2Name = "Dc2" 174 | Dc2IsPolled = 1 175 | # List of core affinities 176 | Dc2CoreAffinity =3 177 | 178 | # Data Compression - User instance #3 179 | Dc3Name = "Dc3" 180 | Dc3IsPolled = 1 181 | # List of core affinities 182 | Dc3CoreAffinity =4 183 | 184 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/4xxx/4xxx_dev5.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default value for FW Auth loading 67 | FirmwareAuthEnabled = 1 68 | 69 | #Default values for number of concurrent requests*/ 70 | CyNumConcurrentSymRequests = 512 71 | CyNumConcurrentAsymRequests = 64 72 | 73 | #Statistics, valid values: 1,0 74 | statsGeneral = 1 75 | statsDh = 1 76 | statsDrbg = 1 77 | statsDsa = 1 78 | statsEcc = 1 79 | statsKeyGen = 1 80 | statsDc = 1 81 | statsLn = 1 82 | statsPrime = 1 83 | statsRsa = 1 84 | statsSym = 1 85 | 86 | # This flag is to enable SSF features (CNV and BnP) 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 0 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | ############################################## 123 | # Kernel Instances Section 124 | ############################################## 125 | [KERNEL] 126 | NumberCyInstances = 0 127 | NumberDcInstances = 0 128 | 129 | # Crypto - Kernel instance #0 130 | Cy0Name = "IPSec0" 131 | Cy0IsPolled = 0 132 | Cy0CoreAffinity = 0 133 | 134 | # Data Compression - Kernel instance #0 135 | Dc0Name = "IPComp0" 136 | Dc0IsPolled = 0 137 | Dc0CoreAffinity = 0 138 | 139 | ############################################## 140 | # ADI Section for Scalable IOV 141 | ############################################## 142 | [SIOV] 143 | NumberAdis = 0 144 | 145 | ############################################## 146 | # User Process Instance Section 147 | ############################################## 148 | [SHIM] 149 | NumberCyInstances = 0 150 | NumberDcInstances = 1 151 | NumProcesses = 6 152 | LimitDevAccess = 1 153 | 154 | # Crypto - User instance #0 155 | #Cy0Name = "SSL0" 156 | #Cy0IsPolled = 1 157 | ## List of core affinities 158 | #Cy0CoreAffinity = 1 159 | 160 | # Data Compression - User instance #0 161 | Dc0Name = "Dc0" 162 | Dc0IsPolled = 1 163 | # List of core affinities 164 | Dc0CoreAffinity = 1 165 | 166 | # Data Compression - User instance #1 167 | Dc1Name = "Dc1" 168 | Dc1IsPolled = 1 169 | # List of core affinities 170 | Dc1CoreAffinity =2 171 | 172 | # Data Compression - User instance #2 173 | Dc2Name = "Dc2" 174 | Dc2IsPolled = 1 175 | # List of core affinities 176 | Dc2CoreAffinity =3 177 | 178 | # Data Compression - User instance #3 179 | Dc3Name = "Dc3" 180 | Dc3IsPolled = 1 181 | # List of core affinities 182 | Dc3CoreAffinity =4 183 | 184 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/4xxx/4xxx_dev6.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default value for FW Auth loading 67 | FirmwareAuthEnabled = 1 68 | 69 | #Default values for number of concurrent requests*/ 70 | CyNumConcurrentSymRequests = 512 71 | CyNumConcurrentAsymRequests = 64 72 | 73 | #Statistics, valid values: 1,0 74 | statsGeneral = 1 75 | statsDh = 1 76 | statsDrbg = 1 77 | statsDsa = 1 78 | statsEcc = 1 79 | statsKeyGen = 1 80 | statsDc = 1 81 | statsLn = 1 82 | statsPrime = 1 83 | statsRsa = 1 84 | statsSym = 1 85 | 86 | # This flag is to enable SSF features (CNV and BnP) 87 | StorageEnabled = 0 88 | 89 | # Disable public key crypto and prime number 90 | # services by specifying a value of 1 (default is 0) 91 | PkeServiceDisabled = 0 92 | 93 | # This flag is to enable device auto reset on heartbeat error 94 | AutoResetOnError = 0 95 | 96 | # Default value for power management idle interrupt delay 97 | PmIdleInterruptDelay = 0 98 | 99 | # This flag is to enable power management idle support 100 | PmIdleSupport = 1 101 | 102 | # This flag is to enable key protection technology 103 | KptEnabled = 1 104 | 105 | # Define the maximum SWK count per function can have 106 | # Default value is 1, the maximum value is 128 107 | KptMaxSWKPerFn = 1 108 | 109 | # Define the maximum SWK count per pasid can have 110 | # Default value is 1, the maximum value is 128 111 | KptMaxSWKPerPASID = 1 112 | 113 | # Define the maximum SWK lifetime in second 114 | # Default value is 0 (eternal of life) 115 | # The maximum value is 31536000 (one year) 116 | KptMaxSWKLifetime = 31536000 117 | 118 | # Flag to define whether to allow SWK to be shared among processes 119 | # Default value is 0 (shared mode is off) 120 | KptSWKShared = 0 121 | 122 | ############################################## 123 | # Kernel Instances Section 124 | ############################################## 125 | [KERNEL] 126 | NumberCyInstances = 0 127 | NumberDcInstances = 0 128 | 129 | # Crypto - Kernel instance #0 130 | Cy0Name = "IPSec0" 131 | Cy0IsPolled = 0 132 | Cy0CoreAffinity = 0 133 | 134 | # Data Compression - Kernel instance #0 135 | Dc0Name = "IPComp0" 136 | Dc0IsPolled = 0 137 | Dc0CoreAffinity = 0 138 | 139 | ############################################## 140 | # ADI Section for Scalable IOV 141 | ############################################## 142 | [SIOV] 143 | NumberAdis = 0 144 | 145 | ############################################## 146 | # User Process Instance Section 147 | ############################################## 148 | [SHIM] 149 | NumberCyInstances = 0 150 | NumberDcInstances = 1 151 | NumProcesses = 6 152 | LimitDevAccess = 1 153 | 154 | # Crypto - User instance #0 155 | #Cy0Name = "SSL0" 156 | #Cy0IsPolled = 1 157 | ## List of core affinities 158 | #Cy0CoreAffinity = 1 159 | 160 | # Data Compression - User instance #0 161 | Dc0Name = "Dc0" 162 | Dc0IsPolled = 1 163 | # List of core affinities 164 | Dc0CoreAffinity = 1 165 | 166 | # Data Compression - User instance #1 167 | Dc1Name = "Dc1" 168 | Dc1IsPolled = 1 169 | # List of core affinities 170 | Dc1CoreAffinity =2 171 | 172 | # Data Compression - User instance #2 173 | Dc2Name = "Dc2" 174 | Dc2IsPolled = 1 175 | # List of core affinities 176 | Dc2CoreAffinity =3 177 | 178 | # Data Compression - User instance #3 179 | Dc3Name = "Dc3" 180 | Dc3IsPolled = 1 181 | # List of core affinities 182 | Dc3CoreAffinity =4 183 | 184 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/c6xx/c6xx_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # version: QAT1.7.L.4.5.0-00034 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = cy;dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | KptEnabled = 0 83 | 84 | # This flag is to enable SSF features 85 | StorageEnabled = 0 86 | 87 | # Disable public key crypto and prime number 88 | # services by specifying a value of 1 (default is 0) 89 | PkeServiceDisabled = 0 90 | 91 | # Specify size of intermediate buffers for which to 92 | # allocate on-chip buffers. Legal values are 32 and 93 | # 64 (default is 64). Specify 32 to optimize for 94 | # compressing buffers <=32KB in size. 95 | DcIntermediateBufferSizeInKB = 64 96 | 97 | # This flag is to enable device auto reset on heartbeat error 98 | AutoResetOnError = 0 99 | 100 | ############################################## 101 | # Kernel Instances Section 102 | ############################################## 103 | [KERNEL] 104 | NumberCyInstances = 0 105 | NumberDcInstances = 0 106 | 107 | # Crypto - Kernel instance #0 108 | Cy0Name = "IPSec0" 109 | Cy0IsPolled = 0 110 | Cy0CoreAffinity = 0 111 | 112 | ############################################## 113 | # User Process Instance Section 114 | ############################################## 115 | [SHIM] 116 | NumberCyInstances = 0 117 | NumberDcInstances = 4 118 | NumProcesses = 8 119 | LimitDevAccess = 1 120 | 121 | # Crypto - User instance #0 122 | #Cy0Name = "SSL0" 123 | #Cy0IsPolled = 1 124 | ## List of core affinities 125 | #Cy0CoreAffinity = 0 126 | 127 | 128 | # Data Compression - User instance #0 129 | Dc0Name = "Dc0" 130 | Dc0IsPolled = 1 131 | # List of core affinities 132 | Dc0CoreAffinity = 0 133 | 134 | # Data Compression - User instance #1 135 | Dc1Name = "Dc1" 136 | Dc1IsPolled = 1 137 | # List of core affinities 138 | Dc1CoreAffinity = 0 139 | 140 | # Data Compression - User instance #2 141 | Dc2Name = "Dc2" 142 | Dc2IsPolled = 1 143 | # List of core affinities 144 | Dc2CoreAffinity = 0 145 | 146 | # Data Compression - User instance #3 147 | Dc3Name = "Dc3" 148 | Dc3IsPolled = 1 149 | # List of core affinities 150 | Dc3CoreAffinity = 0 151 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/c6xx/c6xx_dev1.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # version: QAT1.7.L.4.5.0-00034 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = cy;dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | KptEnabled = 0 83 | 84 | # This flag is to enable SSF features 85 | StorageEnabled = 0 86 | 87 | # Disable public key crypto and prime number 88 | # services by specifying a value of 1 (default is 0) 89 | PkeServiceDisabled = 0 90 | 91 | # Specify size of intermediate buffers for which to 92 | # allocate on-chip buffers. Legal values are 32 and 93 | # 64 (default is 64). Specify 32 to optimize for 94 | # compressing buffers <=32KB in size. 95 | DcIntermediateBufferSizeInKB = 64 96 | 97 | # This flag is to enable device auto reset on heartbeat error 98 | AutoResetOnError = 0 99 | 100 | ############################################## 101 | # Kernel Instances Section 102 | ############################################## 103 | [KERNEL] 104 | NumberCyInstances = 0 105 | NumberDcInstances = 0 106 | 107 | # Crypto - Kernel instance #0 108 | Cy0Name = "IPSec0" 109 | Cy0IsPolled = 0 110 | Cy0CoreAffinity = 0 111 | 112 | ############################################## 113 | # User Process Instance Section 114 | ############################################## 115 | [SHIM] 116 | NumberCyInstances = 0 117 | NumberDcInstances = 4 118 | NumProcesses = 8 119 | LimitDevAccess = 1 120 | 121 | # Crypto - User instance #0 122 | #Cy0Name = "SSL0" 123 | #Cy0IsPolled = 1 124 | ## List of core affinities 125 | #Cy0CoreAffinity = 0 126 | 127 | 128 | # Data Compression - User instance #0 129 | Dc0Name = "Dc0" 130 | Dc0IsPolled = 1 131 | # List of core affinities 132 | Dc0CoreAffinity = 0 133 | 134 | # Data Compression - User instance #1 135 | Dc1Name = "Dc1" 136 | Dc1IsPolled = 1 137 | # List of core affinities 138 | Dc1CoreAffinity = 0 139 | 140 | # Data Compression - User instance #2 141 | Dc2Name = "Dc2" 142 | Dc2IsPolled = 1 143 | # List of core affinities 144 | Dc2CoreAffinity = 0 145 | 146 | # Data Compression - User instance #3 147 | Dc3Name = "Dc3" 148 | Dc3IsPolled = 1 149 | # List of core affinities 150 | Dc3CoreAffinity = 0 151 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/c6xx/c6xx_dev2.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # version: QAT1.7.L.4.5.0-00034 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = cy;dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | KptEnabled = 0 83 | 84 | # This flag is to enable SSF features 85 | StorageEnabled = 0 86 | 87 | # Disable public key crypto and prime number 88 | # services by specifying a value of 1 (default is 0) 89 | PkeServiceDisabled = 0 90 | 91 | # Specify size of intermediate buffers for which to 92 | # allocate on-chip buffers. Legal values are 32 and 93 | # 64 (default is 64). Specify 32 to optimize for 94 | # compressing buffers <=32KB in size. 95 | DcIntermediateBufferSizeInKB = 64 96 | 97 | # This flag is to enable device auto reset on heartbeat error 98 | AutoResetOnError = 0 99 | 100 | ############################################## 101 | # Kernel Instances Section 102 | ############################################## 103 | [KERNEL] 104 | NumberCyInstances = 0 105 | NumberDcInstances = 0 106 | 107 | # Crypto - Kernel instance #0 108 | Cy0Name = "IPSec0" 109 | Cy0IsPolled = 0 110 | Cy0CoreAffinity = 0 111 | 112 | ############################################## 113 | # User Process Instance Section 114 | ############################################## 115 | [SHIM] 116 | NumberCyInstances = 0 117 | NumberDcInstances = 4 118 | NumProcesses = 8 119 | LimitDevAccess = 1 120 | 121 | # Crypto - User instance #0 122 | #Cy0Name = "SSL0" 123 | #Cy0IsPolled = 1 124 | ## List of core affinities 125 | #Cy0CoreAffinity = 0 126 | 127 | 128 | # Data Compression - User instance #0 129 | Dc0Name = "Dc0" 130 | Dc0IsPolled = 1 131 | # List of core affinities 132 | Dc0CoreAffinity = 0 133 | 134 | # Data Compression - User instance #1 135 | Dc1Name = "Dc1" 136 | Dc1IsPolled = 1 137 | # List of core affinities 138 | Dc1CoreAffinity = 0 139 | 140 | # Data Compression - User instance #2 141 | Dc2Name = "Dc2" 142 | Dc2IsPolled = 1 143 | # List of core affinities 144 | Dc2CoreAffinity = 0 145 | 146 | # Data Compression - User instance #3 147 | Dc3Name = "Dc3" 148 | Dc3IsPolled = 1 149 | # List of core affinities 150 | Dc3CoreAffinity = 0 151 | -------------------------------------------------------------------------------- /test/performance_tests/config_file/dh895xcc/dh895xcc_dev0.conf: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # This file is provided under a dual BSD/GPLv2 license. When using or 3 | # redistributing this file, you may do so under either license. 4 | # 5 | # GPL LICENSE SUMMARY 6 | # 7 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of version 2 of the GNU General Public License as 11 | # published by the Free Software Foundation. 12 | # 13 | # This program is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | # General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21 | # The full GNU General Public License is included in this distribution 22 | # in the file called LICENSE.GPL. 23 | # 24 | # Contact Information: 25 | # Intel Corporation 26 | # 27 | # BSD LICENSE 28 | # 29 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 30 | # All rights reserved. 31 | # 32 | # Redistribution and use in source and binary forms, with or without 33 | # modification, are permitted provided that the following conditions 34 | # are met: 35 | # 36 | # * Redistributions of source code must retain the above copyright 37 | # notice, this list of conditions and the following disclaimer. 38 | # * Redistributions in binary form must reproduce the above copyright 39 | # notice, this list of conditions and the following disclaimer in 40 | # the documentation and/or other materials provided with the 41 | # distribution. 42 | # * Neither the name of Intel Corporation nor the names of its 43 | # contributors may be used to endorse or promote products derived 44 | # from this software without specific prior written permission. 45 | # 46 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 47 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 48 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 49 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 50 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 52 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 54 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 55 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 56 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 | # 58 | # 59 | # version: QAT1.7.L.4.5.0-00034 60 | ################################################################ 61 | [GENERAL] 62 | ServicesEnabled = cy;dc 63 | 64 | ConfigVersion = 2 65 | 66 | #Default values for number of concurrent requests*/ 67 | CyNumConcurrentSymRequests = 512 68 | CyNumConcurrentAsymRequests = 64 69 | 70 | #Statistics, valid values: 1,0 71 | statsGeneral = 1 72 | statsDh = 1 73 | statsDrbg = 1 74 | statsDsa = 1 75 | statsEcc = 1 76 | statsKeyGen = 1 77 | statsDc = 1 78 | statsLn = 1 79 | statsPrime = 1 80 | statsRsa = 1 81 | statsSym = 1 82 | 83 | # This flag is to enable device auto reset on heartbeat error 84 | AutoResetOnError = 0 85 | 86 | # This flag is to enable SSF features 87 | StorageEnabled = 0 88 | 89 | ############################################## 90 | # Kernel Instances Section 91 | ############################################## 92 | [KERNEL] 93 | NumberCyInstances = 0 94 | NumberDcInstances = 0 95 | 96 | # Crypto - Kernel instance #0 97 | Cy0Name = "IPSec0" 98 | Cy0IsPolled = 0 99 | Cy0CoreAffinity = 0 100 | 101 | ############################################## 102 | # User Process Instance Section 103 | ############################################## 104 | [SHIM] 105 | NumberCyInstances = 0 106 | NumberDcInstances = 4 107 | NumProcesses = 8 108 | LimitDevAccess = 1 109 | 110 | # Crypto - User instance #0 111 | #Cy0Name = "SSL0" 112 | #Cy0IsPolled = 1 113 | ## List of core affinities 114 | #Cy0CoreAffinity = 0 115 | 116 | # Data Compression - User instance #0 117 | Dc0Name = "Dc0" 118 | Dc0IsPolled = 1 119 | # List of core affinities 120 | Dc0CoreAffinity = 0 121 | 122 | # Data Compression - User instance #1 123 | Dc1Name = "Dc1" 124 | Dc1IsPolled = 1 125 | # List of core affinities 126 | Dc1CoreAffinity = 0 127 | 128 | # Data Compression - User instance #2 129 | Dc2Name = "Dc2" 130 | Dc2IsPolled = 1 131 | # List of core affinities 132 | Dc2CoreAffinity = 0 133 | 134 | # Data Compression - User instance #3 135 | Dc3Name = "Dc3" 136 | Dc3IsPolled = 1 137 | # List of core affinities 138 | Dc3CoreAffinity = 0 139 | -------------------------------------------------------------------------------- /test/performance_tests/run_perf_test.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | ################################################################ 3 | # BSD LICENSE 4 | # 5 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 6 | # All rights reserved. 7 | # 8 | # Redistribution and use in source and binary forms, with or without 9 | # modification, are permitted provided that the following conditions 10 | # are met: 11 | # 12 | # * Redistributions of source code must retain the above copyright 13 | # notice, this list of conditions and the following disclaimer. 14 | # * Redistributions in binary form must reproduce the above copyright 15 | # notice, this list of conditions and the following disclaimer in 16 | # the documentation and/or other materials provided with the 17 | # distribution. 18 | # * Neither the name of Intel Corporation nor the names of its 19 | # contributors may be used to endorse or promote products derived 20 | # from this software without specific prior written permission. 21 | # 22 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | # 34 | ################################################################ 35 | 36 | set -e 37 | echo "***QZ_ROOT run_perf_test.sh start" 38 | 39 | rm -f result_comp_stderr 40 | rm -f result_decomp_stderr 41 | 42 | CURRENT_PATH=`dirname $(readlink -f "$0")` 43 | 44 | #check whether qatzip-test exists 45 | if [ ! -f "$QZ_ROOT/test/qatzip-test" ]; then 46 | echo "$QZ_ROOT/test/qatzip-test: No such file. Compile first!" 47 | exit 1 48 | fi 49 | 50 | #get the type of QAT hardware 51 | platform=`lspci | grep Co-processor | awk '{print $6}' | head -1` 52 | if [[ $platform != "37c8" && $platform != "4940" ]] 53 | then 54 | platform=`lspci | grep Co-processor | awk '{print $5}' | head -1` 55 | if [[ $platform != "DH895XCC" && $platform != "C62x" ]] 56 | then 57 | platform=`lspci | grep Co-processor | awk '{print $7}' | head -1` 58 | if [ $platform != "C3000" ] 59 | then 60 | echo "Unsupported Platform: `lspci | grep Co-processor` " 61 | exit 1 62 | fi 63 | fi 64 | fi 65 | echo "platform=$platform" 66 | 67 | 68 | #Replace the driver configuration files and configure hugepages 69 | echo "Replace the driver configuration files and configure hugepages." 70 | if [[ $platform = "37c8" || $platform = "C62x" ]] 71 | then 72 | process=24 73 | \cp $CURRENT_PATH/config_file/c6xx/c6xx_dev0.conf /etc 74 | \cp $CURRENT_PATH/config_file/c6xx/c6xx_dev1.conf /etc 75 | \cp $CURRENT_PATH/config_file/c6xx/c6xx_dev2.conf /etc 76 | elif [ $platform = "DH895XCC" ] 77 | then 78 | process=8 79 | \cp $CURRENT_PATH/config_file/dh895xcc/dh895xcc_dev0.conf /etc 80 | elif [ $platform = "4940" ] 81 | then 82 | process=48 83 | \cp $CURRENT_PATH/config_file/4xxx/4xxx*.conf /etc 84 | elif [ $platform = "C3000" ] 85 | then 86 | process=4 87 | \cp $CURRENT_PATH/config_file/c3xxx/c3xxx_dev0.conf /etc 88 | fi 89 | /etc/init.d/qat_service restart 90 | echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages 91 | rmmod usdm_drv 92 | insmod $ICP_ROOT/build/usdm_drv.ko max_huge_pages=1024 max_huge_pages_per_process=24 93 | sleep 5 94 | 95 | #Perform performance test 96 | echo "Perform performance test" 97 | thread=4 98 | if [ $platform = "4940" ] 99 | then 100 | thread=1 101 | fi 102 | 103 | echo > result_comp 104 | cpu_list=0 105 | for((numProc_comp = 0; numProc_comp < $process; numProc_comp ++)) 106 | do 107 | taskset -c $cpu_list $QZ_ROOT/test/qatzip-test -m 4 -l 1000 -t $thread -D comp >> result_comp 2>> result_comp_stderr & 108 | cpu_list=$(($cpu_list + 1)) 109 | done 110 | wait 111 | compthroughput=`awk '{sum+=$8} END{print sum}' result_comp` 112 | echo "compthroughput=$compthroughput Gbps" 113 | 114 | echo > result_decomp 115 | cpu_list=0 116 | for((numProc_decomp = 0; numProc_decomp < $process; numProc_decomp ++)) 117 | do 118 | taskset -c $cpu_list $QZ_ROOT/test/qatzip-test -m 4 -l 1000 -t $thread -D decomp >> result_decomp 2>> result_decomp_stderr & 119 | cpu_list=$(($cpu_list + 1)) 120 | done 121 | wait 122 | decompthroughput=`awk '{sum+=$8} END{print sum}' result_decomp` 123 | echo "decompthroughput=$decompthroughput Gbps" 124 | 125 | rm -f result_comp 126 | rm -f result_decomp 127 | echo "***QZ_ROOT run_perf_test.sh end" 128 | -------------------------------------------------------------------------------- /utils/Makefile.am: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # BSD LICENSE 3 | # 4 | # Copyright(c) 2007-2024 Intel Corporation. All rights reserved. 5 | # All rights reserved. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of Intel Corporation nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | # 33 | ################################################################ 34 | 35 | bin_PROGRAMS = qzip 36 | qzip_SOURCES = \ 37 | qzip_7z.c \ 38 | qzip_main.c \ 39 | qzip.c 40 | qzip_CFLAGS = \ 41 | -I$(abs_top_srcdir)/include/ \ 42 | -I$(abs_top_srcdir)/src/ \ 43 | -I$(abs_top_srcdir)/utils/ \ 44 | $(COMMON_CFLAGS) \ 45 | $(ICP_INCLUDE_CFLAGS) 46 | qzip_LDADD = \ 47 | $(abs_top_srcdir)/src/.libs/libqatzip.a \ 48 | $(QATLIB_FLAGS) \ 49 | $(USDMLIB_FLAGS) 50 | qzip_LDFLAGS = \ 51 | $(ICP_LDFLAGS) 52 | 53 | qzip_obj_CFLAGS = \ 54 | -I$(abs_top_srcdir)/include/ \ 55 | -I$(abs_top_srcdir)/src/ \ 56 | -I$(abs_top_srcdir)/utils/ \ 57 | $(COMMON_CFLAGS) \ 58 | $(ICP_INCLUDE_CFLAGS) 59 | 60 | if QATZIP_LZ4S_POSTPROCESS_AC 61 | noinst_PROGRAMS = qzstd 62 | qzstd_SOURCES = \ 63 | qzstd.c \ 64 | qzstd_main.c 65 | qzstd_CFLAGS = \ 66 | -I$(abs_top_srcdir)/include/ \ 67 | -I$(abs_top_srcdir)/src/ \ 68 | -I$(abs_top_srcdir)/utils/ \ 69 | $(COMMON_CFLAGS) \ 70 | $(ICP_INCLUDE_CFLAGS) 71 | qzstd_LDADD = \ 72 | $(abs_top_srcdir)/src/.libs/libqatzip.a \ 73 | $(QATLIB_FLAGS) \ 74 | $(USDMLIB_FLAGS) \ 75 | $(ZSTD_LIBADD) 76 | qzstd_LDFLAGS = \ 77 | $(ICP_LDFLAGS) 78 | endif 79 | 80 | qzip_obj_without_main: qzip.c qzip_7z.c 81 | $(CC) $^ -c $(qzip_obj_CFLAGS) 82 | -------------------------------------------------------------------------------- /utils/qzstd.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * 3 | * BSD LICENSE 4 | * 5 | * Copyright(c) 2021-2024 Intel Corporation. All rights reserved. 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions 10 | * are met: 11 | * 12 | * * Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * * Redistributions in binary form must reproduce the above copyright 15 | * notice, this list of conditions and the following disclaimer in 16 | * the documentation and/or other materials provided with the 17 | * distribution. 18 | * * Neither the name of Intel Corporation nor the names of its 19 | * contributors may be used to endorse or promote products derived 20 | * from this software without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | * 34 | ***************************************************************************/ 35 | 36 | #ifndef _UTILS_QZSTD_H 37 | #define _UTILS_QZSTD_H 38 | 39 | #define ZSTD_STATIC_LINKING_ONLY 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | #include 50 | #include 51 | #include 52 | #include 53 | #include 54 | #ifdef HAVE_QAT_HEADERS 55 | #include 56 | #else 57 | #include 58 | #endif 59 | #include 60 | 61 | /* For qzstd app, there are three types of return errors. 62 | * 1. The errors are from top layer software stack 63 | * e.g read/write file and app input parameter error. 64 | * 2. The errors are from qatzip lib. 65 | * e.g QZ_DUPLICATE or QZ_NOSW_NO_HW, error code defined 66 | * in qatzip.h 67 | * 3. The errors come from zstd lib. 68 | * e.g ZSTD_ErrorCode list. error code defined in zstd_error.h 69 | * 70 | * Note: 71 | * Because different type of error may have the same error code 72 | * value, To avoid app return value confusion in shell. Use 73 | * QZ_ERROR function to print error type and error code. 74 | */ 75 | 76 | // app return status 77 | #define QZSTD_OK 0 78 | #define QZSTD_ERROR 1 79 | 80 | // Error type for log capture. 81 | #define QZSTD_ERROR_TYPE "[QZSTD_ERROR]" 82 | #define QZ_ERROR_TYPE "[QZ_LIB_ERROR]" 83 | #define ZSTD_ERROR_TYPE "[ZSTD_LIB_ERROR]" 84 | 85 | #define KB (1024) 86 | #define MB (KB * KB) 87 | 88 | #define ZSTD_SEQUENCES_SIZE (1024 * 32) 89 | 90 | #define ML_BITS 4 91 | #define ML_MASK ((1U << ML_BITS) - 1) 92 | #define RUN_BITS (8 - ML_BITS) 93 | #define RUN_MASK ((1U << RUN_BITS) - 1) 94 | 95 | typedef uint8_t BYTE; 96 | typedef uint16_t U16; 97 | typedef int16_t S16; 98 | typedef uint32_t U32; 99 | typedef int32_t S32; 100 | typedef uint64_t U64; 101 | typedef int64_t S64; 102 | 103 | #define QATZIP_MAX_HW_SZ (512 * KB) 104 | #define ZSRC_BUFF_LEN (512 * MB) 105 | #define MAX_BLOCK_SIZE (128 * KB) 106 | 107 | #define DECODE_ZSTD_ERROR_CODE(error_code) \ 108 | ZSTD_getErrorString(ZSTD_getErrorCode((size_t)error_code)) 109 | 110 | void QzstdDisplayStats(double time, off_t insize, off_t outsize, 111 | int is_compress); 112 | 113 | void qzstd_help(); 114 | 115 | void decLz4Block(unsigned char *lz4s, int lz4sSize, ZSTD_Sequence *zstdSeqs, 116 | unsigned int *seq_offset); 117 | 118 | int qzZstdGetDefaults(QzSessionParamsLZ4S_T *defaults); 119 | 120 | int compressFile(int in_file, int out_file); 121 | 122 | int decompressFile(int in_file, int out_file); 123 | 124 | int zstdCallBack(void *external, const unsigned char *src, 125 | unsigned int *src_len, unsigned char *dest, 126 | unsigned int *dest_len, int *ExtStatus); 127 | 128 | int getLz4FrameHeaderSz(); 129 | 130 | int getLz4BlkHeaderSz(); 131 | 132 | int getLZ4FooterSz(); 133 | 134 | int getContentSize(unsigned char *const ptr); 135 | 136 | unsigned int getBlockSize(unsigned char *const ptr); 137 | 138 | #endif 139 | --------------------------------------------------------------------------------