[dpdk-dev] DPDK issue with XL710/X710

2019-06-22 Thread Inder
Hi Team, We are facing an issue with running DPDK on NIC XL710/X710 with SRIOV based configuration. while configuring 4 cores in system we get an issue that DPDK get stuck while polling the packets from rings. here is the stack below #0 0x7f614242acae in common_ring_mc_dequeue (mp=0x7f565d6

Re: [dpdk-dev] [PATCH v3 25/27] mempool/octeontx2: add optimized dequeue operation for arm64

2019-06-22 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Aaron Conole > Sent: Saturday, June 22, 2019 12:57 AM > To: Pavan Nikhilesh Bhagavatula > Cc: Jerin Jacob Kollanukkaran ; dev@dpdk.org; Nithin > Kumar Dabilpuram ; Vamsi Krishna Attunuru > ; Olivier Matz > Subject: Re: [EXT] Re: [dpdk-dev] [PATCH v3 25/27]

[dpdk-dev] [PATCH v4 00/27] OCTEON TX2 common and mempool driver

2019-06-22 Thread jerinj
From: Jerin Jacob This patch set adds initial driver support for OCTEON TX2 SoC. OCTEON TX2 is an armv8.2 SoC with integrated HW based mempool, ethdev, cryptodev, compressdev, and eventdev devices. This patch set adds common driver and mempool device driver for OCTEON TX2 SoC. There will be thr

[dpdk-dev] [PATCH v4 05/27] common/octeontx2: add runtime log infra

2019-06-22 Thread jerinj
From: Jerin Jacob Various consumers of this common code need runtime logging infrastructure. This patch adds the same. Signed-off-by: Jerin Jacob --- drivers/common/octeontx2/Makefile | 1 + drivers/common/octeontx2/meson.build | 1 + drivers/common/octeontx2/otx2_common

[dpdk-dev] [PATCH v4 02/27] common/octeontx2: add IO handling APIs

2019-06-22 Thread jerinj
From: Jerin Jacob Various octeontx2 drivers use IO handling API, added octeontx2 specific IO handling routines in the common code. Since some of those implementations are based on arm64 instructions added the stub to compile the code on non arm64 ISA. The non arm64 ISA stub is possible due to th

[dpdk-dev] [PATCH v4 01/27] common/octeontx2: add build infrastructure and HW definition

2019-06-22 Thread jerinj
From: Jerin Jacob Add the make and meson based build infrastructure along with HW definition header file. This patch adds skeleton otx2_mbox.c file to make sure all header files are intact, subsequent patches add content to otx2_mbox.c This patch also updates CONFIG_RTE_MAX_VFIO_GROUPS value to

[dpdk-dev] [PATCH v4 04/27] common/octeontx2: add mailbox base support infra

2019-06-22 Thread jerinj
From: Jerin Jacob This patch adds mailbox init and fini support. Each RVU device has a dedicated 64KB mailbox region shared with its peer for communication. RVU AF has a separate mailbox region shared with each of RVU PFs and an RVU PF has a separate region shared with each of it's VF. Signed-of

[dpdk-dev] [PATCH v4 03/27] common/octeontx2: add mbox request and response definition

2019-06-22 Thread jerinj
From: Jerin Jacob The admin function driver sits in Linux kernel as mailbox server. The DPDK AF mailbox client, send the message to mailbox server to complete the administrative task such as get mac address. This patch adds mailbox request and response definition of existing mailbox defined betw

[dpdk-dev] [PATCH v4 08/27] common/octeontx2: introduce irq handling functions

2019-06-22 Thread jerinj
From: Jerin Jacob All PCIe drivers(ethdev, mempool, cryptodev and eventdev) in octeontx2, needs to handle interrupt for mailbox and error handling. Create a helper function over rte interrupt API to register, unregister, disable interrupts. Signed-off-by: Jerin Jacob Signed-off-by: Vamsi Attunu

[dpdk-dev] [PATCH v4 09/27] common/octeontx2: handle intra device operations

2019-06-22 Thread jerinj
From: Jerin Jacob The mempool device(NPA) may be provisioned as a standalone device or it can be part of ethdev/eventdev device. In order to address mempool as standalone or integrated with ethdev/eventdev device, An intra device structure being introduced. When the _first_ ethdev/eventdev PCIe

[dpdk-dev] [PATCH v4 06/27] common/octeontx2: add mailbox send and receive support

2019-06-22 Thread jerinj
From: Jerin Jacob Each RVU device has a dedicated 64KB mailbox region shared with its peer for communication. RVU AF has a separate mailbox region shared with each of RVU PFs and an RVU PF has a separate region shared with each of it's VF. This patch add use 64KB memory and implemented mailbox s

[dpdk-dev] [PATCH v4 11/27] common/octeontx2: add PF to VF mailbox IRQ and msg handlers

2019-06-22 Thread jerinj
From: Nithin Dabilpuram PF has additional responsibility being server for VF messages and forward to AF and once AF process it then forward the response back to VF. otx2_vf_pf_mbox_irq() will process the VF mailbox request and af_pf_wait_msg() will until getting a response back from AF. Signed-o

[dpdk-dev] [PATCH v4 07/27] common/octeontx2: introduce common device class

2019-06-22 Thread jerinj
From: Jerin Jacob Introduce otx2_dev class to hold octeontx2 PCIe device specific information and operations. All PCIe drivers(ethdev, mempool, cryptodev and eventdev) in octeontx2, inherits this base object to avail the common functionalities such as mailbox creation, interrupt registration, et

[dpdk-dev] [PATCH v4 10/27] common/octeontx2: add AF to PF mailbox IRQ and msg handlers

2019-06-22 Thread jerinj
From: Nithin Dabilpuram This patch adds support for AF to PF mailbox interrupt and message handling. PF writes the message on mapped mailbox region followed by writing the mailbox doorbell register. Upon receiving, the mailbox request in AF(In Linux kernel), It processes the messages and update t

[dpdk-dev] [PATCH v4 12/27] common/octeontx2: add VF mailbox IRQ and msg handler

2019-06-22 Thread jerinj
From: Jerin Jacob This patch adds support for PF <-> VF mailbox interrupt mailbox message interrupt handling. Signed-off-by: Jerin Jacob --- drivers/common/octeontx2/otx2_dev.c | 78 - 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/drivers/common/oct

[dpdk-dev] [PATCH v4 13/27] common/octeontx2: add uplink message support

2019-06-22 Thread jerinj
From: Nithin Dabilpuram The events like PHY link status change by AF or PHY configuration change by PF would call for the uplink message. The AF initiated uplink would land it in PF and PF would further forward to VF(if it is intended for that specific VF) The PF initiated uplink would be distri

[dpdk-dev] [PATCH v4 16/27] mempool/octeontx2: add build infra and device probe

2019-06-22 Thread jerinj
From: Jerin Jacob Add the make and meson based build infrastructure along with the mempool(NPA) device probe. Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh --- config/common_base| 5 ++ drivers/common/Makefile | 3 + drivers/memp

[dpdk-dev] [PATCH v4 14/27] common/octeontx2: add FLR IRQ handler

2019-06-22 Thread jerinj
From: Nithin Dabilpuram Upon receiving FLR request from VF, It is PF responsibly forward to AF and enable FLR for VFs. This patch adds support for VF FLR support in PF. This patch also add otx2_dev_active_vfs() API to find the number of active VF for given PF. Signed-off-by: Nithin Dabilpuram

[dpdk-dev] [PATCH v4 17/27] drivers: add init and fini on octeontx2 NPA object

2019-06-22 Thread jerinj
From: Jerin Jacob NPA object needs to initialize memory for queue interrupts context, pool resource management, etc. This patch adds support for initializing and finalizing the NPA object. This patch also updates the otx2_npa_lf definition to meet the init/fini requirements. Signed-off-by: Jeri

[dpdk-dev] [PATCH v4 24/27] mempool/octeontx2: add fast path mempool ops

2019-06-22 Thread jerinj
From: Jerin Jacob Add enqueue and dequeue mempool fastpath operations. Cc: Olivier Matz Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh --- drivers/mempool/octeontx2/otx2_mempool_ops.c | 57 1 file changed, 57 insertions(+) diff --git a/drivers/mempool/octeon

[dpdk-dev] [PATCH v4 21/27] mempool/octeontx2: add mempool alloc op

2019-06-22 Thread jerinj
From: Jerin Jacob The DPDK mempool allocation reserves a single HW AURA and POOL in 1:1 map mode. Upon reservation, SW programs the slow path operations such as allocate stack memory for DMA and bunch HW configurations to respective HW blocks. Cc: Olivier Matz Signed-off-by: Jerin Jacob ---

[dpdk-dev] [PATCH v4 19/27] mempool/octeontx2: add NPA IRQ handler

2019-06-22 Thread jerinj
From: Jerin Jacob Register and implement NPA IRQ handler for RAS and all type of error interrupts to get the fatal errors from HW. Signed-off-by: Jerin Jacob Signed-off-by: Harman Kalra --- drivers/mempool/octeontx2/Makefile | 3 +- drivers/mempool/octeontx2/meson.build|

[dpdk-dev] [PATCH v4 20/27] mempool/octeontx2: add context dump support

2019-06-22 Thread jerinj
From: Jerin Jacob Add a helper function to dump aura and pool context for NPA debugging. Signed-off-by: Jerin Jacob Signed-off-by: Vivek Sharma --- drivers/mempool/octeontx2/Makefile| 3 +- drivers/mempool/octeontx2/meson.build | 1 + drivers/mempool/octeontx2/otx2_mem

[dpdk-dev] [PATCH v4 22/27] mempool/octeontx2: add mempool free op

2019-06-22 Thread jerinj
From: Jerin Jacob The DPDK mempool free operation frees HW AURA and POOL reserved in alloc operation. In addition to that it free all the memory resources allocated in mempool alloc operations. Cc: Olivier Matz Signed-off-by: Jerin Jacob --- drivers/mempool/octeontx2/otx2_mempool_ops.c | 104

[dpdk-dev] [PATCH v4 18/27] mempool/octeontx2: add NPA HW operations

2019-06-22 Thread jerinj
From: Jerin Jacob Implement the low-level NPA HW operations such as alloc, free memory, etc. Signed-off-by: Jerin Jacob Signed-off-by: Kiran Kumar K --- drivers/mempool/octeontx2/otx2_mempool.h | 146 +++ 1 file changed, 146 insertions(+) diff --git a/drivers/mempool/octe

[dpdk-dev] [PATCH v4 23/27] mempool/octeontx2: add remaining slow path ops

2019-06-22 Thread jerinj
From: Jerin Jacob Add remaining get_count(), calc_mem_size() and populate() slow path mempool operations. Signed-off-by: Jerin Jacob Signed-off-by: Vamsi Attunuru --- drivers/mempool/octeontx2/otx2_mempool.c | 17 ++ drivers/mempool/octeontx2/otx2_mempool.h | 15 - drivers/mem

[dpdk-dev] [PATCH v4 27/27] doc: add Marvell OCTEON TX2 mempool documentation

2019-06-22 Thread jerinj
From: Jerin Jacob Add Marvell OCTEON TX2 mempool documentation. This patch also updates the MAINTAINERS file and updates shared library versions in release_19_08.rst. Cc: John McNamara Cc: Thomas Monjalon Signed-off-by: Jerin Jacob Signed-off-by: Vivek Sharma Signed-off-by: Vamsi Attunuru

[dpdk-dev] [PATCH v4 25/27] mempool/octeontx2: add optimized dequeue operation for arm64

2019-06-22 Thread jerinj
From: Pavan Nikhilesh This patch adds an optimized arm64 instruction based routine to leverage CPU pipeline characteristics of octeontx2. The theme is to fill the pipeline with CASP operations as much HW can do so that HW can do alloc() HW ops in full throttle. Cc: Olivier Matz Cc: Aaron Conole

[dpdk-dev] [PATCH v4 26/27] mempool/octeontx2: add devargs for max pool selection

2019-06-22 Thread jerinj
From: Jerin Jacob The maximum number of mempools per application needs to be configured on HW during mempool driver initialization. HW can support up to 1M mempools, Since each mempool costs set of HW resources, the max_pools devargs parameter is being introduced to configure the number of mempoo

Re: [dpdk-dev] [PATCH] eal: promote some service core functions to stable

2019-06-22 Thread Neil Horman
On Fri, Jun 21, 2019 at 09:58:41PM +0200, David Marchand wrote: > On Fri, Jun 21, 2019 at 7:41 PM Neil Horman wrote: > > > On Fri, Jun 21, 2019 at 06:47:31PM +0200, David Marchand wrote: > > > On Fri, Jun 21, 2019 at 6:28 PM Neil Horman > > wrote: > > > > > > > On Fri, Jun 21, 2019 at 02:45:45PM

[dpdk-dev] Data Center TCP

2019-06-22 Thread Milind Changire
Does DPDK provide support for the Data Center TCP Congestion Control Algorithm ? https://people.csail.mit.edu/alizadeh/papers/dctcp-sigcomm10.pdf -- Milind

Re: [dpdk-dev] [PATCH] eal: promote some service core functions to stable

2019-06-22 Thread David Marchand
On Sat, Jun 22, 2019 at 6:17 PM Neil Horman wrote: > On Fri, Jun 21, 2019 at 09:58:41PM +0200, David Marchand wrote: > > On Fri, Jun 21, 2019 at 7:41 PM Neil Horman > wrote: > > > > > On Fri, Jun 21, 2019 at 06:47:31PM +0200, David Marchand wrote: > > > > On Fri, Jun 21, 2019 at 6:28 PM Neil Hor

Re: [dpdk-dev] [PATCH] eal: promote some service core functions to stable

2019-06-22 Thread Neil Horman
On Sat, Jun 22, 2019 at 07:51:10PM +0200, David Marchand wrote: > On Sat, Jun 22, 2019 at 6:17 PM Neil Horman wrote: > > > On Fri, Jun 21, 2019 at 09:58:41PM +0200, David Marchand wrote: > > > On Fri, Jun 21, 2019 at 7:41 PM Neil Horman > > wrote: > > > > > > > On Fri, Jun 21, 2019 at 06:47:31PM

Re: [dpdk-dev] [PATCH 00/28] vhost: add virtio-vhost-user transport

2019-06-22 Thread Nikos Dragazis
On 20/6/19 2:35 μ.μ., Maxime Coquelin wrote: > Hi Nikos, > > On 6/19/19 5:14 PM, Nikos Dragazis wrote: >> Hi everyone, >> >> this patch series introduces the concept of the virtio-vhost-user >> transport. This is actually a revised version of an earlier RFC >> implementation that has been proposed

Re: [dpdk-dev] Data Center TCP

2019-06-22 Thread Stephen Hemminger
On Sat, 22 Jun 2019 23:00:46 +0530 Milind Changire wrote: > Does DPDK provide support for the Data Center TCP Congestion Control > Algorithm ? > https://people.csail.mit.edu/alizadeh/papers/dctcp-sigcomm10.pdf > > -- > Milind The DPDK does not provide a TCP stack. There are several other projec

[dpdk-dev] [PATCH v1 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-22 Thread Phil Yang
Add 128-bit atomic compare exchange on aarch64. Signed-off-by: Phil Yang Tested-by: Honnappa Nagarahalli Reviewed-by: Honnappa Nagarahalli --- This patch depends on http://patchwork.dpdk.org/patch/54840/ v2: eal/stack: fix 'pointer-sign' warning .../common/include/arch/arm/rte_atomic_64.h

[dpdk-dev] [PATCH v1 3/3] eal/stack: enable lock-free stack for aarch64

2019-06-22 Thread Phil Yang
Enable both c11 atomic and non c11 atomic lock-free stack for aarch64. Signed-off-by: Phil Yang Tested-by: Honnappa Nagarahalli Reviewed-by: Honnappa Nagarahalli --- doc/guides/rel_notes/release_19_08.rst | 3 +++ lib/librte_stack/rte_stack_lf_c11.h | 4 ++-- lib/librte_stack/rte_stack_lf

[dpdk-dev] [PATCH v1 2/3] test/atomic: add 128b compare and swap test

2019-06-22 Thread Phil Yang
Add 128b atomic compare and swap test for aarch64 and x86_64. Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli --- app/test/test_atomic.c | 119 - 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/app/test/test_atomic.c b/ap

[dpdk-dev] [PATCH v2 2/3] test/atomic: add 128b compare and swap test

2019-06-22 Thread Phil Yang
Add 128b atomic compare and swap test for aarch64 and x86_64. Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli --- app/test/test_atomic.c | 120 - 1 file changed, 119 insertions(+), 1 deletion(-) diff --git a/app/test/test_atomic.c b/ap

[dpdk-dev] [PATCH v2 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-22 Thread Phil Yang
Add 128-bit atomic compare exchange on aarch64. Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Tested-by: Honnappa Nagarahalli --- This patch depends on 'eal/stack: fix 'pointer-sign' warning' http://patchwork.dpdk.org/patch/54840/ v2: Fixed coding style warning. .../common/inclu

[dpdk-dev] [PATCH v2 3/3] eal/stack: enable lock-free stack for aarch64

2019-06-22 Thread Phil Yang
Enable both c11 atomic and non c11 atomic lock-free stack for aarch64. Signed-off-by: Phil Yang Reviewed-by: Honnappa Nagarahalli Tested-by: Honnappa Nagarahalli --- doc/guides/rel_notes/release_19_08.rst | 3 +++ lib/librte_stack/rte_stack_lf_c11.h | 4 ++-- lib/librte_stack/rte_stack_lf

Re: [dpdk-dev] [PATCH] examples/flow_filtering: remove out-of-date comment

2019-06-22 Thread Ori Kam
> -Original Message- > From: Xiaolong Ye > Sent: Tuesday, June 18, 2019 4:46 PM > To: Ferruh Yigit ; Marko Kovacevic > ; Ori Kam ; Bruce > Richardson ; Pablo de Lara > ; Radu Nicolau ; > Akhil Goyal ; Tomasz Kantecki > > Cc: dev@dpdk.org; Xiaolong Ye > Subject: [PATCH] examples/flow_f