[dpdk-dev] [PATCH v2 2/8] event/opdl: add the opdl pmd header and init helper function

2017-12-15 Thread Liang Ma
opdl_evdev.h include the main data structure of opdl device and all the function prototype need to be exposed to support eventdev API. opdl_evdev_init.c implement all initailization helper function Signed-off-by: Liang Ma Signed-off-by: Peter, Mccarthy --- drivers/event/opdl/opdl_evdev.h

[dpdk-dev] [PATCH v2 3/8] event/opdl: add the opdl pmd main body and xstats helper function

2017-12-15 Thread Liang Ma
- opdl_evdev_xstats.c helper function to support stats collection This commit only adds the implementation, no existing DPDK files are modified. Signed-off-by: Liang Ma Signed-off-by: Peter, Mccarthy --- drivers/event/opdl/opdl_evdev.c| 744 + drivers

[dpdk-dev] [PATCH v2 5/8] lib/librte_eventdev: extend the eventdev capability flags

2017-12-15 Thread Liang Ma
single port. if the flag is not set, the eventdev can only map a single queue to each port or map a signle queue to many port. Signed-off-by: Liang Ma Signed-off-by: Peter, Mccarthy --- lib/librte_eventdev/rte_eventdev.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a

[dpdk-dev] [PATCH v2 4/8] eventdev/opdl: opdl eventdev pmd unit test function

2017-12-15 Thread Liang Ma
This commit adds unit test inside the OPDL PMD. There is a PMd parameter "self_test" can be used to triger the test when vdev bus probe opdl device e.g. sudo ./app/test --vdev="event_opdl0,self_test=1" Signed-off-by: Liang Ma Signed-off-by: Peter, Mccarthy ---

[dpdk-dev] [PATCH v2 6/8] event/*: apply the three new capability flags for sw/dppa2/octeontx

2017-12-15 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter, Mccarthy --- drivers/event/dpaa2/dpaa2_eventdev.c | 5 - drivers/event/octeontx/ssovf_evdev.c | 5 - drivers/event/sw/sw_evdev.c | 5 - 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/event/dpaa2

[dpdk-dev] [PATCH v2 7/8] event/opdl: update the build system to enable compilation

2017-12-15 Thread Liang Ma
update the base config, add OPDL event dev flag update the driver/event Makefile to add opdl subdir update the rte.app.mkallow app link the pmd lib Signed-off-by: Liang Ma Signed-off-by: Peter, Mccarthy --- config/common_base | 6 ++ drivers/event/Makefile | 1 + mk/rte.app.mk

[dpdk-dev] [PATCH v2 8/8] doc: add eventdev opdl pmd docuement

2017-12-15 Thread Liang Ma
Add the description about opdl pmd Signed-off-by: Liang Ma Signed-off-by: Peter, Mccarthy --- doc/guides/eventdevs/index.rst | 1 + doc/guides/eventdevs/opdl.rst | 162 + 2 files changed, 163 insertions(+) create mode 100644 doc/guides/eventdevs

[dpdk-dev] [RFC v3 PATCH 0/8] event: eventdev OPDL PMD

2017-12-21 Thread Liang Ma
test code into opdl pmd. 2. propose three new capability capability flags for overall eventdev. 3. remove the opdl pmd example code. 4. remove the opdl pmd example doc. Liang Ma (8): event/opdl: add the opdl ring infrastructure library event/opdl: add the opdl pmd main body and helper

[dpdk-dev] [PATCH v3 1/8] event/opdl: add the opdl ring infrastructure library

2017-12-21 Thread Liang Ma
system to enable compilation. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- config/common_base|6 + drivers/event/Makefile|1 + drivers/event/opdl/Makefile | 62 + drivers/event/opdl

[dpdk-dev] [PATCH v3 3/8] eventdev/opdl: opdl eventdev pmd unit test function

2017-12-21 Thread Liang Ma
This commit adds unit test inside the OPDL PMD. There is a PMd parameter "self_test" can be used to triger the test when vdev bus probe opdl device e.g. sudo ./app/test --vdev="event_opdl0,self_test=1" Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers

[dpdk-dev] [PATCH v3 2/8] event/opdl: add the opdl pmd main body and helper function

2017-12-21 Thread Liang Ma
implement all initailization helper function This commit only adds the implementation, no existing DPDK files are modified. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/Makefile| 3 + drivers/event/opdl/opdl_evdev.c| 791

[dpdk-dev] [PATCH v3 4/8] lib/librte_eventdev: extend the eventdev capability flags

2017-12-21 Thread Liang Ma
single port. if the flag is not set, the eventdev can only map a single queue to each port or map a signle queue to many port. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- lib/librte_eventdev/rte_eventdev.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a

[dpdk-dev] [PATCH v3 5/8] event/*: apply the three new capability flags for sw/dppa2/octeontx

2017-12-21 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/dpaa2/dpaa2_eventdev.c | 6 +- drivers/event/octeontx/ssovf_evdev.c | 6 +- drivers/event/sw/sw_evdev.c | 5 - 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/event/dpaa2

[dpdk-dev] [PATCH v3 6/8] maintainers: add the opdl pmd maintainer information

2017-12-21 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0baeb4..1b8d617 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -700,6 +700,12 @@ F: doc/guides/eventdevs/sw.rst F: examples

[dpdk-dev] [PATCH v3 7/8] doc:update 18.02 release notes

2017-12-21 Thread Liang Ma
add opdl pmd description Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- doc/guides/rel_notes/release_18_02.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/guides/rel_notes/release_18_02.rst b/doc/guides/rel_notes/release_18_02.rst index 24b67bb..b2dc39c

[dpdk-dev] [PATCH v3 8/8] doc: add eventdev opdl pmd docuement

2017-12-21 Thread Liang Ma
Add the description about opdl pmd Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- doc/guides/eventdevs/index.rst | 1 + doc/guides/eventdevs/opdl.rst | 162 + 2 files changed, 163 insertions(+) create mode 100644 doc/guides/eventdevs

[dpdk-dev] [RFC v4 PATCH 0/8] event: eventdev OPDL PMD

2017-12-22 Thread Liang Ma
] 1. merge the opdl eventdev unit test code into opdl pmd. 2. propose three new capability capability flags for overall eventdev. 3. remove the opdl pmd example code. 4. remove the opdl pmd example doc. Liang Ma (8): event/opdl: add the opdl ring infrastructure library event/opdl: add the

[dpdk-dev] [PATCH v4 1/8] event/opdl: add the opdl ring infrastructure library

2017-12-22 Thread Liang Ma
system to enable compilation. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- config/common_base|6 + drivers/event/Makefile|1 + drivers/event/opdl/Makefile | 62 + drivers/event/opdl

[dpdk-dev] [PATCH v4 2/8] event/opdl: add the opdl pmd main body and helper function

2017-12-22 Thread Liang Ma
implement all initailization helper function This commit only adds the implementation, no existing DPDK files are modified. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/opdl/Makefile| 3 + drivers/event/opdl/opdl_evdev.c| 791

[dpdk-dev] [PATCH v4 3/8] eventdev/opdl: opdl eventdev pmd unit test function

2017-12-22 Thread Liang Ma
This commit adds unit test inside the OPDL PMD. There is a PMd parameter "self_test" can be used to triger the test when vdev bus probe opdl device e.g. sudo ./app/test --vdev="event_opdl0,self_test=1" Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers

[dpdk-dev] [PATCH v4 5/8] event/*: apply the three new capability flags for sw/dppa2/octeontx

2017-12-22 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- drivers/event/dpaa2/dpaa2_eventdev.c | 6 +- drivers/event/octeontx/ssovf_evdev.c | 6 +- drivers/event/sw/sw_evdev.c | 5 - 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/event/dpaa2

[dpdk-dev] [PATCH v4 4/8] lib/librte_eventdev: extend the eventdev capability flags

2017-12-22 Thread Liang Ma
single port. if the flag is not set, the eventdev can only map a single queue to each port or map a signle queue to many port. Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- lib/librte_eventdev/rte_eventdev.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a

[dpdk-dev] [PATCH v4 6/8] maintainers: add the opdl pmd maintainer information

2017-12-22 Thread Liang Ma
Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0baeb4..1b8d617 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -700,6 +700,12 @@ F: doc/guides/eventdevs/sw.rst F: examples

[dpdk-dev] [PATCH v4 7/8] doc:update 18.02 release notes

2017-12-22 Thread Liang Ma
add opdl pmd description Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- doc/guides/rel_notes/release_18_02.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/guides/rel_notes/release_18_02.rst b/doc/guides/rel_notes/release_18_02.rst index 24b67bb..b2dc39c

[dpdk-dev] [PATCH v4 8/8] doc: add eventdev opdl pmd docuement

2017-12-22 Thread Liang Ma
Add the description about opdl pmd Signed-off-by: Liang Ma Signed-off-by: Peter Mccarthy --- doc/guides/eventdevs/index.rst | 1 + doc/guides/eventdevs/opdl.rst | 162 + 2 files changed, 163 insertions(+) create mode 100644 doc/guides/eventdevs

Re: [dpdk-dev] [PATCH v4 1/8] event/opdl: add the opdl ring infrastructure library

2018-01-08 Thread Liang, Ma
On 08 Jan 12:16, Jerin Jacob wrote: > -Original Message- > > Date: Fri, 22 Dec 2017 16:02:42 + > > From: Sean Harte > > To: Liang Ma > > Cc: jerin.ja...@caviumnetworks.com, dev@dpdk.org, > > harry.van.haa...@intel.com, Bruce Richardson , >

[dpdk-dev] [PATCH] power: fix coverity issue

2019-04-08 Thread Liang Ma
Coverity issue: 337668 Fixes: b60fd5f8b1ce8f0a2c ("power: add bit for high frequency cores") Signed-off-by: Liang Ma --- lib/librte_power/power_pstate_cpufreq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_power/power_pstate_cpufreq.c b/lib/li

[dpdk-dev] [PATCH v2] power: fix coverity issue

2019-04-08 Thread Liang Ma
Fix the resource leaking issue Coverity issue: 337668 Fixes: b60fd5f8b1ce8f0a2c ("power: add bit for high frequency cores") Signed-off-by: Liang Ma --- lib/librte_power/power_pstate_cpufreq.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/li

Re: [dpdk-dev] [PATCH 2/2] l3fwd-power: fix interrupt disable

2020-01-30 Thread Liang, Ma
wer: disable Rx interrupt when waking > up") > Cc: sta...@dpdk.org > > Signed-off-by: Xiao Wang Hi Xiao, I'm OK with the patch. Reviewed-by: Liang Ma Regards Liang > --- > examples/l3fwd-power/main.c | 13 +++-- > 1 file changed, 7 insertions(+

Re: [dpdk-dev] [PATCH 2/2] l3fwd-power: fix interrupt disable

2020-02-05 Thread Liang, Ma
Tested-by: Liang Ma

Re: [dpdk-dev] [PATCH v2] rte_ethdev: safer memory access by calling Rx callback

2020-03-05 Thread Liang, Ma
On 05 Mar 11:27, Ananyev, Konstantin wrote: > > > > > > On Thu, Mar 05, 2020 at 01:33:49AM +0800, ZY Qiu wrote: > > > When compiling with -O0, > > > the compiler does not optimize two memory accesses into one. > > > Leads to accessing a null pointer when queue post Rx burst callback > > > remova

Re: [dpdk-dev] [PATCH v2] rte_ethdev: safer memory access by calling Rx callback

2020-03-05 Thread Liang, Ma
On 05 Mar 07:19, Ananyev, Konstantin wrote: > > > On 05 Mar 11:27, Ananyev, Konstantin wrote: > > > > > > > > > > > > > > On Thu, Mar 05, 2020 at 01:33:49AM +0800, ZY Qiu wrote: > > > > > When compiling with -O0, > > > > > the compiler does not optimize two memory accesses into one. > > > > > Lead

Re: [dpdk-dev] [PATCH] power: handle frequency increase with turbo disabled

2019-11-15 Thread Liang, Ma
; Signed-off-by: Mattias Rönnblom > --- Thanks for your patches. I reviewed it and I'm OK with that changes. Reviewed-by: Liang Ma

Re: [dpdk-dev] [PATCH 8/9] event/opdl: remove commented out code

2019-10-03 Thread Liang, Ma
t; single_link(struct test *t) > { > - /* const uint8_t rx_port = 0; */ > - /* const uint8_t w1_port = 1; */ > - /* const uint8_t w3_port = 3; */ > const uint8_t tx_port = 2; > int err; > -- > 2.21.0 > Acked-by: Liang Ma

Re: [dpdk-dev] [PATCH] lib/librte_power: set new frequecy on turbo_disable

2019-04-15 Thread Liang, Ma
Acked-by: Liang Ma On 12 Apr 16:57, Lee Daly wrote: > This patch will ensure the correct max frequency of a core is set in > the lcore_power_info struct when disabling turbo, while using the > intel pstate driver. > > Fixes: e6c6dc0f96c8 ("power: add p-state driver

Re: [dpdk-dev] [PATCH v6 04/10] ethdev: add simple power management API

2020-10-15 Thread Liang, Ma
On 14 Oct 14:30, Anatoly Burakov wrote: > From: Liang Ma > > Add a simple API to allow getting address of next RX descriptor from the > PMD, as well as release notes information. > > Signed-off-by: Liang Ma > Signed-off-by: Anatoly Burakov > Acked-by: Konstantin Anan

[dpdk-dev] [PATCH v8 01/10] eal: add new x86 cpuid support for WAITPKG

2020-10-23 Thread Liang Ma
Add a new CPUID flag indicating processor support for UMONITOR/UMWAIT and TPAUSE instructions instruction. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov Acked-by: Konstantin Ananyev --- lib/librte_eal/x86/include/rte_cpuflags.h | 1 + lib/librte_eal/x86/rte_cpuflags.c | 2

[dpdk-dev] [PATCH v8 02/10] eal: add power management intrinsics

2020-10-23 Thread Liang Ma
happened, and no more writes are expected. For more details, please refer to Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 2. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov Acked-by: David Christensen Acked-by: Jerin Jacob Acked-by: Konstantin Ananyev Ack

[dpdk-dev] [PATCH v8 03/10] eal: add intrinsics support check infrastructure

2020-10-23 Thread Liang Ma
-by: Liang Ma Acked-by: David Christensen Acked-by: Jerin Jacob Acked-by: Ruifeng Wang Acked-by: Ray Kinsella --- Notes: v6: - Fix the comments v8: - Rename eal version.map --- lib/librte_eal/arm/rte_cpuflags.c | 6 + lib/librte_eal/include/generic

[dpdk-dev] [PATCH v8 04/10] ethdev: add simple power management API

2020-10-23 Thread Liang Ma
Add a simple API to allow getting address of next RX descriptor from the PMD, as well as release notes information. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov Acked-by: Konstantin Ananyev --- Notes: v8: - Rename version map file name. v7: - Fixed queue ID

[dpdk-dev] [PATCH v8 05/10] power: add PMD power management API and callback

2020-10-23 Thread Liang Ma
library to scale up/down core frequency depending on traffic volume. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov Acked-by: David Hunt Acked-by: Konstantin Ananyev --- Notes: v8: - Rename version map file name v7: - Fixed race condition (Konstantin) - Slight

[dpdk-dev] [PATCH v8 06/10] net/ixgbe: implement power management API

2020-10-23 Thread Liang Ma
Implement support for the power management API by implementing a `get_wake_addr` function that will return an address of an RX ring's status bit. Signed-off-by: Anatoly Burakov Signed-off-by: Liang Ma Acked-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + drivers/net/

[dpdk-dev] [PATCH v8 07/10] net/i40e: implement power management API

2020-10-23 Thread Liang Ma
Implement support for the power management API by implementing a `get_wake_addr` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov Acked-by: Konstantin Ananyev Acked-by: Jeff Guo --- drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH v8 08/10] net/ice: implement power management API

2020-10-23 Thread Liang Ma
Implement support for the power management API by implementing a `get_wake_addr` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov Acked-by: Konstantin Ananyev --- drivers/net/ice/ice_ethdev.c | 1 + drivers/ne

[dpdk-dev] [PATCH v8 09/10] examples/l3fwd-power: enable PMD power mgmt

2020-10-23 Thread Liang Ma
Add PMD power management feature support to l3fwd-power sample app. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov Acked-by: David Hunt --- Notes: v8: - Add return status check for queue enable v6: - Fixed typos in documentation --- .../sample_app_ug

[dpdk-dev] [PATCH v8 10/10] doc: update programmer's guide for power library

2020-10-23 Thread Liang Ma
Update programmer's guide to document PMD power management usage. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov Acked-by: David Hunt --- doc/guides/prog_guide/power_man.rst | 42 + 1 file changed, 42 insertions(+) diff --git a/doc/guides/prog_

Re: [dpdk-dev] [PATCH] power: fix current frequency index

2020-07-31 Thread Liang, Ma
Hi Reshma, I'm OK with the change. That's the missing part about init process. Reviewed-by Liang Ma Regards Liang On 29 Jul 14:58, Reshma Pattan wrote: > 1) > During power initialization the pstate cpufreq api is > not setting the initial curr_idx of pstate_power_info

[dpdk-dev] [RFC v2 1/5] eal: add power management intrinsics

2020-08-11 Thread Liang Ma
happened, and no more writes are expected. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- .../include/generic/rte_power_intrinsics.h| 64 lib/librte_eal/include/meson.build| 1 + lib/librte_eal/x86/include/meson.build| 1 + lib/librte_eal/x86

[dpdk-dev] [RFC v2 2/5] ethdev: add simple power management API and callback

2020-08-11 Thread Liang Ma
instruction to releaf the processor from busy polling. 3. Frequency Scaling Reuse exist rte power library to scale up/down core frequency depend on traffic volume. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- config/common_base | 4 +- lib/Makefile

[dpdk-dev] [RFC v2 4/5] net/i40e: implement power management API

2020-08-11 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [RFC v2 3/5] net/ixgbe: implement power management API

2020-08-11 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Anatoly Burakov Signed-off-by: Liang Ma --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + drivers/net/ixgbe/ixgbe_rxtx.c

[dpdk-dev] [RFC v2 5/5] net/ice: implement power management API

2020-08-11 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/ice/ice_ethdev.c | 1 + drivers/net/ice/ice_rxtx.c

[dpdk-dev] [PATCH v4 01/10] eal: add new x86 cpuid support for WAITPKG

2020-10-02 Thread Liang Ma
Add new x86 cpuid support for WAITPKG. This flag indicate processor support umwait/umonitor/tpause instruction. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- lib/librte_eal/x86/include/rte_cpuflags.h | 2 ++ lib/librte_eal/x86/rte_cpuflags.c | 2 ++ 2 files changed, 4

[dpdk-dev] [PATCH v4 02/10] eal: add power management intrinsics

2020-10-02 Thread Liang Ma
happened, and no more writes are expected. For more details, Please reference Intel SDM Volume 2. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- .../include/generic/rte_power_intrinsics.h| 64 lib/librte_eal/include/meson.build| 1 + lib/librte_eal/x86

[dpdk-dev] [PATCH v4 04/10] power: add simple power management API and callback

2020-10-02 Thread Liang Ma
. Frequency Scaling Reuse exist rte power library to scale up/down core frequency depend on traffic volume. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- lib/librte_power/meson.build | 5 +- lib/librte_power/pmd_mgmt.h| 49 ++ lib/librte_power

[dpdk-dev] [PATCH v4 07/10] net/ice: implement power management API

2020-10-02 Thread Liang Ma
Implement support for the power management API by implementing a `get_wake_addr` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/ice/ice_ethdev.c | 1 + drivers/net/ice/ice_rxtx.c

[dpdk-dev] [PATCH v4 10/10] doc: update the programming guide for PMD power management

2020-10-02 Thread Liang Ma
Update programming guide and sample application l3fwd-power document for PMD power management Signed-off-by: Liang Ma --- doc/guides/prog_guide/power_man.rst | 40 +++ .../sample_app_ug/l3_forward_power_man.rst| 15 ++- 2 files changed, 54 insertions(+), 1

[dpdk-dev] [PATCH v4 06/10] net/i40e: implement power management API

2020-10-02 Thread Liang Ma
Implement support for the power management API by implementing a `get_wake_addr` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH v4 05/10] net/ixgbe: implement power management API

2020-10-02 Thread Liang Ma
Implement support for the power management API by implementing a `get_wake_addr` function that will return an address of an RX ring's status bit. Signed-off-by: Anatoly Burakov Signed-off-by: Liang Ma --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + drivers/net/ixgbe/ixgbe_rxtx.c

[dpdk-dev] [PATCH v4 08/10] examples/l3fwd-power: enable PMD power mgmt

2020-10-02 Thread Liang Ma
Add pmd power mgmt feature support. Signed-off-by: Liang Ma --- examples/l3fwd-power/main.c | 44 - 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index d0e6c9bd77..b1b139129a 100644

[dpdk-dev] [PATCH v4 03/10] ethdev: add simple power management API

2020-10-02 Thread Liang Ma
Add a simple API allow ethdev get wake up address from PMD. Also include internal structure update. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- lib/librte_ethdev/rte_ethdev.c | 19 lib/librte_ethdev/rte_ethdev.h | 24 lib

[dpdk-dev] [PATCH v4 09/10] doc: update release notes for PMD power management

2020-10-02 Thread Liang Ma
Add release notes for PMD power management Signed-off-by: Liang Ma --- doc/guides/rel_notes/release_20_11.rst | 16 1 file changed, 16 insertions(+) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index c2175f37f3..57ac73722a

Re: [dpdk-dev] [RFC v2 1/5] eal: add power management intrinsics

2020-08-13 Thread Liang, Ma
On 11 Aug 11:27, Liang Ma wrote: > Add two new power management intrinsics, and provide an implementation > in eal/x86 based on UMONITOR/UMWAIT instructions. The instructions > are implemented as raw byte opcodes because there is not yet widespread > compiler support for these

Re: [dpdk-dev] [RFC v2 2/5] ethdev: add simple power management API and callback

2020-08-13 Thread Liang, Ma
On 11 Aug 11:27, Liang Ma wrote: > +static uint16_t > +rte_ethdev_pmgmt_umait(uint16_t port_id, uint16_t qidx, > + struct rte_mbuf **pkts __rte_unused, uint16_t nb_rx, > + uint16_t max_pkts __rte_unused, void *_ __rte_unused) > +{ > + > + st

[dpdk-dev] [RFC PATCH v3 1/6] eal: add power management intrinsics

2020-09-03 Thread Liang Ma
happened, and no more writes are expected. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- .../include/generic/rte_power_intrinsics.h| 64 lib/librte_eal/include/meson.build| 1 + lib/librte_eal/x86/include/meson.build| 1 + lib/librte_eal/x86

[dpdk-dev] [RFC PATCH v3 3/6] power: add simple power management API and callback

2020-09-03 Thread Liang Ma
core into deeper C state, this lightweight method use Pause instruction to releaf the processor from busy polling. 3. Frequency Scaling Reuse exist rte power library to scale up/down core frequency depend on traffic volume. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- lib

[dpdk-dev] [RFC PATCH v3 2/6] ethdev: add simple power management API

2020-09-03 Thread Liang Ma
Add a simple API allow ethdev get the last available queue descriptor address from PMD. Also include internal structure update. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- lib/librte_ethdev/rte_ethdev.h | 22 ++ lib/librte_ethdev/rte_ethdev_core.h | 46

[dpdk-dev] [RFC PATCH v3 5/6] net/i40e: implement power management API

2020-09-03 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [RFC PATCH v3 6/6] net/ice: implement power management API

2020-09-03 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/ice/ice_ethdev.c | 1 + drivers/net/ice/ice_rxtx.c

[dpdk-dev] [RFC PATCH v3 4/6] net/ixgbe: implement power management API

2020-09-03 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Anatoly Burakov Signed-off-by: Liang Ma --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + drivers/net/ixgbe/ixgbe_rxtx.c

[dpdk-dev] [PATCH v3 1/6] eal: add power management intrinsics

2020-09-04 Thread Liang Ma
happened, and no more writes are expected. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- .../include/generic/rte_power_intrinsics.h| 64 lib/librte_eal/include/meson.build| 1 + lib/librte_eal/x86/include/meson.build| 1 + lib/librte_eal/x86

[dpdk-dev] [PATCH v3 3/6] power: add simple power management API and callback

2020-09-04 Thread Liang Ma
core into deeper C state, this lightweight method use Pause instruction to releaf the processor from busy polling. 3. Frequency Scaling Reuse exist rte power library to scale up/down core frequency depend on traffic volume. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- lib

[dpdk-dev] [PATCH v3 4/6] net/ixgbe: implement power management API

2020-09-04 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Anatoly Burakov Signed-off-by: Liang Ma --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + drivers/net/ixgbe/ixgbe_rxtx.c

[dpdk-dev] [PATCH v3 6/6] net/ice: implement power management API

2020-09-04 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/ice/ice_ethdev.c | 1 + drivers/net/ice/ice_rxtx.c

[dpdk-dev] [PATCH v3 5/6] net/i40e: implement power management API

2020-09-04 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH v3 2/6] ethdev: add simple power management API

2020-09-04 Thread Liang Ma
Add a simple API allow ethdev get the last available queue descriptor address from PMD. Also include internal structure update. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- lib/librte_ethdev/rte_ethdev.h | 22 ++ lib/librte_ethdev/rte_ethdev_core.h | 46

Re: [dpdk-dev] [PATCH v3 1/6] eal: add power management intrinsics

2020-09-14 Thread Liang, Ma
Hi Stephen, Agree. v4 will address this. Regards Liang On 04 Sep 09:23, Stephen Hemminger wrote: > On Fri, 4 Sep 2020 11:18:55 +0100 > Liang Ma wrote: > > > + * > > + * @return > > + * Architecture-dependent return value. > > + */ > > +static inli

Re: [dpdk-dev] [PATCH v3 1/6] eal: add power management intrinsics

2020-09-14 Thread Liang, Ma
Hi Stephen, v4 patch will include the l3fwd-power udpate. Regards Liang On 04 Sep 09:37, Stephen Hemminger wrote: > On Fri, 4 Sep 2020 11:18:55 +0100 > Liang Ma wrote: > > > Add two new power management intrinsics, and provide an implementation > > in eal/x86 bas

Re: [dpdk-dev] [PATCH v3 3/6] power: add simple power management API and callback

2020-09-14 Thread Liang, Ma
Hi Stephen, v4 will support 1 port with multiple core(still 1 queue per core)support this part description will be updated according to the design change. Regards Liang > The common way to express is this is: > > This API is not thread-safe and not preempt-safe. > There is also no mechan

Re: [dpdk-dev] [PATCH v3 3/6] power: add simple power management API and callback

2020-09-14 Thread Liang, Ma
On 04 Sep 11:33, Ananyev, Konstantin wrote: > > +struct rte_eth_dev *dev = &rte_eth_devices[port_id]; > > + > > +if (unlikely(nb_rx == 0)) { > > +dev->empty_poll_stats[qidx].num++; > Hi Konstantin, Agree, v4 will relocate the meta data to seperate structure. and without touch the rte_ethde

Re: [dpdk-dev] [PATCH v3 2/6] ethdev: add simple power management API

2020-09-14 Thread Liang, Ma
agree, will be addressed On 04 Sep 09:37, Stephen Hemminger wrote: > On Fri, 4 Sep 2020 11:18:56 +0100 > Liang Ma wrote: > > > > > +#define ETH_EMPTYPOLL_MAX 512 /**< Empty poll number threshlold */ > > Spelling here. > > Also, shouldn&

Re: [dpdk-dev] [PATCH v3 1/6] eal: add power management intrinsics

2020-09-14 Thread Liang, Ma
On 04 Sep 11:42, Stephen Hemminger wrote: we are very open to discuss design with other vendor. > Before this is merged, please work with Arm maintainers to have a version that > works on Arm 64 as well. Don't think this should be merged unless the two > major > platforms supported by DPDK can w

Re: [dpdk-dev] [PATCH v3 1/6] eal: add power management intrinsics

2020-09-16 Thread Liang, Ma
On 04 Sep 11:42, Stephen Hemminger wrote: we have discussed with arm developer in the past. Please ref https://patches.dpdk.org/patch/70662/ There was no objection, in my opinoin. Also the API we proposed has experimental tag, other vendor still can change it. For the ethdev internal ops we int

Re: [dpdk-dev] [PATCH v3 3/6] power: add simple power management API and callback

2020-09-16 Thread Liang, Ma
On 16 Sep 07:53, Ananyev, Konstantin wrote: Yes. we only has two gear. min or max. However, user still can customize their system max with power mgmt python script on Intel platform. > So rte_power_init(lcore) always raises lcore frequency to > max possible value? > > > > > > > > +rte_eth_remove

Re: About DPDK l3fwd

2024-12-03 Thread Liang Ma
On Fri, Nov 22, 2024 at 09:45:58AM +, 王颢 wrote: > Dear all, > > I have noticed that the performance reports on the official DPDK website > predominantly use l3fwd, while we typically utilize pktgen. Out of curiosity, > I attempted to replicate the experiments from the performance reports. >

<    1   2   3