4437bc6c24
Move content from stx-gplv2 into stx-integ Packages will be relocated to stx-integ: base/ bash cgcs-users cluster-resource-agents dpkg haproxy libfdt netpbm rpm database/ mariadb filesystem/ iscsi-initiator-utils filesystem/drbd/ drbd-tools kernel/kernel-modules/ drbd integrity intel-e1000e intel-i40e intel-i40evf intel-ixgbe intel-ixgbevf qat17 tpmdd ldap/ ldapscripts networking/ iptables net-tools Change-Id: I4d9456faf2d92c2557175ed84ec6e16d21eb8702 Story: 2002801 Task: 22687 Signed-off-by: Scott Little <scott.little@windriver.com>
119 lines
3.8 KiB
Diff
119 lines
3.8 KiB
Diff
From ab216edc24f2fb9d8c28662f069b027c6479d277 Mon Sep 17 00:00:00 2001
|
|
From: eric zhang <eric.zhang@windriver.com>
|
|
Date: Fri, 17 Nov 2017 15:41:35 -0500
|
|
Subject: [PATCH 1/1] Install config file for each VF
|
|
|
|
Signed-off-by: eric zhang <eric.zhang@windriver.com>
|
|
---
|
|
quickassist/build_system/build_files/qat_service | 60 +++++++++++++++++++++---
|
|
1 file changed, 54 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/quickassist/build_system/build_files/qat_service b/quickassist/build_system/build_files/qat_service
|
|
index 168413b..8e2b838 100755
|
|
--- a/quickassist/build_system/build_files/qat_service
|
|
+++ b/quickassist/build_system/build_files/qat_service
|
|
@@ -65,6 +65,12 @@ C3XX_DEVICE_PCI_ID_VM="19e3"
|
|
D15XX_DEVICE_PCI_ID="6f54"
|
|
D15XX_DEVICE_PCI_ID_VM="6f55"
|
|
|
|
+QAT_DH895XCC_NUM_VFS=32
|
|
+QAT_DHC62X_NUM_VFS=16
|
|
+QAT_DHD15XX_NUM_VFS=16
|
|
+QAT_DHC3XXX_NUM_VFS=16
|
|
+
|
|
+
|
|
usage() {
|
|
echo
|
|
echo --------------------------------------------------------
|
|
@@ -84,7 +90,7 @@ echo --------------------------------------------------------
|
|
exit 1
|
|
}
|
|
|
|
-ADF_CTL=/usr/sbin/adf_ctl
|
|
+ADF_CTL=/usr/bin/adf_ctl
|
|
|
|
# store the total number of each type of device
|
|
numDh895xDevicesPF=$(lspci -n | egrep -c "$INTEL_VENDORID:$DH895_DEVICE_PCI_ID")
|
|
@@ -193,15 +199,57 @@ case $1 in
|
|
|
|
if [ $DO_ENABLE_SRIOV == 1 ]; then
|
|
echo enable sriov
|
|
+
|
|
+ if [ $numDh895xDevicesPF != 0 ];then
|
|
+ for (( dev=0; dev<$numDh895xDevicesPF; dev++ ))
|
|
+ do
|
|
+ for (( vf_dev = 0; vf_dev < $QAT_DH895XCC_NUM_VFS; vf_dev++ ))
|
|
+ do
|
|
+ vf_dev_num=$(($dev * $numDh895xDevicesPF + $vf_dev))
|
|
+ cp /etc/qat/dh895xccvf_dev0.conf.vm /etc/dh895xccvf_dev$vf_dev_num.conf
|
|
+ done
|
|
+ done
|
|
+ fi
|
|
+ if [ $numC62xDevicesPF != 0 ];then
|
|
+ for (( dev=0; dev<$numC62xDevicesPF; dev++ ))
|
|
+ do
|
|
+ for (( vf_dev = 0; vf_dev<$QAT_DHC62X_NUM_VFS; vf_dev++ ))
|
|
+ do
|
|
+ vf_dev_num=$(($dev * $numC62xDevicesPF + $vf_dev))
|
|
+ cp /etc/qat/c6xxvf_dev0.conf.vm /etc/c6xxvf_dev$vf_dev_num.conf
|
|
+ done
|
|
+ done
|
|
+ fi
|
|
+ if [ $numC3xxDevicesPF != 0 ];then
|
|
+ for (( dev=0; dev<$numC3xxDevicesPF; dev++ ))
|
|
+ do
|
|
+ for (( vf_dev = 0; vf_dev<$QAT_DHC3XXX_NUM_VFS; vf_dev++ ))
|
|
+ do
|
|
+ vf_dev_num=$(($dev * $numC3xxDevicesPF + $vf_dev))
|
|
+ cp /etc/qat/c3xxvf_dev0.conf.vm /etc/c3xxvf_dev$vf_dev_num.conf
|
|
+ done
|
|
+ done
|
|
+ fi
|
|
+ if [ $numD15xxDevicesPF != 0 ];then
|
|
+ for (( dev=0; dev<$numD15xxDevicesPF; dev++ ))
|
|
+ do
|
|
+ for (( vf_dev = 0; vf_dev<$QAT_DHD15XX_NUM_VFS; vf_dev++ ))
|
|
+ do
|
|
+ vf_dev_num=$(($dev * $numD15xxDevicesPF + $vf_dev))
|
|
+ cp /etc/qat/D15xxvf_dev0.conf.vm /etc/D15xxvf_dev$vf_dev_num.conf
|
|
+ done
|
|
+ done
|
|
+ fi
|
|
+
|
|
enable_sriov $2
|
|
fi
|
|
|
|
# Show device status
|
|
- /usr/sbin/adf_ctl $2 status
|
|
+ /usr/bin/adf_ctl $2 status
|
|
;;
|
|
|
|
Shutdown|shutdown)
|
|
- /usr/sbin/adf_ctl down
|
|
+ /usr/bin/adf_ctl down
|
|
modprobe -q -r usdm_drv
|
|
modprobe -q -r qat_dh895xccvf
|
|
modprobe -q -r qat_c62xvf
|
|
@@ -215,15 +263,15 @@ case $1 in
|
|
;;
|
|
|
|
Stop|stop)
|
|
- /usr/sbin/adf_ctl $2 down
|
|
+ /usr/bin/adf_ctl $2 down
|
|
;;
|
|
|
|
Restart|restart)
|
|
- /usr/sbin/adf_ctl $2 down && /usr/sbin/adf_ctl $2 up
|
|
+ /usr/bin/adf_ctl $2 down && /usr/bin/adf_ctl $2 up
|
|
;;
|
|
|
|
Status|status)
|
|
- /usr/sbin/adf_ctl status
|
|
+ /usr/bin/adf_ctl status
|
|
if [ "$?" -ne 0 ]
|
|
then
|
|
echo "No devices found. Please start the driver using:"
|
|
--
|
|
1.8.3.1
|
|
|