mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Merge branch 't3041-intel-qat' into current
* t3041-intel-qat: Revert "QAT: T2968: add support for Intel Atom C2000 platform"
This commit is contained in:
commit
d9157be09f
@ -1,218 +0,0 @@
|
||||
################################################################
|
||||
# This file is provided under a dual BSD/GPLv2 license. When using or
|
||||
# redistributing this file, you may do so under either license.
|
||||
#
|
||||
# GPL LICENSE SUMMARY
|
||||
#
|
||||
# Copyright(c) 2007-2020 Intel Corporation. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of version 2 of the GNU General Public License as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
# The full GNU General Public License is included in this distribution
|
||||
# in the file called LICENSE.GPL.
|
||||
#
|
||||
# Contact Information:
|
||||
# Intel Corporation
|
||||
#
|
||||
# BSD LICENSE
|
||||
#
|
||||
# Copyright(c) 2007-2020 Intel Corporation. All rights reserved.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Intel Corporation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
#
|
||||
# version: QAT1.7.L.4.11.0-00001
|
||||
################################################################
|
||||
[GENERAL]
|
||||
ServicesEnabled = cy;dc
|
||||
|
||||
# Set the service profile to determine available features
|
||||
# =====================================================================
|
||||
# DEFAULT CRYPTO COMPRESSION CUSTOM1
|
||||
# Asymmetric Crypto * * *
|
||||
# Symmetric Crypto * * *
|
||||
# MGF KeyGen * *
|
||||
# SSL/TLS KeyGen * * *
|
||||
# HKDF * *
|
||||
# Compression * * *
|
||||
# Decompression (stateless) * * *
|
||||
# Decompression (stateful) * *
|
||||
# Service Chaining *
|
||||
# Device Utilization * *
|
||||
# Rate Limiting * *
|
||||
# =====================================================================
|
||||
ServicesProfile = DEFAULT
|
||||
|
||||
ConfigVersion = 2
|
||||
|
||||
#Default values for number of concurrent requests*/
|
||||
CyNumConcurrentSymRequests = 512
|
||||
CyNumConcurrentAsymRequests = 64
|
||||
|
||||
#Statistics, valid values: 1,0
|
||||
statsGeneral = 1
|
||||
statsDh = 1
|
||||
statsDrbg = 1
|
||||
statsDsa = 1
|
||||
statsEcc = 1
|
||||
statsKeyGen = 1
|
||||
statsDc = 1
|
||||
statsLn = 1
|
||||
statsPrime = 1
|
||||
statsRsa = 1
|
||||
statsSym = 1
|
||||
|
||||
# This flag is to enable device auto reset on heartbeat error
|
||||
AutoResetOnError = 0
|
||||
|
||||
##############################################
|
||||
# Kernel Instances Section
|
||||
##############################################
|
||||
[KERNEL]
|
||||
NumberCyInstances = 1
|
||||
NumberDcInstances = 0
|
||||
|
||||
# Crypto - Kernel instance #0
|
||||
Cy0Name = "IPSec0"
|
||||
Cy0IsPolled = 0
|
||||
Cy0CoreAffinity = 0
|
||||
|
||||
#############################################
|
||||
# Kernel Instances Section for QAT API
|
||||
#############################################
|
||||
[KERNEL_QAT]
|
||||
NumberCyInstances = 6
|
||||
NumberDcInstances = 2
|
||||
|
||||
# Crypto - Kernel instance #0
|
||||
Cy0Name = "IPSec0"
|
||||
Cy0IsPolled = 0
|
||||
Cy0CoreAffinity = 1
|
||||
|
||||
# Crypto - Kernel instance #1
|
||||
Cy1Name = "IPSec1"
|
||||
Cy1IsPolled = 0
|
||||
Cy1CoreAffinity = 2
|
||||
|
||||
# Crypto - Kernel instance #2
|
||||
Cy2Name = "IPSec2"
|
||||
Cy2IsPolled = 0
|
||||
Cy2CoreAffinity = 3
|
||||
|
||||
# Crypto - Kernel instance #3
|
||||
Cy3Name = "IPSec3"
|
||||
Cy3IsPolled = 0
|
||||
Cy3CoreAffinity = 4
|
||||
|
||||
# Crypto - Kernel instance #4
|
||||
Cy4Name = "IPSec4"
|
||||
Cy4IsPolled = 0
|
||||
Cy4CoreAffinity = 5
|
||||
|
||||
# Crypto - Kernel instance #5
|
||||
Cy5Name = "IPSec5"
|
||||
Cy5IsPolled = 0
|
||||
Cy5CoreAffinity = 6
|
||||
|
||||
# Data Compression - Kernel instance #0
|
||||
Dc0Name = "IPComp0"
|
||||
Dc0IsPolled = 0
|
||||
Dc0CoreAffinity = 7
|
||||
|
||||
# Data Compression - Kernel instance #1
|
||||
Dc1Name = "IPComp1"
|
||||
Dc1IsPolled = 0
|
||||
Dc1CoreAffinity = 8
|
||||
|
||||
##############################################
|
||||
# User Process Instance Section
|
||||
##############################################
|
||||
[SSL]
|
||||
NumberCyInstances = 6
|
||||
NumberDcInstances = 2
|
||||
NumProcesses = 1
|
||||
LimitDevAccess = 0
|
||||
|
||||
# Crypto - User instance #0
|
||||
Cy0Name = "SSL0"
|
||||
Cy0IsPolled = 1
|
||||
# List of core affinities
|
||||
Cy0CoreAffinity = 0
|
||||
|
||||
# Crypto - User instance #1
|
||||
Cy1Name = "SSL1"
|
||||
Cy1IsPolled = 1
|
||||
# List of core affinities
|
||||
Cy1CoreAffinity = 1
|
||||
|
||||
# Crypto - User instance #2
|
||||
Cy2Name = "SSL2"
|
||||
Cy2IsPolled = 1
|
||||
# List of core affinities
|
||||
Cy2CoreAffinity = 2
|
||||
|
||||
# Crypto - User instance #3
|
||||
Cy3Name = "SSL3"
|
||||
Cy3IsPolled = 1
|
||||
# List of core affinities
|
||||
Cy3CoreAffinity = 3
|
||||
|
||||
# Crypto - User instance #4
|
||||
Cy4Name = "SSL4"
|
||||
Cy4IsPolled = 1
|
||||
# List of core affinities
|
||||
Cy4CoreAffinity = 4
|
||||
|
||||
# Crypto - User instance #5
|
||||
Cy5Name = "SSL5"
|
||||
Cy5IsPolled = 1
|
||||
# List of core affinities
|
||||
Cy5CoreAffinity = 5
|
||||
|
||||
# Data Compression - User instance #0
|
||||
Dc0Name = "Dc0"
|
||||
Dc0IsPolled = 1
|
||||
# List of core affinities
|
||||
Dc0CoreAffinity = 0
|
||||
|
||||
# Data Compression - User instance #1
|
||||
Dc1Name = "Dc1"
|
||||
Dc1IsPolled = 1
|
||||
# List of core affinities
|
||||
Dc1CoreAffinity = 1
|
||||
|
||||
@ -10,7 +10,7 @@ fi
|
||||
. ${KERNEL_VAR_FILE}
|
||||
|
||||
declare -a intel=(
|
||||
"https://01.org/sites/default/files/downloads/qat1.7.l.4.11.0-00001.tar.gz"
|
||||
"https://01.org/sites/default/files/downloads/qat1.7.l.4.9.0-00008.tar_0.gz"
|
||||
)
|
||||
|
||||
for url in "${intel[@]}"
|
||||
@ -53,7 +53,7 @@ do
|
||||
|
||||
echo "I: Compile Kernel module for Intel ${DRIVER_NAME} driver"
|
||||
mkdir -p ${DEBIAN_DIR}/lib/firmware ${DEBIAN_DIR}/usr/local/bin ${DEBIAN_DIR}/usr/lib/x86_64-linux-gnu ${DEBIAN_DIR}/etc/init.d
|
||||
CFLAGS="-march=native" KERNEL_SOURCE_ROOT=${KERNEL_DIR} ./configure --enable-kapi --enable-qat-lkcf
|
||||
KERNEL_SOURCE_ROOT=${KERNEL_DIR} ./configure --enable-kapi --enable-qat-lkcf
|
||||
make -j $(getconf _NPROCESSORS_ONLN) all
|
||||
make INSTALL_MOD_PATH=${DEBIAN_DIR} INSTALL_FW_PATH=${DEBIAN_DIR} \
|
||||
qat-driver-install
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user