DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build
@ 2021-06-04  5:48 Ruifeng Wang
  2021-06-04  9:32 ` James Grant
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ruifeng Wang @ 2021-06-04  5:48 UTC (permalink / raw)
  To: viktorin, jerinj, bruce.richardson
  Cc: dev, nd, J.Grant, david.marchand, thomas, Ruifeng Wang,
	James Grant, Honnappa Nagarahalli

Build on FreeBSD on aarch64 failed with error:
lib/eal/arm/rte_cpuflags.c:86:9: error: unknown type name 'Elf64_auxv_t'

The data type is used by OS Linux auxiliary vector read, and not used by
arch specific cpu flag API implementations. Hence remove it from Arm file.

Reported-by: James Grant <j.grant@qub.ac.uk>
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
---
 lib/eal/arm/rte_cpuflags.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/eal/arm/rte_cpuflags.c b/lib/eal/arm/rte_cpuflags.c
index 845770f1e5..d84c9fc09f 100644
--- a/lib/eal/arm/rte_cpuflags.c
+++ b/lib/eal/arm/rte_cpuflags.c
@@ -48,7 +48,6 @@ struct feature_entry {
 
 #ifdef RTE_ARCH_ARMv7
 #define PLATFORM_STR "v7l"
-typedef Elf32_auxv_t _Elfx_auxv_t;
 
 const struct feature_entry rte_cpu_feature_table[] = {
 	FEAT_DEF(SWP,       REG_HWCAP,    0)
@@ -83,7 +82,6 @@ const struct feature_entry rte_cpu_feature_table[] = {
 
 #elif defined RTE_ARCH_ARM64
 #define PLATFORM_STR "aarch64"
-typedef Elf64_auxv_t _Elfx_auxv_t;
 
 const struct feature_entry rte_cpu_feature_table[] = {
 	FEAT_DEF(FP,		REG_HWCAP,    0)
-- 
2.25.1


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

* Re: [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build
  2021-06-04  5:48 [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build Ruifeng Wang
@ 2021-06-04  9:32 ` James Grant
  2021-06-11  8:58 ` David Marchand
  2021-06-11 14:42 ` [dpdk-dev] [PATCH v2] eal/arm: remove irrelevant code Ruifeng Wang
  2 siblings, 0 replies; 6+ messages in thread
From: James Grant @ 2021-06-04  9:32 UTC (permalink / raw)
  To: Ruifeng Wang, viktorin, jerinj, bruce.richardson
  Cc: dev, nd, david.marchand, thomas, Honnappa Nagarahalli

Hi Everyone,

Thanks for the help . I was able to build DPDK using this patch on a physical machine.

Best regards,
James Grant 

Senior Embedded Software Engineer | CSIT | QUB.

-----Original Message-----
From: Ruifeng Wang <ruifeng.wang@arm.com> 
Sent: 04 June 2021 06:49
To: viktorin@rehivetech.com; jerinj@marvell.com; bruce.richardson@intel.com
Cc: dev@dpdk.org; nd@arm.com; James Grant <J.Grant@qub.ac.uk>; david.marchand@redhat.com; thomas@monjalon.net; Ruifeng Wang <ruifeng.wang@arm.com>; James Grant <J.Grant@qub.ac.uk>; Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Subject: [PATCH] eal/arm: enable FreeBSD build

This message is from an external sender. Please take care when responding, clicking links or opening attachments.

Build on FreeBSD on aarch64 failed with error:
lib/eal/arm/rte_cpuflags.c:86:9: error: unknown type name 'Elf64_auxv_t'

The data type is used by OS Linux auxiliary vector read, and not used by arch specific cpu flag API implementations. Hence remove it from Arm file.

Reported-by: James Grant <j.grant@qub.ac.uk>
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
---
 lib/eal/arm/rte_cpuflags.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/eal/arm/rte_cpuflags.c b/lib/eal/arm/rte_cpuflags.c index 845770f1e5..d84c9fc09f 100644
--- a/lib/eal/arm/rte_cpuflags.c
+++ b/lib/eal/arm/rte_cpuflags.c
@@ -48,7 +48,6 @@ struct feature_entry {

 #ifdef RTE_ARCH_ARMv7
 #define PLATFORM_STR "v7l"
-typedef Elf32_auxv_t _Elfx_auxv_t;

 const struct feature_entry rte_cpu_feature_table[] = {
        FEAT_DEF(SWP,       REG_HWCAP,    0)
@@ -83,7 +82,6 @@ const struct feature_entry rte_cpu_feature_table[] = {

 #elif defined RTE_ARCH_ARM64
 #define PLATFORM_STR "aarch64"
-typedef Elf64_auxv_t _Elfx_auxv_t;

 const struct feature_entry rte_cpu_feature_table[] = {
        FEAT_DEF(FP,            REG_HWCAP,    0)
--
2.25.1


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

* Re: [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build
  2021-06-04  5:48 [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build Ruifeng Wang
  2021-06-04  9:32 ` James Grant
@ 2021-06-11  8:58 ` David Marchand
  2021-06-11 10:49   ` Ruifeng Wang
  2021-06-11 14:42 ` [dpdk-dev] [PATCH v2] eal/arm: remove irrelevant code Ruifeng Wang
  2 siblings, 1 reply; 6+ messages in thread
From: David Marchand @ 2021-06-11  8:58 UTC (permalink / raw)
  To: Ruifeng Wang
  Cc: Jan Viktorin, Jerin Jacob Kollanukkaran, Bruce Richardson, dev,
	nd, J.Grant, Thomas Monjalon, Honnappa Nagarahalli

On Fri, Jun 4, 2021 at 7:49 AM Ruifeng Wang <ruifeng.wang@arm.com> wrote:
>
> Build on FreeBSD on aarch64 failed with error:
> lib/eal/arm/rte_cpuflags.c:86:9: error: unknown type name 'Elf64_auxv_t'
>
> The data type is used by OS Linux auxiliary vector read, and not used by
> arch specific cpu flag API implementations. Hence remove it from Arm file.
>
> Reported-by: James Grant <j.grant@qub.ac.uk>
> Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>

This never worked, so this patch counts as enabling a new supported OS/arch.

If we want FreeBSD support on ARM, we will need non regression tests in some CI.
A release notes update is also needed.


-- 
David Marchand


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

* Re: [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build
  2021-06-11  8:58 ` David Marchand
@ 2021-06-11 10:49   ` Ruifeng Wang
  0 siblings, 0 replies; 6+ messages in thread
From: Ruifeng Wang @ 2021-06-11 10:49 UTC (permalink / raw)
  To: David Marchand
  Cc: Jan Viktorin, jerinj, Bruce Richardson, dev, nd, J.Grant, thomas,
	Honnappa Nagarahalli, nd

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Friday, June 11, 2021 4:59 PM
> To: Ruifeng Wang <Ruifeng.Wang@arm.com>
> Cc: Jan Viktorin <viktorin@rehivetech.com>; jerinj@marvell.com; Bruce
> Richardson <bruce.richardson@intel.com>; dev <dev@dpdk.org>; nd
> <nd@arm.com>; J.Grant@qub.ac.uk; thomas@monjalon.net; Honnappa
> Nagarahalli <Honnappa.Nagarahalli@arm.com>
> Subject: Re: [PATCH] eal/arm: enable FreeBSD build
> 
> On Fri, Jun 4, 2021 at 7:49 AM Ruifeng Wang <ruifeng.wang@arm.com>
> wrote:
> >
> > Build on FreeBSD on aarch64 failed with error:
> > lib/eal/arm/rte_cpuflags.c:86:9: error: unknown type name 'Elf64_auxv_t'
> >
> > The data type is used by OS Linux auxiliary vector read, and not used
> > by arch specific cpu flag API implementations. Hence remove it from Arm
> file.
> >
> > Reported-by: James Grant <j.grant@qub.ac.uk>
> > Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
> > Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
> 
> This never worked, so this patch counts as enabling a new supported OS/arch.
> 
> If we want FreeBSD support on ARM, we will need non regression tests in
> some CI.
Currently no plan to claim FreeBSD support on Arm.
I'll update commit message to treat it as removal of useless code.

> A release notes update is also needed.
> 
> 
> --
> David Marchand


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

* [dpdk-dev] [PATCH v2] eal/arm: remove irrelevant code
  2021-06-04  5:48 [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build Ruifeng Wang
  2021-06-04  9:32 ` James Grant
  2021-06-11  8:58 ` David Marchand
@ 2021-06-11 14:42 ` Ruifeng Wang
  2021-07-05  7:54   ` David Marchand
  2 siblings, 1 reply; 6+ messages in thread
From: Ruifeng Wang @ 2021-06-11 14:42 UTC (permalink / raw)
  To: viktorin, jerinj, bruce.richardson
  Cc: dev, nd, J.Grant, david.marchand, thomas, Ruifeng Wang,
	James Grant, Honnappa Nagarahalli

Data types Elf32_auxv_t and Elf64_auxv_t are used by OS Linux
auxiliary vector read, and not used by arch specific cpu flag
API implementations. Hence remove them from Arm file.

Reported-by: James Grant <j.grant@qub.ac.uk>
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
---
v2:
Update commit message to remove implication of FreeBSD support.

 lib/eal/arm/rte_cpuflags.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/eal/arm/rte_cpuflags.c b/lib/eal/arm/rte_cpuflags.c
index 845770f1e5..d84c9fc09f 100644
--- a/lib/eal/arm/rte_cpuflags.c
+++ b/lib/eal/arm/rte_cpuflags.c
@@ -48,7 +48,6 @@ struct feature_entry {
 
 #ifdef RTE_ARCH_ARMv7
 #define PLATFORM_STR "v7l"
-typedef Elf32_auxv_t _Elfx_auxv_t;
 
 const struct feature_entry rte_cpu_feature_table[] = {
 	FEAT_DEF(SWP,       REG_HWCAP,    0)
@@ -83,7 +82,6 @@ const struct feature_entry rte_cpu_feature_table[] = {
 
 #elif defined RTE_ARCH_ARM64
 #define PLATFORM_STR "aarch64"
-typedef Elf64_auxv_t _Elfx_auxv_t;
 
 const struct feature_entry rte_cpu_feature_table[] = {
 	FEAT_DEF(FP,		REG_HWCAP,    0)
-- 
2.25.1


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

* Re: [dpdk-dev] [PATCH v2] eal/arm: remove irrelevant code
  2021-06-11 14:42 ` [dpdk-dev] [PATCH v2] eal/arm: remove irrelevant code Ruifeng Wang
@ 2021-07-05  7:54   ` David Marchand
  0 siblings, 0 replies; 6+ messages in thread
From: David Marchand @ 2021-07-05  7:54 UTC (permalink / raw)
  To: Ruifeng Wang
  Cc: Jan Viktorin, Jerin Jacob Kollanukkaran, Bruce Richardson, dev,
	nd, J.Grant, Thomas Monjalon, Honnappa Nagarahalli

On Fri, Jun 11, 2021 at 4:42 PM Ruifeng Wang <ruifeng.wang@arm.com> wrote:
>
> Data types Elf32_auxv_t and Elf64_auxv_t are used by OS Linux
> auxiliary vector read, and not used by arch specific cpu flag
> API implementations. Hence remove them from Arm file.
>
> Reported-by: James Grant <j.grant@qub.ac.uk>
> Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
> ---
> v2:
> Update commit message to remove implication of FreeBSD support.

Applied, thanks.


-- 
David Marchand


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

end of thread, other threads:[~2021-07-05  7:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04  5:48 [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build Ruifeng Wang
2021-06-04  9:32 ` James Grant
2021-06-11  8:58 ` David Marchand
2021-06-11 10:49   ` Ruifeng Wang
2021-06-11 14:42 ` [dpdk-dev] [PATCH v2] eal/arm: remove irrelevant code Ruifeng Wang
2021-07-05  7:54   ` David Marchand

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).