Index: /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/SOURCES/qat-4.15.0.tar.gz
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/x-gzip
Index: /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/SOURCES/qat-4.15.0.tar.gz
===================================================================
--- /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/SOURCES/qat-4.15.0.tar.gz	(revision 8870)
+++ /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/SOURCES/qat-4.15.0.tar.gz	(working copy)

Property changes on: 3rdpartyappliance/centos-qat/SOURCES/qat-4.15.0.tar.gz
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+application/x-gzip
\ No newline at end of property
Index: /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/SPECS/qat.spec
===================================================================
--- /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/SPECS/qat.spec	(revision 0)
+++ /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/SPECS/qat.spec	(working copy)
@@ -0,0 +1,81 @@
+Name: qat
+Summary: Intel QAT provides cryptographic and compression acceleration capabilities used to improve performance and efficiency across the data center.
+Version: 4.15.0
+Release: 0
+Source: %{name}-%{version}.tar.gz
+Vendor: Intel Corporation
+License: GPL
+ExclusiveOS: linux
+Group: System Environment/Kernel
+Provides: %{name}
+URL: https://www.intel.com/content/www/us/en/download/765501/intel-quickassist-technology-driver-for-linux-hw-version-2-0.html
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+# do not generate debugging packages by default - newer versions of rpmbuild
+# may instead need:
+#%define debug_package %{nil}
+%debug_package %{nil}
+
+####
+%description
+Intel QAT provides cryptographic and compression acceleration capabilities used to improve performance and efficiency across the data center.
+
+%prep
+%setup
+
+%build
+./configure KERNEL_SOURCE_ROOT=/lib/modules/3.10.0-327.28.2.11.el7.x86_64/build --enable-icp-sriov=host
+make
+
+%install
+install -dDm 0755 %{buildroot}/usr/lib/modules/3.10.0-327.28.2.11.el7.x86_64/kernel/drivers/crypto/
+install -dDm 0755 %{buildroot}/lib64/
+install -dDm 0755 %{buildroot}/etc/
+install -dDm 0755 %{buildroot}/lib/firmware/
+install -dDm 0755 %{buildroot}/etc/init.d/
+install -dDm 0755 %{buildroot}/usr/local/bin/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.ko %{buildroot}/usr/lib/modules/3.10.0-327.28.2.11.el7.x86_64/kernel/drivers/crypto/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.so %{buildroot}/lib64/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.vm %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.low %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.med %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.sym %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.sym.low %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.sym.med %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.sym.vm %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.vm %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.conf.vm %{buildroot}/etc/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/*.bin %{buildroot}/lib/firmware/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/qat_service %{buildroot}/etc/init.d/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/qat_service_vfs %{buildroot}/etc/init.d/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/adf_ctl %{buildroot}/usr/local/bin/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/du_mgr %{buildroot}/usr/local/bin/
+install -Dm 0755 %{_builddir}/%{name}-%{version}/build/sla_mgr %{buildroot}/usr/local/bin/
+# remove files due to conflict
+rm -f %{buildroot}/lib/firmware/qat_895xcc.bin
+rm -f %{buildroot}/lib/firmware/qat_895xcc_mmp.bin
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+/usr/lib/modules/3.10.0-327.28.2.11.el7.x86_64/kernel/drivers/crypto/*.ko
+/lib64/*.so
+/etc/*.conf
+/etc/*.conf.vm
+/etc/*.conf.low
+/etc/*.conf.med
+/etc/*.conf.sym
+/etc/*.conf.sym.low
+/etc/*.conf.sym.med
+/etc/*.conf.sym.vm
+/etc/*.conf.vm
+/lib/firmware/*.bin
+/usr/local/bin/adf_ctl
+/usr/local/bin/du_mgr
+/usr/local/bin/sla_mgr
+/etc/init.d/qat_service
+/etc/init.d/qat_service_vfs
+
+%post

Property changes on: 3rdpartyappliance/centos-qat/SPECS/qat.spec
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/readme
===================================================================
--- /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/readme	(revision 0)
+++ /branches/rel_avx_2_7_3/3rdpartyappliance/centos-qat/readme	(working copy)
@@ -0,0 +1 @@
+Just QAT repo

Property changes on: 3rdpartyappliance/centos-qat/readme
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: /branches/rel_avx_2_7_3/scripts/avxapps_startup.sh
===================================================================
--- /branches/rel_avx_2_7_3/scripts/avxapps_startup.sh	(revision 8870)
+++ /branches/rel_avx_2_7_3/scripts/avxapps_startup.sh	(working copy)
@@ -203,32 +203,31 @@
 # Install and start QAT
 INTEL_VENDORID="8086"
 C62X_DEVICE_NUMBER="37c8"
+QAT_DHC62X_NUM_VFS=16
 numC62xDevicesP=$(lspci -n | egrep -c "$INTEL_VENDORID:$C62X_DEVICE_NUMBER")
 if [ $numC62xDevicesP -ne 0 ]; then
     echo "set QAT_c62x"
-    pushd /usr/share/qat
-    chmod 777 *
-    rm -rf /etc/init.d/qat_service
-    cp -rf qat_service /etc/init.d/qat_service
-    rm -rf /usr/local/bin/adf_ctl
-    cp -rf adf_ctl /usr/local/bin/adf_ctl
-    rm -rf /lib64/libusdm_drv_s.so
-    rm -rf /lib64/libqat_s.so
-    ln -s libusdm_drv_s.so /lib64/libusdm_drv_s.so
-    ln -s libqat_s.so /lib64/libqat_s.so
-    rmmod qat_c62xvf
-    rmmod qat_c62x
-    rmmod qat_api
-    rmmod usdm_drv
-    rmmod intel_qat
-    modprobe uio
-    insmod intel_qat.ko
-    insmod usdm_drv.ko
-    insmod qat_c62x.ko
-    insmod qat_c62xvf.ko
-    insmod qat_api.ko
+
+    # Enable QAT sriov
+    echo "# Comment or remove next line to disable sriov" > /etc/default/qat
+    echo "SRIOV_ENABLE=1" >> /etc/default/qat
+
+    # Install pf conf file
+    for (( dev=0; dev<$numC62xDevicesP; dev++ ))
+    do
+        install -D -m 755 /etc/c6xx_dev"$((${dev}%3))".conf /etc/c6xx_dev"$dev".conf
+
+        # Install vf conf file
+        for (( vf_dev = 0; vf_dev<QAT_DHC62X_NUM_VFS; vf_dev++ ))
+        do
+            vf_dev_num=`echo $dev \\* $QAT_DHC62X_NUM_VFS + $vf_dev | bc`
+            install -D -m 755 /etc/c6xxvf_dev0.conf.vm \
+                    /etc/c6xxvf_dev${vf_dev_num}.conf
+        done
+    done
+
+    # Start qat service
     service qat_service start
-    popd
 fi
 
 pushd /ca/bin/fm
