DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] config/arm: fix Neoverse N2 march flag
@ 2023-06-08  7:27 pbhagavatula
  2023-06-08  9:54 ` Srikanth Yalavarthi
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: pbhagavatula @ 2023-06-08  7:27 UTC (permalink / raw)
  To: jerinj, Ruifeng Wang, Bruce Richardson; +Cc: dev, Pavan Nikhilesh

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

The -march flag of Neoverse N2 should be `armv9-a` when
used along with -mcpu=neoverse-n2.

Fixes: ea85ed1f6882 ("config/arm: increase nodes and cores for Neoverse N2")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 config/arm/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/arm/meson.build b/config/arm/meson.build
index 43f6a551a2..d3b4b4917f 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -89,7 +89,7 @@ part_number_config_arm = {
         'march': 'armv8.4-a',
     },
     '0xd49': {
-        'march': 'armv8.5-a',
+        'march': 'armv9-a',
         'march_features': ['sve2'],
         'compiler_options': ['-mcpu=neoverse-n2'],
         'flags': [
@@ -630,7 +630,7 @@ if update_flags
     # probe supported archs and their features
     candidate_march = ''
     if part_number_config.has_key('march')
-        supported_marchs = ['armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a',
+        supported_marchs = ['armv9-a', 'armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a',
                             'armv8.2-a', 'armv8.1-a', 'armv8-a']
         check_compiler_support = false
         foreach supported_march: supported_marchs
-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] config/arm: fix Neoverse N2 march flag
  2023-06-08  7:27 [PATCH] config/arm: fix Neoverse N2 march flag pbhagavatula
@ 2023-06-08  9:54 ` Srikanth Yalavarthi
  2023-06-08 10:41 ` Ruifeng Wang
  2023-06-08 19:34 ` [PATCH v2] " pbhagavatula
  2 siblings, 0 replies; 8+ messages in thread
From: Srikanth Yalavarthi @ 2023-06-08  9:54 UTC (permalink / raw)
  To: pbhagavatula; +Cc: jerinj, Ruifeng Wang, Bruce Richardson, dev, syalavarthi

On Thu, Jun 8, 2023 at 12:58 PM <pbhagavatula@marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
>
> The -march flag of Neoverse N2 should be `armv9-a` when
> used along with -mcpu=neoverse-n2.
>
> Fixes: ea85ed1f6882 ("config/arm: increase nodes and cores for Neoverse N2")
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Tested-by: Srikanth Yalavarthi <syalavarthi@marvell.com>

> ---
>  config/arm/meson.build | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/config/arm/meson.build b/config/arm/meson.build
> index 43f6a551a2..d3b4b4917f 100644
> --- a/config/arm/meson.build
> +++ b/config/arm/meson.build
> @@ -89,7 +89,7 @@ part_number_config_arm = {
>          'march': 'armv8.4-a',
>      },
>      '0xd49': {
> -        'march': 'armv8.5-a',
> +        'march': 'armv9-a',
>          'march_features': ['sve2'],
>          'compiler_options': ['-mcpu=neoverse-n2'],
>          'flags': [
> @@ -630,7 +630,7 @@ if update_flags
>      # probe supported archs and their features
>      candidate_march = ''
>      if part_number_config.has_key('march')
> -        supported_marchs = ['armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a',
> +        supported_marchs = ['armv9-a', 'armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a',
>                              'armv8.2-a', 'armv8.1-a', 'armv8-a']
>          check_compiler_support = false
>          foreach supported_march: supported_marchs
> --
> 2.25.1
>


-- 
Srikanth Yalavarthi
Bengaluru, India
+919420084280

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH] config/arm: fix Neoverse N2 march flag
  2023-06-08  7:27 [PATCH] config/arm: fix Neoverse N2 march flag pbhagavatula
  2023-06-08  9:54 ` Srikanth Yalavarthi
@ 2023-06-08 10:41 ` Ruifeng Wang
  2023-06-08 12:58   ` Pavan Nikhilesh Bhagavatula
  2023-06-08 19:34 ` [PATCH v2] " pbhagavatula
  2 siblings, 1 reply; 8+ messages in thread
From: Ruifeng Wang @ 2023-06-08 10:41 UTC (permalink / raw)
  To: pbhagavatula, jerinj, Bruce Richardson; +Cc: dev, Juraj Linkeš, nd

> -----Original Message-----
> From: pbhagavatula@marvell.com <pbhagavatula@marvell.com>
> Sent: Thursday, June 8, 2023 3:28 PM
> To: jerinj@marvell.com; Ruifeng Wang <Ruifeng.Wang@arm.com>; Bruce Richardson
> <bruce.richardson@intel.com>
> Cc: dev@dpdk.org; Pavan Nikhilesh <pbhagavatula@marvell.com>
> Subject: [PATCH] config/arm: fix Neoverse N2 march flag
> 
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
> 
> The -march flag of Neoverse N2 should be `armv9-a` when used along with -mcpu=neoverse-n2.
> 
> Fixes: ea85ed1f6882 ("config/arm: increase nodes and cores for Neoverse N2")
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
> ---
>  config/arm/meson.build | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/config/arm/meson.build b/config/arm/meson.build index 43f6a551a2..d3b4b4917f
> 100644
> --- a/config/arm/meson.build
> +++ b/config/arm/meson.build
> @@ -89,7 +89,7 @@ part_number_config_arm = {
>          'march': 'armv8.4-a',
>      },
>      '0xd49': {
> -        'march': 'armv8.5-a',
> +        'march': 'armv9-a',
>          'march_features': ['sve2'],
>          'compiler_options': ['-mcpu=neoverse-n2'],
>          'flags': [
> @@ -630,7 +630,7 @@ if update_flags
>      # probe supported archs and their features
>      candidate_march = ''
>      if part_number_config.has_key('march')
> -        supported_marchs = ['armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a',
> +        supported_marchs = ['armv9-a', 'armv8.6-a', 'armv8.5-a',

march may fallback to armv8.6-a if compiler doesn't support armv9-a. Is this fallback safe?
I think just remove march from N2 part_number_config is OK. 

> + 'armv8.4-a', 'armv8.3-a',
>                              'armv8.2-a', 'armv8.1-a', 'armv8-a']
>          check_compiler_support = false
>          foreach supported_march: supported_marchs
> --
> 2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH] config/arm: fix Neoverse N2 march flag
  2023-06-08 10:41 ` Ruifeng Wang
@ 2023-06-08 12:58   ` Pavan Nikhilesh Bhagavatula
  2023-06-08 14:20     ` Ruifeng Wang
  0 siblings, 1 reply; 8+ messages in thread
From: Pavan Nikhilesh Bhagavatula @ 2023-06-08 12:58 UTC (permalink / raw)
  To: Ruifeng Wang, Jerin Jacob Kollanukkaran, Bruce Richardson
  Cc: dev, Juraj Linkeš, nd



> -----Original Message-----
> From: Ruifeng Wang <Ruifeng.Wang@arm.com>
> Sent: Thursday, June 8, 2023 4:12 PM
> To: Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>; Jerin Jacob
> Kollanukkaran <jerinj@marvell.com>; Bruce Richardson
> <bruce.richardson@intel.com>
> Cc: dev@dpdk.org; Juraj Linkeš <juraj.linkes@pantheon.tech>; nd
> <nd@arm.com>
> Subject: [EXT] RE: [PATCH] config/arm: fix Neoverse N2 march flag
> 
> External Email
> 
> ----------------------------------------------------------------------
> > -----Original Message-----
> > From: pbhagavatula@marvell.com <pbhagavatula@marvell.com>
> > Sent: Thursday, June 8, 2023 3:28 PM
> > To: jerinj@marvell.com; Ruifeng Wang <Ruifeng.Wang@arm.com>; Bruce
> Richardson
> > <bruce.richardson@intel.com>
> > Cc: dev@dpdk.org; Pavan Nikhilesh <pbhagavatula@marvell.com>
> > Subject: [PATCH] config/arm: fix Neoverse N2 march flag
> >
> > From: Pavan Nikhilesh <pbhagavatula@marvell.com>
> >
> > The -march flag of Neoverse N2 should be `armv9-a` when used along with
> -mcpu=neoverse-n2.
> >
> > Fixes: ea85ed1f6882 ("config/arm: increase nodes and cores for Neoverse
> N2")
> >
> > Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
> > ---
> >  config/arm/meson.build | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/config/arm/meson.build b/config/arm/meson.build index
> 43f6a551a2..d3b4b4917f
> > 100644
> > --- a/config/arm/meson.build
> > +++ b/config/arm/meson.build
> > @@ -89,7 +89,7 @@ part_number_config_arm = {
> >          'march': 'armv8.4-a',
> >      },
> >      '0xd49': {
> > -        'march': 'armv8.5-a',
> > +        'march': 'armv9-a',
> >          'march_features': ['sve2'],
> >          'compiler_options': ['-mcpu=neoverse-n2'],
> >          'flags': [
> > @@ -630,7 +630,7 @@ if update_flags
> >      # probe supported archs and their features
> >      candidate_march = ''
> >      if part_number_config.has_key('march')
> > -        supported_marchs = ['armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a',
> > +        supported_marchs = ['armv9-a', 'armv8.6-a', 'armv8.5-a',
> 
> march may fallback to armv8.6-a if compiler doesn't support armv9-a. Is this
> fallback safe?

Yeah, looks like we need to have a fallback arch if compiler doesn't support a given march
Armv8.5-a in this case.

> I think just remove march from N2 part_number_config is OK.

I will remove the march from part number config for now.
But we should work on defining a fallback arch in future as there will always be a compiler support mismatch.

> 
> > + 'armv8.4-a', 'armv8.3-a',
> >                              'armv8.2-a', 'armv8.1-a', 'armv8-a']
> >          check_compiler_support = false
> >          foreach supported_march: supported_marchs
> > --
> > 2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH] config/arm: fix Neoverse N2 march flag
  2023-06-08 12:58   ` Pavan Nikhilesh Bhagavatula
@ 2023-06-08 14:20     ` Ruifeng Wang
  0 siblings, 0 replies; 8+ messages in thread
From: Ruifeng Wang @ 2023-06-08 14:20 UTC (permalink / raw)
  To: Pavan Nikhilesh Bhagavatula, jerinj, Bruce Richardson
  Cc: dev, Juraj Linkeš, nd, nd

> -----Original Message-----
> From: Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>
> Sent: Thursday, June 8, 2023 8:59 PM
> To: Ruifeng Wang <Ruifeng.Wang@arm.com>; jerinj@marvell.com; Bruce Richardson
> <bruce.richardson@intel.com>
> Cc: dev@dpdk.org; Juraj Linkeš <juraj.linkes@pantheon.tech>; nd <nd@arm.com>
> Subject: RE: [PATCH] config/arm: fix Neoverse N2 march flag
> 
> 
> 
> > -----Original Message-----
> > From: Ruifeng Wang <Ruifeng.Wang@arm.com>
> > Sent: Thursday, June 8, 2023 4:12 PM
> > To: Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>; Jerin
> > Jacob Kollanukkaran <jerinj@marvell.com>; Bruce Richardson
> > <bruce.richardson@intel.com>
> > Cc: dev@dpdk.org; Juraj Linkeš <juraj.linkes@pantheon.tech>; nd
> > <nd@arm.com>
> > Subject: [EXT] RE: [PATCH] config/arm: fix Neoverse N2 march flag
> >
> > External Email
> >
> > ----------------------------------------------------------------------
> > > -----Original Message-----
> > > From: pbhagavatula@marvell.com <pbhagavatula@marvell.com>
> > > Sent: Thursday, June 8, 2023 3:28 PM
> > > To: jerinj@marvell.com; Ruifeng Wang <Ruifeng.Wang@arm.com>; Bruce
> > Richardson
> > > <bruce.richardson@intel.com>
> > > Cc: dev@dpdk.org; Pavan Nikhilesh <pbhagavatula@marvell.com>
> > > Subject: [PATCH] config/arm: fix Neoverse N2 march flag
> > >
> > > From: Pavan Nikhilesh <pbhagavatula@marvell.com>
> > >
> > > The -march flag of Neoverse N2 should be `armv9-a` when used along
> > > with
> > -mcpu=neoverse-n2.
> > >
> > > Fixes: ea85ed1f6882 ("config/arm: increase nodes and cores for
> > > Neoverse
> > N2")
> > >
> > > Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
> > > ---
> > >  config/arm/meson.build | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/config/arm/meson.build b/config/arm/meson.build index
> > 43f6a551a2..d3b4b4917f
> > > 100644
> > > --- a/config/arm/meson.build
> > > +++ b/config/arm/meson.build
> > > @@ -89,7 +89,7 @@ part_number_config_arm = {
> > >          'march': 'armv8.4-a',
> > >      },
> > >      '0xd49': {
> > > -        'march': 'armv8.5-a',
> > > +        'march': 'armv9-a',
> > >          'march_features': ['sve2'],
> > >          'compiler_options': ['-mcpu=neoverse-n2'],
> > >          'flags': [
> > > @@ -630,7 +630,7 @@ if update_flags
> > >      # probe supported archs and their features
> > >      candidate_march = ''
> > >      if part_number_config.has_key('march')
> > > -        supported_marchs = ['armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a',
> > > +        supported_marchs = ['armv9-a', 'armv8.6-a', 'armv8.5-a',
> >
> > march may fallback to armv8.6-a if compiler doesn't support armv9-a.
> > Is this fallback safe?
> 
> Yeah, looks like we need to have a fallback arch if compiler doesn't support a given march
> Armv8.5-a in this case.
> 
> > I think just remove march from N2 part_number_config is OK.
> 
> I will remove the march from part number config for now.
> But we should work on defining a fallback arch in future as there will always be a
> compiler support mismatch.

Agree. Need to adapt this for v9-a.

> 
> >
> > > + 'armv8.4-a', 'armv8.3-a',
> > >                              'armv8.2-a', 'armv8.1-a', 'armv8-a']
> > >          check_compiler_support = false
> > >          foreach supported_march: supported_marchs
> > > --
> > > 2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2] config/arm: fix Neoverse N2 march flag
  2023-06-08  7:27 [PATCH] config/arm: fix Neoverse N2 march flag pbhagavatula
  2023-06-08  9:54 ` Srikanth Yalavarthi
  2023-06-08 10:41 ` Ruifeng Wang
@ 2023-06-08 19:34 ` pbhagavatula
  2023-06-09  4:02   ` Ruifeng Wang
  2 siblings, 1 reply; 8+ messages in thread
From: pbhagavatula @ 2023-06-08 19:34 UTC (permalink / raw)
  To: jerinj, Ruifeng Wang, Bruce Richardson
  Cc: dev, Pavan Nikhilesh, Srikanth Yalavarthi

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

The -march flag of Neoverse N2 should be removed with the introduction
of -mcpu='neoverse-n2' as they are incompatible.

Fixes: ea85ed1f6882 ("config/arm: increase nodes and cores for Neoverse N2")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Tested-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
---
 v2 Changes:
 - Remove adding armv9-a to march as it is incompatible with older GCC.

 config/arm/meson.build | 1 -
 1 file changed, 1 deletion(-)

diff --git a/config/arm/meson.build b/config/arm/meson.build
index 43f6a551a2..ae2226988e 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -89,7 +89,6 @@ part_number_config_arm = {
         'march': 'armv8.4-a',
     },
     '0xd49': {
-        'march': 'armv8.5-a',
         'march_features': ['sve2'],
         'compiler_options': ['-mcpu=neoverse-n2'],
         'flags': [
--
2.39.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH v2] config/arm: fix Neoverse N2 march flag
  2023-06-08 19:34 ` [PATCH v2] " pbhagavatula
@ 2023-06-09  4:02   ` Ruifeng Wang
  2023-06-12 17:06     ` Thomas Monjalon
  0 siblings, 1 reply; 8+ messages in thread
From: Ruifeng Wang @ 2023-06-09  4:02 UTC (permalink / raw)
  To: pbhagavatula, jerinj, Bruce Richardson; +Cc: dev, Srikanth Yalavarthi, nd

> -----Original Message-----
> From: pbhagavatula@marvell.com <pbhagavatula@marvell.com>
> Sent: Friday, June 9, 2023 3:35 AM
> To: jerinj@marvell.com; Ruifeng Wang <Ruifeng.Wang@arm.com>; Bruce Richardson
> <bruce.richardson@intel.com>
> Cc: dev@dpdk.org; Pavan Nikhilesh <pbhagavatula@marvell.com>; Srikanth Yalavarthi
> <syalavarthi@marvell.com>
> Subject: [PATCH v2] config/arm: fix Neoverse N2 march flag
> 
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
> 
> The -march flag of Neoverse N2 should be removed with the introduction of -mcpu='neoverse-
> n2' as they are incompatible.
> 
> Fixes: ea85ed1f6882 ("config/arm: increase nodes and cores for Neoverse N2")
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
> Tested-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
> ---
>  v2 Changes:
>  - Remove adding armv9-a to march as it is incompatible with older GCC.
> 
>  config/arm/meson.build | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/config/arm/meson.build b/config/arm/meson.build index 43f6a551a2..ae2226988e
> 100644
> --- a/config/arm/meson.build
> +++ b/config/arm/meson.build
> @@ -89,7 +89,6 @@ part_number_config_arm = {
>          'march': 'armv8.4-a',
>      },
>      '0xd49': {
> -        'march': 'armv8.5-a',
>          'march_features': ['sve2'],
>          'compiler_options': ['-mcpu=neoverse-n2'],
>          'flags': [
> --
> 2.39.1

Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] config/arm: fix Neoverse N2 march flag
  2023-06-09  4:02   ` Ruifeng Wang
@ 2023-06-12 17:06     ` Thomas Monjalon
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Monjalon @ 2023-06-12 17:06 UTC (permalink / raw)
  To: pbhagavatula, jerinj, Srikanth Yalavarthi
  Cc: Bruce Richardson, dev, nd, Ruifeng Wang

> > From: Pavan Nikhilesh <pbhagavatula@marvell.com>
> > 
> > The -march flag of Neoverse N2 should be removed with the introduction of -mcpu='neoverse-
> > n2' as they are incompatible.
> > 
> > Fixes: ea85ed1f6882 ("config/arm: increase nodes and cores for Neoverse N2")
> > 
> > Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
> > Tested-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
> 
> Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>

Applied, thanks.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-06-12 17:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-08  7:27 [PATCH] config/arm: fix Neoverse N2 march flag pbhagavatula
2023-06-08  9:54 ` Srikanth Yalavarthi
2023-06-08 10:41 ` Ruifeng Wang
2023-06-08 12:58   ` Pavan Nikhilesh Bhagavatula
2023-06-08 14:20     ` Ruifeng Wang
2023-06-08 19:34 ` [PATCH v2] " pbhagavatula
2023-06-09  4:02   ` Ruifeng Wang
2023-06-12 17:06     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).