Skip to content

Commit 9e22a2a

Browse files
srikuIntelfionatrahe
authored andcommitted
QATlib: 26.02.0 release
Changes from 25.08.0 to 26.02.0: * Added support to configure EPOLL/POLL mode. * Added USDM APIs to enable zero-copy DMA operations using IOVA mapping with user-allocated memory buffers. * Simplified file license headers to use SPDX identifiers and only BSD3. * Removed unnecessary Dual GPLv2/BSD3 license headers. * Aligned with CPA API v5.08. * Bug Fixes. (See Resolved section in README.md) Signed-off-by: Srikanth Thokala <srikanth.thokala@intel.com>
1 parent a87a1ad commit 9e22a2a

File tree

435 files changed

+6582
-23112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

435 files changed

+6582
-23112
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
**/.deps
2121
**/.dirstamp
2222
/quickassist/utilities/service/qat.service
23+
/quickassist/utilities/service/99-qat-vfio.rules
2324
/stamp-h1
2425
/.libs
2526
*.la

INSTALL

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ This package also links against files with the following licenses:
4040

4141
For BSD-3-Clause license, please see the file LICENSE contained in the top
4242
level folder.
43-
For Dual BSD/GPLv2 please see the file headers of the relevant files.
4443

4544
===============================================================================
4645

@@ -561,6 +560,9 @@ Compilation and installation - detailed instructions
561560

562561
RUNNING IN A VIRTUAL MACHINE / GUEST
563562

563+
For virtualization setup please refer to the following link:
564+
https://intel.github.io/quickassist/qatlib/running_in_vm.html
565+
564566
When passing VFs to a guest, the BDFs on the guest should facilitate qatlib
565567
recognizing whether VFs are from the same PF or not.
566568
So the libvirt XML file should specify that VFs from the same host
@@ -600,8 +602,25 @@ Compilation and installation - detailed instructions
600602
fi
601603

602604
group=${vfio_group##*/}
605+
606+
# Skip the new 'devices' folder in kernel 6.14+
607+
if [ "$group" = "devices" ]; then
608+
continue
609+
fi
610+
611+
# Check if the group is numeric (additional safety check)
612+
if ! [[ "$group" =~ ^[0-9]+$ ]]; then
613+
continue
614+
fi
615+
603616
# assume one bdf per iommu group
604617
bdf=$(ls /sys/kernel/iommu_groups/$group/devices/)
618+
619+
# Check if bdf was found
620+
if [ -z "$bdf" ]; then
621+
continue
622+
fi
623+
605624
vendor=$(cat /sys/kernel/iommu_groups/$group/devices/$bdf/vendor)
606625
node=$(cat /sys/kernel/iommu_groups/$group/devices/$bdf/numa_node)
607626
did=$(cat /sys/kernel/iommu_groups/$group/devices/$bdf/device)
@@ -890,7 +909,7 @@ not intended for use in medical, life saving, life sustaining, critical control
890909
Intel may make changes to specifications and product descriptions at any time,
891910
without notice.
892911

893-
(C) Intel Corporation 2022
912+
(C) Intel Corporation 2026
894913

895914
* Other names and brands may be claimed as the property of others.
896915

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD-3-Clause
22

3-
Copyright(c) 2007-2025 Intel Corporation.
3+
Copyright(c) 2007-2026 Intel Corporation.
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

Makefile.am

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
################################################################
22
# BSD LICENSE
33
#
4-
# Copyright(c) 2007-2022 Intel Corporation. All rights reserved.
4+
# Copyright(c) 2007-2026 Intel Corporation. All rights reserved.
55
# All rights reserved.
66
#
77
# Redistribution and use in source and binary forms, with or without
@@ -30,6 +30,8 @@
3030
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3131
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232
#
33+
# These contents may have been developed with support from one or more
34+
# Intel-operated generative artificial intelligence solutions.
3335
################################################################
3436

3537
ACLOCAL_AMFLAGS = -Im4
@@ -216,6 +218,7 @@ lib@LIBQATNAME@_la_SOURCES = \
216218
quickassist/lookaside/access_layer/src/common/ctrl/sal_list.c \
217219
quickassist/lookaside/access_layer/src/common/ctrl/sal_rl_stubs.c \
218220
quickassist/lookaside/access_layer/src/common/ctrl/sal_crypto.c \
221+
quickassist/lookaside/access_layer/src/common/ctrl/sal_resp_type.c \
219222
quickassist/lookaside/access_layer/src/common/ctrl/sal_dc_chain.c \
220223
quickassist/lookaside/access_layer/src/common/ctrl/sal_instances.c \
221224
quickassist/lookaside/access_layer/src/common/qat_comms/sal_qat_cmn_msg.c \
@@ -311,13 +314,20 @@ endif
311314
systemd_scriptsdir = $(sbindir)
312315
dist_systemd_scripts_SCRIPTS = quickassist/utilities/service/qat_init.sh
313316

317+
# Udev rules and helper script for QAT VF vfio permission setting
318+
# Directory supplied via --with-udevrulesdir (configure) -> @UDEVRULESDIR@
319+
udevrulesdir = @UDEVRULESDIR@
320+
udevrules_DATA = quickassist/utilities/service/99-qat-vfio.rules
321+
314322
install-data-hook:
315323
if SERVICE_AC
316324
@if [ "$(shell id -u)" == 0 ]; then \
317325
/usr/sbin/groupadd qat 2> /dev/null || :; \
318326
systemctl daemon-reload; \
319327
systemctl start qat; \
320328
systemctl enable qat; \
329+
udevadm control --reload; \
330+
udevadm trigger; \
321331
fi
322332
endif
323333

@@ -328,6 +338,8 @@ if SERVICE_AC
328338
pidof qatmgr > /dev/null && kill `pidof qatmgr`; \
329339
rm -rf /run/qat; \
330340
systemctl disable qat; \
341+
rm -f $(udevrulesdir)/99-qat-vfio.rules; \
342+
udevadm control --reload; \
331343
fi
332344
endif
333345

@@ -337,6 +349,7 @@ EXTRA_DIST = INSTALL README.md SECURITY.md LICENSE \
337349
filelist \
338350
versionfile \
339351
autogen.sh \
352+
qatlib.sysusers.conf \
340353
quickassist/lookaside/firmware/include \
341354
quickassist/include \
342355
quickassist/lookaside/access_layer/src/common \
@@ -346,6 +359,7 @@ EXTRA_DIST = INSTALL README.md SECURITY.md LICENSE \
346359
quickassist/utilities/libusdm_drv/include \
347360
quickassist/utilities/libusdm_drv/user_space \
348361
quickassist/utilities/service/qat \
362+
quickassist/utilities/service/99-qat-vfio.rules.in \
349363
quickassist/lookaside/access_layer/src/sample_code
350364

351365
DISTCHECK_CONFIGURE_FLAGS = \

0 commit comments

Comments
 (0)