[1/2] mk: add Marvell ARMADA architecture based on armv8-a

Message ID 1558128440-15776-2-git-send-email-lironh@marvell.com (mailing list archive)
State Superseded, archived
Headers
Series Introduces armada target |

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Liron Himi May 17, 2019, 9:27 p.m. UTC
  From: Liron Himi <lironh@marvell.com>

This patch introduces armada target to address difference
in number of cores, no numa support

Change-Id: Ieaabe77b165000fe1280f98105329a0e63833b92
Signed-off-by: Liron Himi <lironh@marvell.com>
Reviewed-by: Alan Winkowski
Tested-by: Liron Himi
---
 config/defconfig_arm64-armada-linux-gcc    | 24 ++++++++++++++++++++++++
 config/defconfig_arm64-armada-linuxapp-gcc | 24 ++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 config/defconfig_arm64-armada-linux-gcc
 create mode 100644 config/defconfig_arm64-armada-linuxapp-gcc
  

Comments

Ruifeng Wang May 22, 2019, 9:11 a.m. UTC | #1
Hi,

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of lironh@marvell.com
> Sent: Saturday, May 18, 2019 05:27
> To: thomas@monjalon.net
> Cc: dev@dpdk.org; Liron Himi <lironh@marvell.com>
> Subject: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture
> based on armv8-a
> 
> From: Liron Himi <lironh@marvell.com>
> 
> This patch introduces armada target to address difference in number of cores,
> no numa support
> 
> Change-Id: Ieaabe77b165000fe1280f98105329a0e63833b92
> Signed-off-by: Liron Himi <lironh@marvell.com>
> Reviewed-by: Alan Winkowski
> Tested-by: Liron Himi
> ---
>  config/defconfig_arm64-armada-linux-gcc    | 24
> ++++++++++++++++++++++++
>  config/defconfig_arm64-armada-linuxapp-gcc | 24
> ++++++++++++++++++++++++
>  2 files changed, 48 insertions(+)
>  create mode 100644 config/defconfig_arm64-armada-linux-gcc
>  create mode 100644 config/defconfig_arm64-armada-linuxapp-gcc
> 
> diff --git a/config/defconfig_arm64-armada-linux-gcc
> b/config/defconfig_arm64-armada-linux-gcc
> new file mode 100644
> index 0000000..573b278
> --- /dev/null
> +++ b/config/defconfig_arm64-armada-linux-gcc
> @@ -0,0 +1,24 @@
> +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Marvell
> +International Ltd #
> +
> +#include "defconfig_arm64-armv8a-linux-gcc"
> +
> +CONFIG_RTE_LIBRTE_MVEP_COMMON=y
> +CONFIG_RTE_LIBRTE_MVPP2_PMD=y
> +CONFIG_RTE_LIBRTE_MVNETA_PMD=y
> +CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO=y
> +
> +#
> +# Compile Environment Abstraction Layer #
> +CONFIG_RTE_MAX_LCORE=16
> +CONFIG_RTE_MAX_NUMA_NODES=1
> +CONFIG_RTE_CACHE_LINE_SIZE=64
> +
> +# Disable NXP as it is conflict with MUSDK
> CONFIG_RTE_LIBRTE_DPAA_BUS=n
> +
> +# Doesn't support NUMA
> +CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
> +CONFIG_RTE_LIBRTE_VHOST_NUMA=n
> diff --git a/config/defconfig_arm64-armada-linuxapp-gcc
> b/config/defconfig_arm64-armada-linuxapp-gcc
> new file mode 100644
> index 0000000..573b278
> --- /dev/null
> +++ b/config/defconfig_arm64-armada-linuxapp-gcc
> @@ -0,0 +1,24 @@
> +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Marvell
> +International Ltd #
> +
> +#include "defconfig_arm64-armv8a-linux-gcc"
> +
> +CONFIG_RTE_LIBRTE_MVEP_COMMON=y
> +CONFIG_RTE_LIBRTE_MVPP2_PMD=y
> +CONFIG_RTE_LIBRTE_MVNETA_PMD=y

There is a note in MVPP2 PMD guide, " When MVPP2 PMD is enabled CONFIG_RTE_LIBRTE_MVNETA_PMD must be disabled ".
I think this configuration conflicts with the guide. Does the guide need to be updated?

> +CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO=y
> +
> +#
> +# Compile Environment Abstraction Layer #
> +CONFIG_RTE_MAX_LCORE=16
> +CONFIG_RTE_MAX_NUMA_NODES=1
> +CONFIG_RTE_CACHE_LINE_SIZE=64
> +
> +# Disable NXP as it is conflict with MUSDK
> CONFIG_RTE_LIBRTE_DPAA_BUS=n
> +
> +# Doesn't support NUMA
> +CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
> +CONFIG_RTE_LIBRTE_VHOST_NUMA=n
> --
> 2.7.4
  
Liron Himi May 22, 2019, 9:12 a.m. UTC | #2
Hi,



Regards,
Liron

-----Original Message-----
From: Ruifeng Wang (Arm Technology China) <Ruifeng.Wang@arm.com> 
Sent: Wednesday, May 22, 2019 12:11
To: Liron Himi <lironh@marvell.com>; thomas@monjalon.net
Cc: dev@dpdk.org; nd <nd@arm.com>; nd <nd@arm.com>
Subject: [EXT] RE: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture based on armv8-a

External Email

----------------------------------------------------------------------
Hi,

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of lironh@marvell.com
> Sent: Saturday, May 18, 2019 05:27
> To: thomas@monjalon.net
> Cc: dev@dpdk.org; Liron Himi <lironh@marvell.com>
> Subject: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture 
> based on armv8-a
> 
> From: Liron Himi <lironh@marvell.com>
> 
> This patch introduces armada target to address difference in number of 
> cores, no numa support
> 
> Change-Id: Ieaabe77b165000fe1280f98105329a0e63833b92
> Signed-off-by: Liron Himi <lironh@marvell.com>
> Reviewed-by: Alan Winkowski
> Tested-by: Liron Himi
> ---
>  config/defconfig_arm64-armada-linux-gcc    | 24
> ++++++++++++++++++++++++
>  config/defconfig_arm64-armada-linuxapp-gcc | 24
> ++++++++++++++++++++++++
>  2 files changed, 48 insertions(+)
>  create mode 100644 config/defconfig_arm64-armada-linux-gcc
>  create mode 100644 config/defconfig_arm64-armada-linuxapp-gcc
> 
> diff --git a/config/defconfig_arm64-armada-linux-gcc
> b/config/defconfig_arm64-armada-linux-gcc
> new file mode 100644
> index 0000000..573b278
> --- /dev/null
> +++ b/config/defconfig_arm64-armada-linux-gcc
> @@ -0,0 +1,24 @@
> +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Marvell 
> +International Ltd #
> +
> +#include "defconfig_arm64-armv8a-linux-gcc"
> +
> +CONFIG_RTE_LIBRTE_MVEP_COMMON=y
> +CONFIG_RTE_LIBRTE_MVPP2_PMD=y
> +CONFIG_RTE_LIBRTE_MVNETA_PMD=y
> +CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO=y
> +
> +#
> +# Compile Environment Abstraction Layer #
> +CONFIG_RTE_MAX_LCORE=16
> +CONFIG_RTE_MAX_NUMA_NODES=1
> +CONFIG_RTE_CACHE_LINE_SIZE=64
> +
> +# Disable NXP as it is conflict with MUSDK
> CONFIG_RTE_LIBRTE_DPAA_BUS=n
> +
> +# Doesn't support NUMA
> +CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
> +CONFIG_RTE_LIBRTE_VHOST_NUMA=n
> diff --git a/config/defconfig_arm64-armada-linuxapp-gcc
> b/config/defconfig_arm64-armada-linuxapp-gcc
> new file mode 100644
> index 0000000..573b278
> --- /dev/null
> +++ b/config/defconfig_arm64-armada-linuxapp-gcc
> @@ -0,0 +1,24 @@
> +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Marvell 
> +International Ltd #
> +
> +#include "defconfig_arm64-armv8a-linux-gcc"
> +
> +CONFIG_RTE_LIBRTE_MVEP_COMMON=y
> +CONFIG_RTE_LIBRTE_MVPP2_PMD=y
> +CONFIG_RTE_LIBRTE_MVNETA_PMD=y

There is a note in MVPP2 PMD guide, " When MVPP2 PMD is enabled CONFIG_RTE_LIBRTE_MVNETA_PMD must be disabled ".
I think this configuration conflicts with the guide. Does the guide need to be updated?
[L.H.] yes, I will submit another patch with documentation updates.

> +CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO=y
> +
> +#
> +# Compile Environment Abstraction Layer #
> +CONFIG_RTE_MAX_LCORE=16
> +CONFIG_RTE_MAX_NUMA_NODES=1
> +CONFIG_RTE_CACHE_LINE_SIZE=64
> +
> +# Disable NXP as it is conflict with MUSDK
> CONFIG_RTE_LIBRTE_DPAA_BUS=n
> +
> +# Doesn't support NUMA
> +CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
> +CONFIG_RTE_LIBRTE_VHOST_NUMA=n
> --
> 2.7.4
  
Ruifeng Wang May 23, 2019, 10:11 a.m. UTC | #3
Hi Liron,

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of lironh@marvell.com
> Sent: Saturday, May 18, 2019 05:27
> To: thomas@monjalon.net
> Cc: dev@dpdk.org; Liron Himi <lironh@marvell.com>
> Subject: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture
> based on armv8-a
> 
> From: Liron Himi <lironh@marvell.com>
> 
> This patch introduces armada target to address difference in number of cores,
> no numa support
> 
> Change-Id: Ieaabe77b165000fe1280f98105329a0e63833b92
> Signed-off-by: Liron Himi <lironh@marvell.com>
> Reviewed-by: Alan Winkowski
> Tested-by: Liron Himi
> ---

My local compilation on MacchiatoBin failed with the target.
I have musdk-armada-18.09 checked out from https://github.com/MarvellEmbeddedProcessors/musdk-marvell.git
LIBMUSDK_PATH was set before compiling.
Hit errors as below:
	== Build drivers/net/mvneta
	  CC mvneta_ethdev.o
	In file included from /home/arm/dpdk/drivers/net/mvneta/mvneta_rxtx.h:10:0,
					 from /home/arm/dpdk/drivers/net/mvneta/mvneta_ethdev.c:25:
	/home/arm/dpdk/drivers/net/mvneta/mvneta_ethdev.h:24:29: fatal error: drivers/mv_neta.h: No such file or directory
	compilation terminated.
	/home/arm/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target 'mvneta_ethdev.o' failed

I tried to copy  the files from musdk to LIBMUSDK_PATH, but still cannot finish compiling.
	  CC test_ipsec.o
	  LD test
	/home/arm/dpdk/arm64-armada-linuxapp-gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function `mvneta_stats_get':
	mvneta_ethdev.c:(.text+0x1c4): undefined reference to `neta_ppio_get_statistics'
	/home/arm/dpdk/arm64-armada-linuxapp-gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function `mvneta_mtu_set':
	mvneta_ethdev.c:(.text+0x368): undefined reference to `neta_ppio_set_mru'
	mvneta_ethdev.c:(.text+0x37c): undefined reference to `neta_ppio_set_mtu'
	/home/arm/dpdk/arm64-armada-linuxapp-gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function `mvneta_promiscuous_disable':
	mvneta_ethdev.c:(.text+0x4e4): undefined reference to `neta_ppio_get_promisc'
	mvneta_ethdev.c:(.text+0x4f8): undefined reference to `neta_ppio_set_promisc'
	......

My musdk repo is updated. Is anything else needed?

Regards,
/Ruifeng
  
Liron Himi May 23, 2019, 10:51 a.m. UTC | #4
Hi,

This patch can only work with MUSDK newer than 18.09.
Do you have access to a newer version?

Regards,
Liron

-----Original Message-----
From: Ruifeng Wang (Arm Technology China) <Ruifeng.Wang@arm.com> 
Sent: Thursday, May 23, 2019 13:11
To: Liron Himi <lironh@marvell.com>; thomas@monjalon.net
Cc: dev@dpdk.org; nd <nd@arm.com>
Subject: [EXT] RE: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture based on armv8-a

External Email

----------------------------------------------------------------------
Hi Liron,

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of lironh@marvell.com
> Sent: Saturday, May 18, 2019 05:27
> To: thomas@monjalon.net
> Cc: dev@dpdk.org; Liron Himi <lironh@marvell.com>
> Subject: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture 
> based on armv8-a
> 
> From: Liron Himi <lironh@marvell.com>
> 
> This patch introduces armada target to address difference in number of 
> cores, no numa support
> 
> Change-Id: Ieaabe77b165000fe1280f98105329a0e63833b92
> Signed-off-by: Liron Himi <lironh@marvell.com>
> Reviewed-by: Alan Winkowski
> Tested-by: Liron Himi
> ---

My local compilation on MacchiatoBin failed with the target.
I have musdk-armada-18.09 checked out from https://github.com/MarvellEmbeddedProcessors/musdk-marvell.git
LIBMUSDK_PATH was set before compiling.
Hit errors as below:
	== Build drivers/net/mvneta
	  CC mvneta_ethdev.o
	In file included from /home/arm/dpdk/drivers/net/mvneta/mvneta_rxtx.h:10:0,
					 from /home/arm/dpdk/drivers/net/mvneta/mvneta_ethdev.c:25:
	/home/arm/dpdk/drivers/net/mvneta/mvneta_ethdev.h:24:29: fatal error: drivers/mv_neta.h: No such file or directory
	compilation terminated.
	/home/arm/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target 'mvneta_ethdev.o' failed

I tried to copy  the files from musdk to LIBMUSDK_PATH, but still cannot finish compiling.
	  CC test_ipsec.o
	  LD test
	/home/arm/dpdk/arm64-armada-linuxapp-gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function `mvneta_stats_get':
	mvneta_ethdev.c:(.text+0x1c4): undefined reference to `neta_ppio_get_statistics'
	/home/arm/dpdk/arm64-armada-linuxapp-gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function `mvneta_mtu_set':
	mvneta_ethdev.c:(.text+0x368): undefined reference to `neta_ppio_set_mru'
	mvneta_ethdev.c:(.text+0x37c): undefined reference to `neta_ppio_set_mtu'
	/home/arm/dpdk/arm64-armada-linuxapp-gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function `mvneta_promiscuous_disable':
	mvneta_ethdev.c:(.text+0x4e4): undefined reference to `neta_ppio_get_promisc'
	mvneta_ethdev.c:(.text+0x4f8): undefined reference to `neta_ppio_set_promisc'
	......

My musdk repo is updated. Is anything else needed?

Regards,
/Ruifeng
  
Ruifeng Wang May 24, 2019, 1:10 a.m. UTC | #5
Hi,

> -----Original Message-----
> From: Liron Himi <lironh@marvell.com>
> Sent: Thursday, May 23, 2019 18:51
> To: Ruifeng Wang (Arm Technology China) <Ruifeng.Wang@arm.com>;
> thomas@monjalon.net
> Cc: dev@dpdk.org; nd <nd@arm.com>; Liron Himi <lironh@marvell.com>
> Subject: RE: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture
> based on armv8-a
> 
> Hi,
> 
> This patch can only work with MUSDK newer than 18.09.
> Do you have access to a newer version?

Will newer MUSDK version available on github?
I have no access to Marvell Extranet.

> 
> Regards,
> Liron
> 
> -----Original Message-----
> From: Ruifeng Wang (Arm Technology China) <Ruifeng.Wang@arm.com>
> Sent: Thursday, May 23, 2019 13:11
> To: Liron Himi <lironh@marvell.com>; thomas@monjalon.net
> Cc: dev@dpdk.org; nd <nd@arm.com>
> Subject: [EXT] RE: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA
> architecture based on armv8-a
> 
> External Email
> 
> ----------------------------------------------------------------------
> Hi Liron,
> 
> > -----Original Message-----
> > From: dev <dev-bounces@dpdk.org> On Behalf Of lironh@marvell.com
> > Sent: Saturday, May 18, 2019 05:27
> > To: thomas@monjalon.net
> > Cc: dev@dpdk.org; Liron Himi <lironh@marvell.com>
> > Subject: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture
> > based on armv8-a
> >
> > From: Liron Himi <lironh@marvell.com>
> >
> > This patch introduces armada target to address difference in number of
> > cores, no numa support
> >
> > Change-Id: Ieaabe77b165000fe1280f98105329a0e63833b92
> > Signed-off-by: Liron Himi <lironh@marvell.com>
> > Reviewed-by: Alan Winkowski
> > Tested-by: Liron Himi
> > ---
> 
> My local compilation on MacchiatoBin failed with the target.
> I have musdk-armada-18.09 checked out from
> https://github.com/MarvellEmbeddedProcessors/musdk-marvell.git
> LIBMUSDK_PATH was set before compiling.
> Hit errors as below:
> 	== Build drivers/net/mvneta
> 	  CC mvneta_ethdev.o
> 	In file included from
> /home/arm/dpdk/drivers/net/mvneta/mvneta_rxtx.h:10:0,
> 					 from
> /home/arm/dpdk/drivers/net/mvneta/mvneta_ethdev.c:25:
> 	/home/arm/dpdk/drivers/net/mvneta/mvneta_ethdev.h:24:29:
> fatal error: drivers/mv_neta.h: No such file or directory
> 	compilation terminated.
> 	/home/arm/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for
> target 'mvneta_ethdev.o' failed
> 
> I tried to copy  the files from musdk to LIBMUSDK_PATH, but still cannot
> finish compiling.
> 	  CC test_ipsec.o
> 	  LD test
> 	/home/arm/dpdk/arm64-armada-linuxapp-
> gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function
> `mvneta_stats_get':
> 	mvneta_ethdev.c:(.text+0x1c4): undefined reference to
> `neta_ppio_get_statistics'
> 	/home/arm/dpdk/arm64-armada-linuxapp-
> gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function
> `mvneta_mtu_set':
> 	mvneta_ethdev.c:(.text+0x368): undefined reference to
> `neta_ppio_set_mru'
> 	mvneta_ethdev.c:(.text+0x37c): undefined reference to
> `neta_ppio_set_mtu'
> 	/home/arm/dpdk/arm64-armada-linuxapp-
> gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function
> `mvneta_promiscuous_disable':
> 	mvneta_ethdev.c:(.text+0x4e4): undefined reference to
> `neta_ppio_get_promisc'
> 	mvneta_ethdev.c:(.text+0x4f8): undefined reference to
> `neta_ppio_set_promisc'
> 	......
> 
> My musdk repo is updated. Is anything else needed?
> 
> Regards,
> /Ruifeng
  
Ferruh Yigit May 24, 2019, 1:06 p.m. UTC | #6
On 5/24/2019 2:10 AM, Ruifeng Wang (Arm Technology China) wrote:
> Hi,
> 
>> -----Original Message-----
>> From: Liron Himi <lironh@marvell.com>
>> Sent: Thursday, May 23, 2019 18:51
>> To: Ruifeng Wang (Arm Technology China) <Ruifeng.Wang@arm.com>;
>> thomas@monjalon.net
>> Cc: dev@dpdk.org; nd <nd@arm.com>; Liron Himi <lironh@marvell.com>
>> Subject: RE: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture
>> based on armv8-a
>>
>> Hi,
>>
>> This patch can only work with MUSDK newer than 18.09.
>> Do you have access to a newer version?
> 
> Will newer MUSDK version available on github?
> I have no access to Marvell Extranet.

+1, in github [1] latest branch I can see is 18.09

[1]: https://github.com/MarvellEmbeddedProcessors/musdk-marvell.git

> 
>>
>> Regards,
>> Liron
>>
>> -----Original Message-----
>> From: Ruifeng Wang (Arm Technology China) <Ruifeng.Wang@arm.com>
>> Sent: Thursday, May 23, 2019 13:11
>> To: Liron Himi <lironh@marvell.com>; thomas@monjalon.net
>> Cc: dev@dpdk.org; nd <nd@arm.com>
>> Subject: [EXT] RE: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA
>> architecture based on armv8-a
>>
>> External Email
>>
>> ----------------------------------------------------------------------
>> Hi Liron,
>>
>>> -----Original Message-----
>>> From: dev <dev-bounces@dpdk.org> On Behalf Of lironh@marvell.com
>>> Sent: Saturday, May 18, 2019 05:27
>>> To: thomas@monjalon.net
>>> Cc: dev@dpdk.org; Liron Himi <lironh@marvell.com>
>>> Subject: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture
>>> based on armv8-a
>>>
>>> From: Liron Himi <lironh@marvell.com>
>>>
>>> This patch introduces armada target to address difference in number of
>>> cores, no numa support
>>>
>>> Change-Id: Ieaabe77b165000fe1280f98105329a0e63833b92
>>> Signed-off-by: Liron Himi <lironh@marvell.com>
>>> Reviewed-by: Alan Winkowski
>>> Tested-by: Liron Himi
>>> ---
>>
>> My local compilation on MacchiatoBin failed with the target.
>> I have musdk-armada-18.09 checked out from
>> https://github.com/MarvellEmbeddedProcessors/musdk-marvell.git
>> LIBMUSDK_PATH was set before compiling.
>> Hit errors as below:
>> 	== Build drivers/net/mvneta
>> 	  CC mvneta_ethdev.o
>> 	In file included from
>> /home/arm/dpdk/drivers/net/mvneta/mvneta_rxtx.h:10:0,
>> 					 from
>> /home/arm/dpdk/drivers/net/mvneta/mvneta_ethdev.c:25:
>> 	/home/arm/dpdk/drivers/net/mvneta/mvneta_ethdev.h:24:29:
>> fatal error: drivers/mv_neta.h: No such file or directory
>> 	compilation terminated.
>> 	/home/arm/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for
>> target 'mvneta_ethdev.o' failed
>>
>> I tried to copy  the files from musdk to LIBMUSDK_PATH, but still cannot
>> finish compiling.
>> 	  CC test_ipsec.o
>> 	  LD test
>> 	/home/arm/dpdk/arm64-armada-linuxapp-
>> gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function
>> `mvneta_stats_get':
>> 	mvneta_ethdev.c:(.text+0x1c4): undefined reference to
>> `neta_ppio_get_statistics'
>> 	/home/arm/dpdk/arm64-armada-linuxapp-
>> gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function
>> `mvneta_mtu_set':
>> 	mvneta_ethdev.c:(.text+0x368): undefined reference to
>> `neta_ppio_set_mru'
>> 	mvneta_ethdev.c:(.text+0x37c): undefined reference to
>> `neta_ppio_set_mtu'
>> 	/home/arm/dpdk/arm64-armada-linuxapp-
>> gcc/lib/librte_pmd_mvneta.a(mvneta_ethdev.o): In function
>> `mvneta_promiscuous_disable':
>> 	mvneta_ethdev.c:(.text+0x4e4): undefined reference to
>> `neta_ppio_get_promisc'
>> 	mvneta_ethdev.c:(.text+0x4f8): undefined reference to
>> `neta_ppio_set_promisc'
>> 	......
>>
>> My musdk repo is updated. Is anything else needed?
>>
>> Regards,
>> /Ruifeng
  
Ruifeng Wang May 27, 2019, 1:42 a.m. UTC | #7
> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@intel.com>
> Sent: Friday, May 24, 2019 21:07
> To: Ruifeng Wang (Arm Technology China) <Ruifeng.Wang@arm.com>; Liron
> Himi <lironh@marvell.com>; thomas@monjalon.net
> Cc: dev@dpdk.org; nd <nd@arm.com>; Gavin Hu (Arm Technology China)
> <Gavin.Hu@arm.com>
> Subject: Re: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA architecture
> based on armv8-a
> 
> On 5/24/2019 2:10 AM, Ruifeng Wang (Arm Technology China) wrote:
> > Hi,
> >
> >> -----Original Message-----
> >> From: Liron Himi <lironh@marvell.com>
> >> Sent: Thursday, May 23, 2019 18:51
> >> To: Ruifeng Wang (Arm Technology China) <Ruifeng.Wang@arm.com>;
> >> thomas@monjalon.net
> >> Cc: dev@dpdk.org; nd <nd@arm.com>; Liron Himi <lironh@marvell.com>
> >> Subject: RE: [dpdk-dev] [PATCH 1/2] mk: add Marvell ARMADA
> >> architecture based on armv8-a
> >>
> >> Hi,
> >>
> >> This patch can only work with MUSDK newer than 18.09.
> >> Do you have access to a newer version?
> >
> > Will newer MUSDK version available on github?
> > I have no access to Marvell Extranet.
> 
> +1, in github [1] latest branch I can see is 18.09
> 
> [1]: https://github.com/MarvellEmbeddedProcessors/musdk-marvell.git
> 

With guide from Liron, I can build ARMADA target with MUSDK version 18.09 (after properly configured).

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

Patch

diff --git a/config/defconfig_arm64-armada-linux-gcc b/config/defconfig_arm64-armada-linux-gcc
new file mode 100644
index 0000000..573b278
--- /dev/null
+++ b/config/defconfig_arm64-armada-linux-gcc
@@ -0,0 +1,24 @@ 
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Marvell International Ltd
+#
+
+#include "defconfig_arm64-armv8a-linux-gcc"
+
+CONFIG_RTE_LIBRTE_MVEP_COMMON=y
+CONFIG_RTE_LIBRTE_MVPP2_PMD=y
+CONFIG_RTE_LIBRTE_MVNETA_PMD=y
+CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO=y
+
+#
+# Compile Environment Abstraction Layer
+#
+CONFIG_RTE_MAX_LCORE=16
+CONFIG_RTE_MAX_NUMA_NODES=1
+CONFIG_RTE_CACHE_LINE_SIZE=64
+
+# Disable NXP as it is conflict with MUSDK
+CONFIG_RTE_LIBRTE_DPAA_BUS=n
+
+# Doesn't support NUMA
+CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
+CONFIG_RTE_LIBRTE_VHOST_NUMA=n
diff --git a/config/defconfig_arm64-armada-linuxapp-gcc b/config/defconfig_arm64-armada-linuxapp-gcc
new file mode 100644
index 0000000..573b278
--- /dev/null
+++ b/config/defconfig_arm64-armada-linuxapp-gcc
@@ -0,0 +1,24 @@ 
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Marvell International Ltd
+#
+
+#include "defconfig_arm64-armv8a-linux-gcc"
+
+CONFIG_RTE_LIBRTE_MVEP_COMMON=y
+CONFIG_RTE_LIBRTE_MVPP2_PMD=y
+CONFIG_RTE_LIBRTE_MVNETA_PMD=y
+CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO=y
+
+#
+# Compile Environment Abstraction Layer
+#
+CONFIG_RTE_MAX_LCORE=16
+CONFIG_RTE_MAX_NUMA_NODES=1
+CONFIG_RTE_CACHE_LINE_SIZE=64
+
+# Disable NXP as it is conflict with MUSDK
+CONFIG_RTE_LIBRTE_DPAA_BUS=n
+
+# Doesn't support NUMA
+CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
+CONFIG_RTE_LIBRTE_VHOST_NUMA=n