[dpdk-dev] [PATCH v1] config: enable c11 memory model for ARMv8 meson

2018-12-10 Thread Gavin Hu
This patch makes the configuration based on makefile and the configuration based on meson to be the same. Fixes: c6e536e38437 ("build: add more implementers IDs and PNs for ARM") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa N

[dpdk-dev] [PATCH v1 0/2] add rte_ring_reset and use it to flush a ring

2018-12-11 Thread Gavin Hu
To flush a ring not in use, dequeue one by one is wasting cpu cycles. The patch is to just resetting the head and tail indices to save cpu cycle. Gavin Hu (2): ring: add rte_ring_reset api to flush the ring hash: flush the rings instead of dequeuing one by one lib/librte_hash/Makefile

[dpdk-dev] [PATCH v1 1/2] ring: add rte_ring_reset api to flush the ring

2018-12-11 Thread Gavin Hu
Currently, the flush is done by dequeuing the ring in a while loop. It is much simpler to flush the queue by resetting the head and tail indices. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_ring/rte_ring.h | 20

[dpdk-dev] [PATCH v1 2/2] hash: flush the rings instead of dequeuing one by one

2018-12-11 Thread Gavin Hu
add extendable bucket feature") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli --- lib/librte_hash/Makefile | 2 +- lib/librte_hash/rte_cuckoo_hash.c | 11 --- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/librte

[dpdk-dev] [PATCH v2 2/2] hash: flush the rings instead of dequeuing one by one

2018-12-11 Thread Gavin Hu
add extendable bucket feature") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli --- lib/librte_hash/Makefile | 2 +- lib/librte_hash/rte_cuckoo_hash.c | 11 --- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/librte

[dpdk-dev] [PATCH v2 0/2] add rte ring reset api and use it to flush a ring by hash

2018-12-11 Thread Gavin Hu
V2: fix the coding style issue(commit message line too long) V1: To flush a ring not in use, dequeue one by one is wasting cpu cycles. The patch is to just resetting the head and tail indices to save cpu cycle. Gavin Hu (2): ring: add reset api to flush the ring when not in use hash: flush

[dpdk-dev] [PATCH v2 1/2] ring: add reset api to flush the ring when not in use

2018-12-11 Thread Gavin Hu
Currently, the flush is done by dequeuing the ring in a while loop. It is much simpler to flush the queue by resetting the head and tail indices. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_ring/rte_ring.h | 20

[dpdk-dev] [PATCH v3 1/2] ring: add reset api to flush the ring when not in use

2018-12-12 Thread Gavin Hu
Currently, the flush is done by dequeuing the ring in a while loop. It is much simpler to flush the queue by resetting the head and tail indices. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_ring/rte_ring.h | 20

[dpdk-dev] [PATCH v3 0/2] add rte ring reset api and use it to flush a ring by hash

2018-12-12 Thread Gavin Hu
V3: Allow experimental API for meson build V2: Fix the coding style issue(commit message line too long) V1: To flush a ring not in use, dequeue one by one is wasting cpu cycles. The patch is to just resetting the head and tail indices to save cpu cycle. Gavin Hu (2): ring: add reset api to

[dpdk-dev] [PATCH v3 2/2] hash: flush the rings instead of dequeuing one by one

2018-12-12 Thread Gavin Hu
add extendable bucket feature") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli --- lib/librte_hash/Makefile | 2 +- lib/librte_hash/meson.build | 3 +++ lib/librte_hash/rte_cuckoo_hash.c | 11 --- 3 files changed, 8 insertions(+),

[dpdk-dev] [PATCH v1 0/5] spinlock optimization and test case enhancements

2018-12-20 Thread Gavin Hu
. Move the arm specific implementation to arm folder to remove the hardcoded implementation. 5. Use atomic primitives, which translate to one-way barriers, instead of two-way sync primitives, to optimize for performance. Gavin Hu (5): test/spinlock: remove 1us delay to create contention

[dpdk-dev] [PATCH v1 1/5] test/spinlock: remove 1us delay for correct spinlock benchmarking

2018-12-20 Thread Gavin Hu
is too much, compromising the goal of benchmarking the lock and unlock performance. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Joyce Kong Reviewed-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ola Liljedahl --- test/test/test_spinlock.c | 2 -- 1 file

[dpdk-dev] [PATCH v1 3/5] test/spinlock: amortize the cost of getting time

2018-12-20 Thread Gavin Hu
Instead of getting timestamps per iteration, amortize its overhead can help getting more precise benchmarking results. Signed-off-by: Gavin Hu Reviewed-by: Joyce Kong --- test/test/test_spinlock.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git

[dpdk-dev] [PATCH v1 2/5] test/spinlock: get timestamp more precisely

2018-12-20 Thread Gavin Hu
To precisely benchmark the spinlock performance, uses the precise version of getting timestamps, which enforces the timestamps are obtained at the expected places. Signed-off-by: Gavin Hu Reviewed-by: Phil Yang --- test/test/test_spinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[dpdk-dev] [PATCH v1 4/5] spinlock: move the implementation to arm specific file

2018-12-20 Thread Gavin Hu
remove the hard code #ifdef RTE_FORCE_INTRINSICS, move the implementation to the arm specific file, x86 and POWER have their own implementations. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Phil Yang Reviewed-by: Honnappa Nagarahalli --- .../common/include/arch/arm

[dpdk-dev] [PATCH v1 5/5] spinlock: reimplement with atomic one-way barrier builtins

2018-12-20 Thread Gavin Hu
h *** Core [123] Cost Time = 163615 us Core [124] Cost Time = 166471 us Core [125] Cost Time = 189044 us Core [126] Cost Time = 195745 us Core [127] Cost Time = 78423 us Total Cost Time = 27339656 us Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by:

[dpdk-dev] [PATCH v1] test/ring: ring perf test case enhancement

2018-12-20 Thread Gavin Hu
. Suggested-by: Gavin Hu Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar Reviewed-by: Ola Liljedahl Reviewed-by: Gavin Hu --- test/test/test_ring_perf.c | 82 -- 1 file changed, 80

[dpdk-dev] [PATCH v1] devtools: fix wrong headline lowercase for arm

2018-12-20 Thread Gavin Hu
Change to the new wording according to Arm corp: https://mails.dpdk.org/archives/dev/2018-October/115174.html otherwise, "Wrong headline lowercase" may be falsely reported. Fixes: f146ada21d1e ("scripts: add more git log checks") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu

[dpdk-dev] [PATCH v2] devtools: fix wrong headline lowercase for arm

2018-12-20 Thread Gavin Hu
Change to the new wording according to Arm corp: https://mails.dpdk.org/archives/dev/2018-October/115174.html otherwise, "Wrong headline lowercase" may be falsely reported. Fixes: f146ada21d1e ("scripts: add more git log checks") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu

[dpdk-dev] [PATCH v2 0/5] spinlock optimization and test case enhancements

2018-12-20 Thread Gavin Hu
coded implementation. 5. Use atomic primitives, which translate to one-way barriers, instead of two-way sync primitives, to optimize for performance. Gavin Hu (5): test/spinlock: remove 1us delay for correct benchmarking test/spinlock: get timestamp more precisely test/spinlock: amortize the co

[dpdk-dev] [PATCH v2 1/5] test/spinlock: remove 1us delay for correct benchmarking

2018-12-20 Thread Gavin Hu
is too much, compromising the goal of benchmarking the lock and unlock performance. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Joyce Kong Reviewed-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ola Liljedahl --- test/test/test_spinlock.c | 2 -- 1 file

[dpdk-dev] [PATCH v2 2/5] test/spinlock: get timestamp more precisely

2018-12-20 Thread Gavin Hu
To precisely benchmark the spinlock performance, uses the precise version of getting timestamps, which enforces the timestamps are obtained at the expected places. Signed-off-by: Gavin Hu Reviewed-by: Phil Yang --- test/test/test_spinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[dpdk-dev] [PATCH v2 5/5] eal: fix clang compilation error on x86

2018-12-20 Thread Gavin Hu
__atomic_exchange_n instead of __atomic_exchange_(2/4/8). For more information, please refer to: http://mails.dpdk.org/archives/dev/2018-April/096776.html Fixes: 7bdccb93078e ("eal: fix ARM build with clang") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu --- lib/librte_eal/common/include/generic

[dpdk-dev] [PATCH v2 3/5] test/spinlock: amortize the cost of getting time

2018-12-20 Thread Gavin Hu
Instead of getting timestamps per iteration, amortize its overhead can help getting more precise benchmarking results. Signed-off-by: Gavin Hu Reviewed-by: Joyce Kong --- test/test/test_spinlock.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git

[dpdk-dev] [PATCH v2 4/5] spinlock: reimplement with atomic one-way barrier builtins

2018-12-20 Thread Gavin Hu
h *** Core [123] Cost Time = 163615 us Core [124] Cost Time = 166471 us Core [125] Cost Time = 189044 us Core [126] Cost Time = 195745 us Core [127] Cost Time = 78423 us Total Cost Time = 27339656 us Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by:

[dpdk-dev] [PATCH v3] devtools: fix wrong headline lowercase for arm

2018-12-20 Thread Gavin Hu
Change to the new wording according to Arm corp: https://mails.dpdk.org/archives/dev/2018-October/115174.html otherwise, "Wrong headline lowercase" may be falsely reported. Fixes: f146ada21d1e ("scripts: add more git log checks") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu

[dpdk-dev] [PATCH v3 1/6] eal: fix clang compilation error on x86

2018-12-26 Thread Gavin Hu
__atomic_exchange_n instead of __atomic_exchange_(2/4/8). For more information, please refer to: http://mails.dpdk.org/archives/dev/2018-April/096776.html Fixes: 7bdccb93078e ("eal: fix ARM build with clang") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu --- lib/librte_eal/common/include/generic

[dpdk-dev] [PATCH v3 0/6] spinlock optimization and test case enhancements

2018-12-26 Thread Gavin Hu
e the overhead of getting the timestamp by 1 loops. 4. Move the arm specific implementation to arm folder to remove the hardcoded implementation. 5. Use atomic primitives, which translate to one-way barriers, instead of two-way sync primitives, to optimize for performance. Gavin Hu (5):

[dpdk-dev] [PATCH v3 3/6] test/spinlock: get timestamp more precisely

2018-12-26 Thread Gavin Hu
To precisely benchmark the spinlock performance, uses the precise version of getting timestamps, which enforces the timestamps are obtained at the expected places. Signed-off-by: Gavin Hu Reviewed-by: Phil Yang --- test/test/test_spinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[dpdk-dev] [PATCH v3 2/6] test/spinlock: remove 1us delay for correct benchmarking

2018-12-26 Thread Gavin Hu
is too much, compromising the goal of benchmarking the lock and unlock performance. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Joyce Kong Reviewed-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ola Liljedahl --- test/test/test_spinlock.c | 2 -- 1 file

[dpdk-dev] [PATCH v3 5/6] spinlock: reimplement with atomic one-way barrier builtins

2018-12-26 Thread Gavin Hu
h *** Core [123] Cost Time = 163615 us Core [124] Cost Time = 166471 us Core [125] Cost Time = 189044 us Core [126] Cost Time = 195745 us Core [127] Cost Time = 78423 us Total Cost Time = 27339656 us Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Reviewed-by:

[dpdk-dev] [PATCH v3 4/6] test/spinlock: amortize the cost of getting time

2018-12-26 Thread Gavin Hu
Instead of getting timestamps per iteration, amortize its overhead can help getting more precise benchmarking results. Signed-off-by: Gavin Hu Reviewed-by: Joyce Kong --- test/test/test_spinlock.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git

[dpdk-dev] [PATCH v3 6/6] spinlock: ticket based to improve fairness

2018-12-26 Thread Gavin Hu
From: Joyce Kong The old implementation is unfair, some threads may take locks aggressively while leaving the other threads starving for long time. As shown in the following test, within same period of time, there are threads taking locks much more times than the others. The new implementation g

[dpdk-dev] [PATCH v4 1/3] test/ring: ring perf test case enhancement

2019-01-01 Thread Gavin Hu
. Suggested-by: Gavin Hu Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar Reviewed-by: Ola Liljedahl Reviewed-by: Gavin Hu --- test/test/test_ring_perf.c | 82 -- 1 file changed, 79

[dpdk-dev] [PATCH v4 2/3] ring: add reset api to flush the ring when not in use

2019-01-01 Thread Gavin Hu
Currently, the flush is done by dequeuing the ring in a while loop. It is much simpler to flush the queue by resetting the head and tail indices. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_ring/rte_ring.h | 20

[dpdk-dev] [PATCH v4 3/3] hash: flush the rings instead of dequeuing one by one

2019-01-01 Thread Gavin Hu
add extendable bucket feature") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli --- lib/librte_hash/Makefile | 2 +- lib/librte_hash/meson.build | 3 +++ lib/librte_hash/rte_cuckoo_hash.c | 11 --- 3 files changed, 8 insertions(+),

[dpdk-dev] [PATCH v4 0/3] add rte ring reset api and use it to flush a ring by hash

2019-01-01 Thread Gavin Hu
indices to save cpu cycle. Gavin Hu (2): ring: add reset api to flush the ring when not in use hash: flush the rings instead of dequeuing one by one Joyce Kong (1): test/ring: ring perf test case enhancement lib/librte_hash/Makefile | 2 +- lib/librte_hash/meson.build

[dpdk-dev] [PATCH v5 2/3] ring: add reset API to flush the ring when not in use

2019-01-02 Thread gavin hu
From: Gavin Hu Currently, the flush is done by dequeuing the ring in a while loop. It is much simpler to flush the queue by resetting the head and tail indices. Signed-off-by: gavin hu Reviewed-by: ruifeng wang Reviewed-by: honnappa nagarahalli --- lib/librte_ring/rte_ring.h | 20

[dpdk-dev] [PATCH v5 3/3] hash: flush the rings instead of dequeuing one by one

2019-01-02 Thread gavin hu
From: Gavin Hu Within rte_hash_reset, calling a while loop to dequeue one by one from the ring, while not using them at all, is wasting cycles, The patch just flush the ring by resetting the indices can save cpu cycles. Fixes: b26473ff8f4a ("hash: add reset function") Fixes: 75706568a

[dpdk-dev] [PATCH v5 0/3] ring test enhancement and new ring reset api and use it by hash

2019-01-02 Thread gavin hu
experimental API for meson build V2: Fix the coding style issue(commit message line too long) V1: To flush a ring not in use, dequeue one by one is wasting cpu cycles. The patch is to just resetting the head and tail indices to save cpu cycle. Gavin Hu (2): ring: add reset API to flush the ring

[dpdk-dev] [PATCH v5 1/3] test/ring: ring perf test case enhancement

2019-01-02 Thread gavin hu
From: Joyce Kong Run ring perf test on all available cores to really verify MPMC operations. The old way of running on a pair of cores is not enough for MPMC rings. Suggested-by: gavin hu Signed-off-by: joyce kong Reviewed-by: ruifeng wang Reviewed-by: honnappa nagarahalli Reviewed-by

[dpdk-dev] [PATCH v6 0/3] ring test enhancement and new ring reset api and use it by hash

2019-01-09 Thread gavin hu
save cpu cycle. Gavin Hu (2): ring: add reset API to flush the ring when not in use hash: flush the rings instead of dequeuing one by one Joyce Kong (1): test/ring: ring perf test case enhancement lib/librte_hash/Makefile | 2 +- lib/librte_hash/meson.build | 3

[dpdk-dev] [PATCH v6 3/3] hash: flush the rings instead of dequeuing one by one

2019-01-09 Thread gavin hu
From: Gavin Hu Within rte_hash_reset, calling a while loop to dequeue one by one from the ring, while not using them at all, is wasting cycles, The patch just flush the ring by resetting the indices can save cpu cycles. Fixes: b26473ff8f4a ("hash: add reset function") Fixes: 75706568a

[dpdk-dev] [PATCH v6 1/3] test/ring: ring perf test case enhancement

2019-01-09 Thread gavin hu
From: Joyce Kong Run ring perf test on all available cores to really verify MPMC operations. The old way of running on a pair of cores is not enough for MPMC rings. Suggested-by: Gavin Hu Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli Reviewed-by

[dpdk-dev] [PATCH v6 2/3] ring: add reset API to flush the ring when not in use

2019-01-09 Thread gavin hu
From: Gavin Hu Currently, the flush is done by dequeuing the ring in a while loop. It is much simpler to flush the queue by resetting the head and tail indices. Signed-off-by: Gavin Hu Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_ring/rte_ring.h | 20

[dpdk-dev] [PATCH 2/2] ring: move the atomic load of head above the loop

2018-10-16 Thread Gavin Hu
: 8): 5.64 MP/MC bulk enq/dequeue (size: 8): 9.58 SP/SC bulk enq/dequeue (size: 32): 1.98 MP/MC bulk enq/dequeue (size: 32): 2.30 Fixes: 39368ebfc6 ("ring: introduce C11 memory model barrier option") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli R

[dpdk-dev] [PATCH 1/2] ring: synchronize the load and store of the tail

2018-10-16 Thread Gavin Hu
/dequeue (size: 8): 6.67 MP/MC bulk enq/dequeue (size: 8): 13.12 SP/SC bulk enq/dequeue (size: 32): 2.04 MP/MC bulk enq/dequeue (size: 32): 3.26 Fixes: 39368ebfc6 ("ring: introduce C11 memory model barrier option") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Honnappa N

Re: [dpdk-dev] [PATCH v5 2/2] doc: add a guide doc for cross compiling from x86

2018-06-12 Thread Gavin Hu
. I have a patch to remove the specific options from the project arguments and add it individually to C_FLAGS. It basically work, but it changed a lot of meson.build files. Any comments are welcome. Best Regards, Gavin > -Original Message- > From: Gavin Hu > Sent: Tuesday, June

[dpdk-dev] [PATCH v6 0/7] *** fix the cross compile errors ***

2018-06-14 Thread Gavin Hu
Pre-V5 version of this patch set(two patches) was aimed to fix the Makefile based cross compiling issue and add a guiding doc. This V6 patch set included the fixes for meson cross compiling. Gavin Hu (5): devtools: fix the Exec format error build: fix the meson build warning devtools: fix

[dpdk-dev] [PATCH v6 2/7] doc: add a guide doc for cross compiling from x86

2018-06-14 Thread Gavin Hu
From: gavin hu This is the guide for cross compiling ARM64 DPDK from X86 hosts. Signed-off-by: Gavin Hu Reviewed-by: Steve Capper Reviewed-by: Honnappa Nagarahalli Acked-by: Marko Kovacevic --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 137 + doc/guides

[dpdk-dev] [PATCH v6 3/7] devtools: fix the Exec format error

2018-06-14 Thread Gavin Hu
check compiler command line: aarch64-linux-gnu-gcc dpdk/build-arm64-armv8/meson-private/sanitycheckc.c -o dpdk/build-arm64-armv8/meson-private/sanitycheckc.exe Fixes: a55277a788 ("devtools: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by:

[dpdk-dev] [PATCH v6 1/7] mk: fix cross build errors

2018-06-14 Thread Gavin Hu
From: gavin hu The "-Wimplicit-fallthrough=2" option was introduced into gcc 7.0, it was enabled when the cross compiler gcc is greater than 7.0, but for the host side buildtools/pmdinfogen, if the native gcc is older than 7.0, or the host cc compiler is clang, it should not be enabled

[dpdk-dev] [PATCH v6 4/7] build: fix the meson build warning

2018-06-14 Thread Gavin Hu
ned-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- config/arm/arm64_thunderx_linuxapp_gcc | 1 + 1 file changed, 1 insertion(+) diff --git a/config/arm/arm64_thunderx_linuxapp_gcc b/config/arm/arm64_thunderx_linuxapp_gcc index 7ff34af74..967d9d46d 100644 --- a/

[dpdk-dev] [PATCH v6 7/7] devtools: expand meson cross compiling coverage

2018-06-14 Thread Gavin Hu
.@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 4afac76dd..74fe5abc8 100755 --- a/dev

[dpdk-dev] [PATCH v6 6/7] build: fix the meson cross compile error

2018-06-14 Thread Gavin Hu
unknown-warning-option] Fixes: a55277a788 ("devtools: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Reviewed-by: Steve Capper --- config/meson.build| 3 +-- drivers/meson.build | 3 +++ example

[dpdk-dev] [PATCH v6 5/7] devtools: fix the missing ninja command error on CentOS

2018-06-14 Thread Gavin Hu
rg Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 6bce3df7f..4afac76dd 100755 --- a/devtools/

[dpdk-dev] [PATCH v7 0/7] fix the cross compiling errors

2018-06-15 Thread Gavin Hu
script, test ninja or ninja-build and use it to work out the command to work out. c) use host gcc and clang for the general v8a only to avoid overkill, and use gcc for others. Gavin Hu (5): devtools: fix the Exec format error build: fix the meson build warning devtools: fix the

[dpdk-dev] [PATCH v7 3/7] devtools: fix the Exec format error

2018-06-15 Thread Gavin Hu
anity check compiler command line: aarch64-linux-gnu-gcc dpdk/build-arm64-armv8/meson-private/sanitycheckc.c -o dpdk/build-arm64-armv8/meson-private/sanitycheckc.exe Fixes: a55277a788 ("devtools: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Ph

[dpdk-dev] [PATCH v7 2/7] doc: add a guide doc for cross compiling from x86

2018-06-15 Thread Gavin Hu
From: gavin hu This is the guide for cross compiling ARM64 DPDK from X86 hosts. Signed-off-by: Gavin Hu Reviewed-by: Steve Capper Reviewed-by: Honnappa Nagarahalli Acked-by: Marko Kovacevic --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 137 + doc/guides

[dpdk-dev] [PATCH v7 1/7] mk: fix cross build errors

2018-06-15 Thread Gavin Hu
From: gavin hu The "-Wimplicit-fallthrough=2" option was introduced into gcc 7.0, it was enabled when the cross compiler gcc is greater than 7.0, but for the host side buildtools/pmdinfogen, if the native gcc is older than 7.0, or the host cc compiler is clang, it should not be enabled

[dpdk-dev] [PATCH v7 5/7] devtools: fix the missing ninja command error on CentOS

2018-06-15 Thread Gavin Hu
rg Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 6bce3df7f..15a282978 100755 --- a/devtools/

[dpdk-dev] [PATCH v7 4/7] build: fix the meson build warning

2018-06-15 Thread Gavin Hu
ned-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Acked-by: Bruce Richardson --- config/arm/arm64_thunderx_linuxapp_gcc | 1 + 1 file changed, 1 insertion(+) diff --git a/config/arm/arm64_thunderx_linuxapp_gcc b/config/arm/arm64_thunderx_linuxapp_gcc index 7ff34af74..967d9d

[dpdk-dev] [PATCH v7 7/7] devtools: expand meson cross compiling coverage

2018-06-15 Thread Gavin Hu
.@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 15a282978..879eda18e 10

[dpdk-dev] [PATCH v7 6/7] build: fix the meson cross compile error

2018-06-15 Thread Gavin Hu
unknown-warning-option] Fixes: a55277a788 ("devtools: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Reviewed-by: Steve Capper Acked-by: Bruce Richardson --- config/meson.build| 3 +-- drivers/meson.bu

[dpdk-dev] [PATCH v8 0/6] Fix the cross compiling errors

2018-06-15 Thread Gavin Hu
script, test ninja or ninja-build and use it to work out the command to work out. c) use host gcc and clang for the general v8a only to avoid overkill, and use gcc for others. 4. v8 drop one of the new patch as it a similar fix was already upstreamed Gavin Hu (4): build: fix the

[dpdk-dev] [PATCH v8 2/6] doc: add a guide doc for cross compiling from x86

2018-06-15 Thread Gavin Hu
From: gavin hu This is the guide for cross compiling ARM64 DPDK from X86 hosts. Signed-off-by: Gavin Hu Reviewed-by: Steve Capper Reviewed-by: Honnappa Nagarahalli Acked-by: Marko Kovacevic --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 137 + doc/guides

[dpdk-dev] [PATCH v8 6/6] devtools: expand meson cross compiling coverage

2018-06-15 Thread Gavin Hu
.@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 8447c704b..f75ebbdb1 100755 ---

[dpdk-dev] [PATCH v8 4/6] devtools: fix the missing ninja command error on CentOS

2018-06-15 Thread Gavin Hu
rg Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index f2ad05f32..8447c704b 100755 --- a/devtools/

[dpdk-dev] [PATCH v8 1/6] mk: fix cross build errors

2018-06-15 Thread Gavin Hu
From: gavin hu The "-Wimplicit-fallthrough=2" option was introduced into gcc 7.0, it was enabled when the cross compiler gcc is greater than 7.0, but for the host side buildtools/pmdinfogen, if the native gcc is older than 7.0, or the host cc compiler is clang, it should not be enabled

[dpdk-dev] [PATCH v8 5/6] build: fix the meson cross compile error

2018-06-15 Thread Gavin Hu
unknown-warning-option] Fixes: a55277a788 ("devtools: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Reviewed-by: Steve Capper Acked-by: Bruce Richardson --- config/meson.build| 3 +-- drivers/meson.bu

[dpdk-dev] [PATCH v8 3/6] build: fix the meson build warning

2018-06-15 Thread Gavin Hu
ned-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Acked-by: Bruce Richardson --- config/arm/arm64_thunderx_linuxapp_gcc | 1 + 1 file changed, 1 insertion(+) diff --git a/config/arm/arm64_thunderx_linuxapp_gcc b/config/arm/arm64_thunderx_linuxapp_gcc index 7ff34af74..967d9d

Re: [dpdk-dev] [PATCH v6 3/7] devtools: fix the Exec format error

2018-06-15 Thread Gavin Hu
Hi Bruce, This patch was dropped, thanks for your review. Best Regards, Gavin > -Original Message- > From: Bruce Richardson > Sent: Thursday, June 14, 2018 6:34 PM > To: Gavin Hu > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 3/7] devtools: f

Re: [dpdk-dev] [PATCH v6 5/7] devtools: fix the missing ninja command error on CentOS

2018-06-15 Thread Gavin Hu
> -Original Message- > From: Bruce Richardson > Sent: Thursday, June 14, 2018 6:41 PM > To: Gavin Hu > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 5/7] devtools: fix the missing ninja > command error on CentOS > > On Thu, Jun 1

Re: [dpdk-dev] [PATCH v6 7/7] devtools: expand meson cross compiling coverage

2018-06-15 Thread Gavin Hu
> -Original Message- > From: Bruce Richardson > Sent: Thursday, June 14, 2018 6:45 PM > To: Gavin Hu > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 7/7] devtools: expand meson cross > compiling coverage > > On Thu, Jun 14, 2018 at

[dpdk-dev] [PATCH v9 3/6] build: fix the meson build warning

2018-06-15 Thread Gavin Hu
ned-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Acked-by: Bruce Richardson --- config/arm/arm64_thunderx_linuxapp_gcc | 1 + 1 file changed, 1 insertion(+) diff --git a/config/arm/arm64_thunderx_linuxapp_gcc b/config/arm/arm64_thunderx_linuxapp_gcc index 7ff34af74..967d9d

[dpdk-dev] [PATCH v9 1/6] mk: fix makefile based cross build errors

2018-06-15 Thread Gavin Hu
From: gavin hu The "-Wimplicit-fallthrough=2" option was introduced into gcc 7.0, it was enabled when the cross compiler gcc is greater than 7.0, but for the host side buildtools/pmdinfogen, if the native gcc is older than 7.0, or the host cc compiler is clang, it should not be enabled

[dpdk-dev] [PATCH v9 2/6] doc: add a guide doc for cross compiling from x86

2018-06-15 Thread Gavin Hu
From: gavin hu This is the guide for cross compiling ARM64 DPDK from X86 hosts. Signed-off-by: Gavin Hu Reviewed-by: Steve Capper Reviewed-by: Honnappa Nagarahalli Acked-by: Marko Kovacevic --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 137 + doc/guides

[dpdk-dev] [PATCH v9 0/6] Fix the cross compiling errors

2018-06-15 Thread Gavin Hu
the comments, as well some commit message refined. a) move if clause out of the loop for a better program structure. b) echo the correct ninja command actually used. Gavin Hu (4): build: fix the meson build warning devtools: fix the missing ninja command error build: fix the meson

[dpdk-dev] [PATCH v9 4/6] devtools: fix the missing ninja command error

2018-06-15 Thread Gavin Hu
;) Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index f2ad05f32..9bb5b93bd 10

[dpdk-dev] [PATCH v9 6/6] devtools: expand meson cross compiling test coverage

2018-06-15 Thread Gavin Hu
.@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 9bb5b93bd..8c33ece93 10

[dpdk-dev] [PATCH v9 5/6] build: fix the meson cross compile error

2018-06-15 Thread Gavin Hu
unknown-warning-option] Fixes: a55277a788 ("devtools: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Reviewed-by: Steve Capper Acked-by: Bruce Richardson --- config/meson.build| 3 +-- drivers/meson.bu

Re: [dpdk-dev] [PATCH v8 6/6] devtools: expand meson cross compiling coverage

2018-06-15 Thread Gavin Hu
Hi Bruce, Thanks for your review, new v9 patch set was submitted. Any more comments are welcome! Best Regards, Gavin > -Original Message- > From: Bruce Richardson > Sent: Friday, June 15, 2018 4:28 PM > To: Gavin Hu > Cc: dev@dpdk.org; nd ; sta...@dpdk.org > Subj

[dpdk-dev] [PATCH v10 0/6] Fix the cross compiling errors

2018-06-15 Thread Gavin Hu
the comments, as well some commit message refined. a) move if clause out of the loop for a better program structure. b) echo the correct ninja command actually used. 6. Fix the whitespace issues. Gavin Hu (4): build: fix the meson build warning devtools: fix the missing ninja command

[dpdk-dev] [PATCH v10 2/6] doc: add a guide doc for cross compiling from x86

2018-06-15 Thread Gavin Hu
From: gavin hu This is the guide for cross compiling ARM64 DPDK from X86 hosts. Signed-off-by: Gavin Hu Reviewed-by: Steve Capper Reviewed-by: Honnappa Nagarahalli Acked-by: Marko Kovacevic --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 137 + doc/guides

[dpdk-dev] [PATCH v10 4/6] devtools: fix the missing ninja command error

2018-06-15 Thread Gavin Hu
;) Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index f2ad05f32..9bb5b93bd 10

[dpdk-dev] [PATCH v10 1/6] mk: fix makefile based cross build errors

2018-06-15 Thread Gavin Hu
From: gavin hu The "-Wimplicit-fallthrough=2" option was introduced into gcc 7.0, it was enabled when the cross compiler gcc is greater than 7.0, but for the host side buildtools/pmdinfogen, if the native gcc is older than 7.0, or the host cc compiler is clang, it should not be enabled

[dpdk-dev] [PATCH v10 3/6] build: fix the meson build warning

2018-06-15 Thread Gavin Hu
ned-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Acked-by: Bruce Richardson --- config/arm/arm64_thunderx_linuxapp_gcc | 1 + 1 file changed, 1 insertion(+) diff --git a/config/arm/arm64_thunderx_linuxapp_gcc b/config/arm/arm64_thunderx_linuxapp_gcc index 7ff34af74..967d9d

[dpdk-dev] [PATCH v10 5/6] build: fix the meson cross compile error

2018-06-15 Thread Gavin Hu
unknown-warning-option] Fixes: a55277a788 ("devtools: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Reviewed-by: Steve Capper Acked-by: Bruce Richardson --- config/meson.build| 3 +-- drivers/meson.bu

[dpdk-dev] [PATCH v10 6/6] devtools: expand meson cross compiling test coverage

2018-06-15 Thread Gavin Hu
.@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 9bb5b93bd..f1553b7bd 10

Re: [dpdk-dev] [PATCH v6 7/7] devtools: expand meson cross compiling coverage

2018-06-15 Thread Gavin Hu
Thanks Bruce, I submitted v10 patch set fixing the whitespace issues. > -Original Message- > From: Bruce Richardson > Sent: Thursday, June 14, 2018 6:45 PM > To: Gavin Hu > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 7/7] devtools:

[dpdk-dev] [PATCH v11 0/6] Fix the cross compiling errors

2018-06-18 Thread Gavin Hu
shorter and more readable. Gavin Hu (4): build: fix the meson build warning devtools: fix the missing ninja command error build: fix the meson cross compile error devtools: expand meson cross compiling test coverage gavin hu (2): mk: fix makefile based cross build errors doc: add a guide

[dpdk-dev] [PATCH v11 1/6] mk: fix makefile based cross build errors

2018-06-18 Thread Gavin Hu
From: gavin hu The "-Wimplicit-fallthrough=2" option was introduced into gcc 7.0, it was enabled when the cross compiler gcc is greater than 7.0, but for the host side buildtools/pmdinfogen, if the native gcc is older than 7.0, or the host cc compiler is clang, it should not be enabled

[dpdk-dev] [PATCH v11 2/6] doc: add a guide doc for cross compiling from x86

2018-06-18 Thread Gavin Hu
From: gavin hu This is the guide for cross compiling ARM64 DPDK from X86 hosts. Signed-off-by: Gavin Hu Reviewed-by: Steve Capper Reviewed-by: Honnappa Nagarahalli Acked-by: Marko Kovacevic --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 137 + doc/guides

[dpdk-dev] [PATCH v11 6/6] devtools: expand meson cross compiling test coverage

2018-06-18 Thread Gavin Hu
: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson

[dpdk-dev] [PATCH v11 4/6] devtools: fix the missing ninja command error

2018-06-18 Thread Gavin Hu
;) Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu --- devtools/test-meson-builds.sh | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index f2ad05f32..9bb5b93bd 10

[dpdk-dev] [PATCH v11 3/6] build: fix the meson build warning

2018-06-18 Thread Gavin Hu
ned-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Acked-by: Bruce Richardson --- config/arm/arm64_thunderx_linuxapp_gcc | 1 + 1 file changed, 1 insertion(+) diff --git a/config/arm/arm64_thunderx_linuxapp_gcc b/config/arm/arm64_thunderx_linuxapp_gcc index 7ff34af74..967d9d

[dpdk-dev] [PATCH v11 5/6] build: fix the meson cross compile error

2018-06-18 Thread Gavin Hu
unknown-warning-option] Fixes: a55277a788 ("devtools: add test script for meson builds") Cc: sta...@dpdk.org Signed-off-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Song Zhu Reviewed-by: Steve Capper Acked-by: Bruce Richardson --- config/meson.build| 3 +-- drivers/meson.bu

Re: [dpdk-dev] [PATCH v10 6/6] devtools: expand meson cross compiling test coverage

2018-06-18 Thread Gavin Hu
Hi Bruce, I submitted v11, please have a look, thanks for your review. Best Regards, Gavin > -Original Message- > From: Bruce Richardson > Sent: Friday, June 15, 2018 10:15 PM > To: Gavin Hu > Cc: dev@dpdk.org; nd ; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH

[dpdk-dev] [PATCH v12 0/6] Fix the cross compiling errors

2018-06-19 Thread Gavin Hu
dir for brevity Gavin Hu (4): build: fix the meson build warning devtools: fix the missing ninja command error build: fix the meson cross compile error devtools: expand meson cross compiling test coverage gavin hu (2): mk: fix makefile based cross build errors doc: add a guide doc for

[dpdk-dev] [PATCH v12 2/6] doc: add a guide doc for cross compiling from x86

2018-06-19 Thread Gavin Hu
From: gavin hu This is the guide for cross compiling ARM64 DPDK from X86 hosts. Signed-off-by: Gavin Hu Reviewed-by: Steve Capper Reviewed-by: Honnappa Nagarahalli Acked-by: Marko Kovacevic --- .../linux_gsg/cross_build_dpdk_for_arm64.rst | 137 + doc/guides

  1   2   3   4   5   6   7   >