The latest QAT driver version which we support attempts to define pci_cleanup_aer_uncorrect_error_status() whenever <= 5.7.0 kernels are detected. However, in case of centos8, the latest 4.18 build of the kernel which is available there includes patches which completely removed use of this call. To make sure this function is not built into the driver, apply the patch on top of QAT which will remove this definition entirely. This patch is meant to be applied only in case <= 5.7.0 kernel are picked up and which are missing pci_cleanup_aer_uncorrect_error_status() symbol definitions. Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: Ieb09d5a1dc8936d6e266c6cadfdf9d70620a3bca Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6620 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
Latest kernels available for centos8 (4.18) include backport patches which
|
|
dropped use of pci_cleanup_aer_uncorrect_error_status(). Make sure this
|
|
call won't be referenced for kernels older than 5.7. To make it work, this
|
|
patch is going to be applied only when pci_cleanup_aer_uncorrect_error_status()
|
|
is not detected in older kernels (like the centos8's builds).
|
|
---
|
|
quickassist/qat/compat/qat_compat.h | 6 ------
|
|
1 file changed, 6 deletions(-)
|
|
|
|
diff --git a/quickassist/qat/compat/qat_compat.h b/quickassist/qat/compat/qat_compat.h
|
|
index 06d640d..cee298c 100644
|
|
--- a/quickassist/qat/compat/qat_compat.h
|
|
+++ b/quickassist/qat/compat/qat_compat.h
|
|
@@ -478,12 +478,6 @@ static inline void pci_ignore_hotplug(struct pci_dev *dev)
|
|
#define QAT_KPT_CAP_DISCOVERY
|
|
#endif
|
|
|
|
-#if ((SLE_VERSION_CODE && (SLE_VERSION(15, 2, 0) > SLE_VERSION_CODE)) || \
|
|
- (!SLE_VERSION_CODE && KERNEL_VERSION(5, 7, 0) > LINUX_VERSION_CODE))
|
|
-#define pci_aer_clear_nonfatal_status(pdev) \
|
|
- pci_cleanup_aer_uncorrect_error_status(pdev)
|
|
-#endif /* SUSE15 SP2 */
|
|
-
|
|
#if (KERNEL_VERSION(3, 17, 0) > LINUX_VERSION_CODE)
|
|
#ifndef ktime_get_real_ts64
|
|
#define ktime_get_real_ts64 getnstimeofday
|