numam-dpdk/drivers/net/octeontx/base
Ruifeng Wang e88bd47467 net/octeontx: fix build with SVE
Building with gcc 10.2 with SVE extension enabled got error:

{standard input}: Assembler messages:
{standard input}:91: Error: selected processor does not support `addvl x4,x8,#-1'
{standard input}:95: Error: selected processor does not support `ptrue p1.d,all'
{standard input}:135: Error: selected processor does not support `whilelo p2.d,xzr,x5'
{standard input}:137: Error: selected processor does not support `decb x1'

This is because inline assembly code explicitly resets cpu model to
not have SVE support. Thus SVE instructions generated by compiler
auto vectorization got rejected by assembler.

Added SVE to the cpu model specified by inline assembly for SVE support.
Not replacing the inline assembly with C atomics because the driver relies
on specific LSE instruction to interface to co-processor [1].

Fixes: f0c7bb1bf7 ("net/octeontx/base: add octeontx IO operations")
Cc: stable@dpdk.org

[1] https://mails.dpdk.org/archives/dev/2021-January/196092.html

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
2021-01-14 16:42:25 +01:00
..
meson.build net/octeontx: fix meson build for disabled drivers 2020-04-21 13:57:06 +02:00
octeontx_bgx.c net/octeontx: support flow control 2020-04-21 13:57:06 +02:00
octeontx_bgx.h net/octeontx: support flow control 2020-04-21 13:57:06 +02:00
octeontx_io.h net/octeontx: fix build with SVE 2021-01-14 16:42:25 +01:00
octeontx_pki_var.h net/octeontx: support multi segment 2020-04-21 13:57:06 +02:00
octeontx_pkivf.c net/octeontx: support VLAN filter offload 2020-04-21 13:57:06 +02:00
octeontx_pkivf.h net/octeontx: support VLAN filter offload 2020-04-21 13:57:06 +02:00
octeontx_pkovf.c net/octeontx: support MTU 2020-04-21 13:57:06 +02:00
octeontx_pkovf.h net/octeontx: support MTU 2020-04-21 13:57:06 +02:00