[PATCH 3/3] dma/idxd: fix non-AVX builds with older compilers
Jiang, YuX
yux.jiang at intel.com
Fri Jun 24 10:24:02 CEST 2022
> -----Original Message-----
> From: Bruce Richardson <bruce.richardson at intel.com>
> Sent: Thursday, June 23, 2022 9:50 PM
> To: dev at dpdk.org
> Cc: Richardson, Bruce <bruce.richardson at intel.com>
> Subject: [PATCH 3/3] dma/idxd: fix non-AVX builds with older compilers
>
> When building without AVX2 support using an older compiler e.g. gcc 4.8 on
> Centos/RHEL 7, we get build errors due to the use of AVX2 intrinsics.
> This is because the compiler does not support
> "__attribute__((target(AVX2)))" function attribute. Disable build of this
> driver such edge cases.
>
> Generic builds using recent compilers, and all builds with a minimum baseline
> of AVX2 are unaffected by this change.
>
> Fixes: aa802b10237c ("dma/idxd: fix AVX2 in non-datapath functions")
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
Tested-by: Yu Jiang <YuX.Jiang at intel.com>
Tested env as below:
OS: CentOS7.9/kernel: 3.10.0-1160.62.1.el7.x86_64
Compiler: gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
Best regards,
Yu Jiang
More information about the dev
mailing list