patches for DPDK stable branches
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
Cc: Ruifeng Wang <Ruifeng.Wang@arm.com>,
	Juraj Linkeš <juraj.linkes@pantheon.tech>,
	 Luca Boccassi <bluca@debian.org>,
	"stable@dpdk.org" <stable@dpdk.org>, nd <nd@arm.com>
Subject: Re: [dpdk-stable] [PATCH 20.11] config/arm: replace native machine args
Date: Thu, 25 Feb 2021 15:24:14 +0100
Message-ID: <CAJFAV8w+oRyXxhYEf3U_WQ8O5vfOBHPgew+4iBsPXYRFP321Cw@mail.gmail.com> (raw)
In-Reply-To: <BYAPR18MB2424C498BFE1BC89AC887A98C89E9@BYAPR18MB2424.namprd18.prod.outlook.com>

On Thu, Feb 25, 2021 at 1:15 PM Jerin Jacob Kollanukkaran
<jerinj@marvell.com> wrote:
> > Hi Jerin, do you have any thoughts on this?
>
>
> Ruifeng, If you are able to reproduce this issue, Could you add "-march=armv8.1-a+crc+crypto" In ThunderX config  and check is this
> Fixing the issue?
>
> [main] [dpdk.org] $ git diff
> diff --git a/config/arm/meson.build b/config/arm/meson.build
> index 00bc4610a..ef65b4bb6 100644
> --- a/config/arm/meson.build
> +++ b/config/arm/meson.build
> @@ -96,15 +96,18 @@ implementer_cavium = {
>         ],
>         'part_number_config': {
>                 '0xa1': {
> -                       'machine_args': ['-mcpu=thunderxt88'],
> +                       'machine_args': ['-march=armv8.1-a+crc+crypto+lse',
> +                                        '-mcpu=thunderxt88'],
>                         'flags': flags_part_number_thunderx
>                 },
>                 '0xa2': {
> -                       'machine_args': ['-mcpu=thunderxt81'],
> +                       'machine_args': ['-march=armv8.1-a+crc+crypto+lse',
> +                                        '-mcpu=thunderxt81'],
>                         'flags': flags_part_number_thunderx
>                 },
>                 '0xa3': {
> -                       'machine_args': ['-mcpu=thunderxt83'],
> +                       'machine_args': ['-march=armv8.1-a+crc+crypto+lse',
> +                                        '-mcpu=thunderxt83'],
>                         'flags': flags_part_number_thunderx
>                 },
>                 '0xaf': {
>


In OBS, for Centos 8:
[  539s] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Jlqu02
[  539s] + umask 022
[  539s] + cd /home/abuild/rpmbuild/BUILD
[  539s] + cd dpdk-1614261881.2a428852a
[  539s] + ninja-build -v -C arm64-armv8a-linux-gcc
[  539s] ninja: Entering directory `arm64-armv8a-linux-gcc'
[  539s] [1/2573] /usr/libexec/platform-python
../buildtools/map_to_win.py
/home/abuild/rpmbuild/BUILD/dpdk-1614261881.2a428852a/lib/librte_telemetry/version.map
lib/rte_telemetry_exports.def
[  539s] [2/2573] /usr/libexec/platform-python
../buildtools/map_to_win.py
/home/abuild/rpmbuild/BUILD/dpdk-1614261881.2a428852a/lib/librte_kvargs/version.map
lib/rte_kvargs_exports.def
[  539s] [3/2573] /usr/libexec/platform-python
../buildtools/map_to_win.py
/home/abuild/rpmbuild/BUILD/dpdk-1614261881.2a428852a/lib/librte_telemetry/version.map
lib/rte_telemetry_mingw.map
[  539s] [4/2573] /usr/libexec/platform-python
../buildtools/map_to_win.py
/home/abuild/rpmbuild/BUILD/dpdk-1614261881.2a428852a/lib/librte_kvargs/version.map
lib/rte_kvargs_mingw.map
[  540s] [5/2573] /usr/libexec/platform-python
../buildtools/map_to_win.py
/home/abuild/rpmbuild/BUILD/dpdk-1614261881.2a428852a/lib/librte_rcu/version.map
lib/rte_rcu_exports.def
[  540s] [6/2573] cc -Ilib/76b5a35@@rte_eal@sta -Ilib -I../lib -I.
-I../ -Iconfig -I../config -Ilib/librte_eal/include
-I../lib/librte_eal/include -Ilib/librte_eal/linux/include
-I../lib/librte_eal/linux/include -Ilib/librte_eal/arm/include
-I../lib/librte_eal/arm/include -Ilib/librte_eal/common
-I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal
-Ilib/librte_kvargs -I../lib/librte_kvargs
-Ilib/librte_telemetry/../librte_metrics
-I../lib/librte_telemetry/../librte_metrics -Ilib/librte_telemetry
-I../lib/librte_telemetry -fdiagnostics-color=always -pipe
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -include rte_config.h
-Wextra -Wcast-qual -Wdeprecated -Wformat -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wold-style-definition
-Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef
-Wwrite-strings -Wno-packed-not-aligned
-Wno-missing-field-initializers -D_GNU_SOURCE -fcommon -Werror -fPIC
-march=armv8.1-a+crc+crypto+lse -mcpu=thunderxt88
-DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation
'-DABI_VERSION="21.2"' -DRTE_LIBEAL_USE_GETENTROPY  -MD -MQ
'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_cpuflags.c.o'
-MF 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_cpuflags.c.o.d'
-o 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_cpuflags.c.o'
-c ../lib/librte_eal/common/eal_common_cpuflags.c
[  540s] FAILED:
lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_cpuflags.c.o
[  540s] cc -Ilib/76b5a35@@rte_eal@sta -Ilib -I../lib -I. -I../
-Iconfig -I../config -Ilib/librte_eal/include
-I../lib/librte_eal/include -Ilib/librte_eal/linux/include
-I../lib/librte_eal/linux/include -Ilib/librte_eal/arm/include
-I../lib/librte_eal/arm/include -Ilib/librte_eal/common
-I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal
-Ilib/librte_kvargs -I../lib/librte_kvargs
-Ilib/librte_telemetry/../librte_metrics
-I../lib/librte_telemetry/../librte_metrics -Ilib/librte_telemetry
-I../lib/librte_telemetry -fdiagnostics-color=always -pipe
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -include rte_config.h
-Wextra -Wcast-qual -Wdeprecated -Wformat -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wold-style-definition
-Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef
-Wwrite-strings -Wno-packed-not-aligned
-Wno-missing-field-initializers -D_GNU_SOURCE -fcommon -Werror -fPIC
-march=armv8.1-a+crc+crypto+lse -mcpu=thunderxt88
-DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation
'-DABI_VERSION="21.2"' -DRTE_LIBEAL_USE_GETENTROPY  -MD -MQ
'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_cpuflags.c.o'
-MF 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_cpuflags.c.o.d'
-o 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_cpuflags.c.o'
-c ../lib/librte_eal/common/eal_common_cpuflags.c
[  540s] cc1: error: switch -mcpu=armv8-a conflicts with
-march=armv8.1-a switch [-Werror]
[  540s] cc1: all warnings being treated as errors
[  540s] [7/2573] cc -Ilib/76b5a35@@rte_eal@sta -Ilib -I../lib -I.
-I../ -Iconfig -I../config -Ilib/librte_eal/include
-I../lib/librte_eal/include -Ilib/librte_eal/linux/include
-I../lib/librte_eal/linux/include -Ilib/librte_eal/arm/include
-I../lib/librte_eal/arm/include -Ilib/librte_eal/common
-I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal
-Ilib/librte_kvargs -I../lib/librte_kvargs
-Ilib/librte_telemetry/../librte_metrics
-I../lib/librte_telemetry/../librte_metrics -Ilib/librte_telemetry
-I../lib/librte_telemetry -fdiagnostics-color=always -pipe
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -include rte_config.h
-Wextra -Wcast-qual -Wdeprecated -Wformat -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wold-style-definition
-Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef
-Wwrite-strings -Wno-packed-not-aligned
-Wno-missing-field-initializers -D_GNU_SOURCE -fcommon -Werror -fPIC
-march=armv8.1-a+crc+crypto+lse -mcpu=thunderxt88
-DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation
'-DABI_VERSION="21.2"' -DRTE_LIBEAL_USE_GETENTROPY  -MD -MQ
'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_class.c.o' -MF
'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_class.c.o.d' -o
'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_class.c.o' -c
../lib/librte_eal/common/eal_common_class.c
[  540s] FAILED: lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_class.c.o
[  540s] cc -Ilib/76b5a35@@rte_eal@sta -Ilib -I../lib -I. -I../
-Iconfig -I../config -Ilib/librte_eal/include
-I../lib/librte_eal/include -Ilib/librte_eal/linux/include
-I../lib/librte_eal/linux/include -Ilib/librte_eal/arm/include
-I../lib/librte_eal/arm/include -Ilib/librte_eal/common
-I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal
-Ilib/librte_kvargs -I../lib/librte_kvargs
-Ilib/librte_telemetry/../librte_metrics
-I../lib/librte_telemetry/../librte_metrics -Ilib/librte_telemetry
-I../lib/librte_telemetry -fdiagnostics-color=always -pipe
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -include rte_config.h
-Wextra -Wcast-qual -Wdeprecated -Wformat -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wold-style-definition
-Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef
-Wwrite-strings -Wno-packed-not-aligned
-Wno-missing-field-initializers -D_GNU_SOURCE -fcommon -Werror -fPIC
-march=armv8.1-a+crc+crypto+lse -mcpu=thunderxt88
-DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation
'-DABI_VERSION="21.2"' -DRTE_LIBEAL_USE_GETENTROPY  -MD -MQ
'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_class.c.o' -MF
'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_class.c.o.d' -o
'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_class.c.o' -c
../lib/librte_eal/common/eal_common_class.c
[  540s] cc1: error: switch -mcpu=armv8-a conflicts with
-march=armv8.1-a switch [-Werror]
[  540s] cc1: all warnings being treated as errors

For the full log:
https://build.opensuse.org/build/home:dmarchan/home_bluca_dpdk_CentOS_8/aarch64/dpdk/_log



-- 
David Marchand


  reply	other threads:[~2021-02-25 14:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19 10:57 luca.boccassi
2021-02-19 11:06 ` Juraj Linkeš
2021-02-19 11:33   ` Luca Boccassi
2021-02-19 12:10     ` Juraj Linkeš
2021-02-19 13:04       ` Luca Boccassi
2021-02-24 12:51         ` Juraj Linkeš
2021-02-20  3:42       ` Ruifeng Wang
2021-02-25 12:14         ` Jerin Jacob Kollanukkaran
2021-02-25 14:24           ` David Marchand [this message]
2021-03-01  5:40           ` Ruifeng Wang
2021-03-07 13:35             ` Jerin Jacob Kollanukkaran
2021-03-08  3:23               ` Ruifeng Wang
2021-03-08 12:08                 ` Luca Boccassi
2021-03-08 18:51                   ` [dpdk-stable] [dpdk-dev] " Jerin Jacob
2021-03-08 18:48                 ` Jerin Jacob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJFAV8w+oRyXxhYEf3U_WQ8O5vfOBHPgew+4iBsPXYRFP321Cw@mail.gmail.com \
    --to=david.marchand@redhat.com \
    --cc=Ruifeng.Wang@arm.com \
    --cc=bluca@debian.org \
    --cc=jerinj@marvell.com \
    --cc=juraj.linkes@pantheon.tech \
    --cc=nd@arm.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ https://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git