Files
kernel/kernel-modules/qat/debian/deb_folder/patches/0002-Add-mcx16-cflag-to-solve-linking-issue.patch
Peng Zhang 137e5b38b1 QAT: Update QAT driver to version 2.0
Intel 4th generation Xeon Scalable Processor (Sapphire Rapids) support
has been introduced for the platform. In order to leverage the
integrated QAT device of the SP-MCC SKUs, QAT driver need to be
upgraded to version 2.0.
To upgrade to version 2.0, the following items have been done:
	1. Update qat related patches for code context change;
	2. Update control, rules and such things for QAT version 2.0.

Test plan:
	- PASS: build-pkgs -a && build-image
	- PASS: lsmod |grep qat
	- PASS: /etc/init.d/qat_service status/start/stop
	- PASS: ./cpa_sample_code

Story: 2010796
Task: 48248

Change-Id: I1cba1660a13d1f28eee2b35713a54d31c048c609
Signed-off-by: Peng Zhang <Peng.Zhang2@windriver.com>
2023-08-31 23:00:16 +08:00

38 lines
1.4 KiB
Diff

From a41966a2056b6bc873b7314457c4c965f1b7d59b Mon Sep 17 00:00:00 2001
From: Li Zhou <li.zhou@windriver.com>
Date: Mon, 28 Jun 2021 11:37:20 +0800
Subject: [PATCH 3/3] Add mcx16 cflag to solve linking issue
Linking error is reported as:
MODPOST .../quickassist/lookaside/access_layer/src/Module.symvers
ERROR: modpost: "__sync_bool_compare_and_swap_16"
[.../quickassist/lookaside/access_layer/src/qat_api.ko] undefined!
Add -mcx16 option to enables GCC to generate CMPXCHG16B instructions
in 64-bit code to implement compare-and-exchange operations on 16-byte
aligned 128-bit objects.
Signed-off-by: Li Zhou <li.zhou@windriver.com>
[zp: Adapted the patch for context changes.]
Signed-off-by: Peng Zhang <Peng.Zhang2@windriver.com>
---
quickassist/lookaside/access_layer/src/common/utils/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/quickassist/lookaside/access_layer/src/common/utils/Makefile b/quickassist/lookaside/access_layer/src/common/utils/Makefile
index f286394..a131a2e 100644
--- a/quickassist/lookaside/access_layer/src/common/utils/Makefile
+++ b/quickassist/lookaside/access_layer/src/common/utils/Makefile
@@ -77,6 +77,8 @@ ifdef ICP_DC_RETURN_COUNTERS_ON_ERROR
EXTRA_CFLAGS += -DICP_DC_RETURN_COUNTERS_ON_ERROR
endif
+EXTRA_CFLAGS+=-mcx16
+
#common includes between all supported OSes
INCLUDES+=-I$(LAC_DIR)/src/common/include\
-I$(LAC_DIR)/src/common/compression/include\
--
2.25.1