]> git.droids-corp.org - dpdk.git/commit
dma/idxd: fix AVX2 in non-datapath functions
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 17 Jun 2022 10:59:20 +0000 (11:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 21 Jun 2022 16:19:41 +0000 (18:19 +0200)
commitaa802b10237c2f7d3b0d0498de9b2fb438f9b9a2
treeb62e14f2dd21efb8995d66bc80aea07287c618bf
parent4b918c1ad9f5981ef66f246979aa721b608c88ed
dma/idxd: fix AVX2 in non-datapath functions

While all systems which will use the idxd driver for hardware will
support AVX2, if the driver is present the initialization functions e.g.
to register logs, will be called on all systems - irrespective of HW
support. This can cause issues if the system running DPDK does not have
AVX2, and the compiler has included AVX instructions in the
initialization code.

To fix this, remove AVX2 instruction set from the whole build of the
driver. Instead, we add "target(avx2)" attribute to all datapath
functions, so those - and only those functions - will having AVX2
instructions in them.

Bugzilla ID: 1038
Fixes: 3d36a0a1c7de ("dma/idxd: add data path job submission")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Conor Walsh <conor.walsh@intel.com>
drivers/dma/idxd/idxd_common.c
drivers/dma/idxd/meson.build