[PATCH] maintainers: volunteer to maintain power library

2023-10-22 Thread Sivaprasad Tummala
Add co-maintainer for power library. Signed-off-by: Sivaprasad Tummala --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4083658697..d4d7546eb6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1668,6 +1668,7 @@ F: lib/pci/ Power management M

[PATCH] config: compiler support check for machine arch flags

2023-10-25 Thread Sivaprasad Tummala
Signed-off-by: Sivaprasad Tummala --- config/meson.build | 5 + 1 file changed, 5 insertions(+) diff --git a/config/meson.build b/config/meson.build index d56b0f9bce..e776870def 100644 --- a/config/meson.build +++ b/config/meson.build @@ -159,8 +159,13 @@ if not is_ms_compil

[PATCH] examples/l3fwd-power: fix to configure the uncore env

2023-10-26 Thread Sivaprasad Tummala
") Cc: karen.ke...@intel.com Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-power/main.c | 6 ++ lib/power/rte_power_uncore.c | 7 +++ lib/power/rte_power_uncore.h | 9 + 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fw

[PATCH v2] config: verify machine arch flag

2023-10-26 Thread Sivaprasad Tummala
Signed-off-by: Sivaprasad Tummala Acked-by: Bruce Richardson --- v2: - fix build issues on arm platforms --- config/meson.build | 10 ++ 1 file changed, 10 insertions(+) diff --git a/config/meson.build b/config/meson.build index d56b0f9bce..bd0918bb62 100644 --- a/config/meson.build ++

[PATCH] eal/x86: add vendor ID checks for specific implementation

2023-11-08 Thread Sivaprasad Tummala
Current get_tsc_freq_arch() implementation is specific for Intel processors. Added vendor checks to gracefully return on AMD EPYC processors. Signed-off-by: Sivaprasad Tummala --- lib/eal/x86/rte_cycles.c | 16 1 file changed, 16 insertions(+) diff --git a/lib/eal/x86

[PATCH] config/x86: config support for AMD EPYC processors

2023-09-25 Thread Sivaprasad Tummala
From: Sivaprasad Tummala By default, max lcores are limited to 128 for x86 platforms. On AMD EPYC processors, this limit needs to be increased to leverage all the cores. The patch adjusts the limit specifically for native compilation on AMD EPYC CPUs. Signed-off-by: Sivaprasad Tummala

[PATCH v2] power: support amd-pstate cpufreq driver

2023-09-26 Thread Sivaprasad Tummala
amd-pstate introduces a new CPU frequency control mechanism for AMD EPYC processors using the ACPI Collaborative Performance Power Control feature for a finer grained frequency management. Patch to add support for amd-pstate driver. Signed-off-by: Sivaprasad Tummala v2: 1. error logged when

[PATCH v3] power: support amd-pstate cpufreq driver

2023-10-09 Thread Sivaprasad Tummala
amd-pstate introduces a new CPU frequency control mechanism for AMD EPYC processors using the ACPI Collaborative Performance Power Control feature for a finer grained frequency management. Patch to add support for amd-pstate driver. Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov

[PATCH v6 1/3] eal: add x86 cpuid support for monitorx

2023-10-09 Thread Sivaprasad Tummala
Add a new CPUID flag to indicate support for monitorx instruction on AMD EPYC processors. Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov --- lib/eal/x86/include/rte_cpuflags.h | 1 + lib/eal/x86/rte_cpuflags.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/eal

[PATCH v6 2/3] eal: removed unnecessary checks in x86 power monitor APIs

2023-10-09 Thread Sivaprasad Tummala
current x86 power monitor implementation fails on platforms with only monitor supported and not power_pause. Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov --- lib/eal/x86/rte_power_intrinsics.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/eal/x86

[PATCH v6 3/3] power: amd power monitor support

2023-10-09 Thread Sivaprasad Tummala
mwaitx allows EPYC processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov --- lib/eal/x86/rte_power_intrinsics.c | 108

[PATCH v3] power: support amd-pstate cpufreq driver

2023-10-09 Thread Sivaprasad Tummala
amd-pstate introduces a new CPU frequency control mechanism for AMD EPYC processors using the ACPI Collaborative Performance Power Control feature for a finer grained frequency management. Patch to add support for amd-pstate driver. Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov

[PATCH v1 1/6] eventdev: add power monitoring API on event port

2023-10-16 Thread Sivaprasad Tummala
A new API to allow power monitoring condition on event port to optimize power when no events are arriving on an event port for the worker core to process in an eventdev based pipelined application. Signed-off-by: Sivaprasad Tummala --- lib/eventdev/eventdev_pmd.h | 22

[PATCH v1 2/6] event/sw: support power monitor

2023-10-16 Thread Sivaprasad Tummala
Currently sw eventdev pmd does not support ``rte_power_monitor`` api. This patch adds support by adding monitor callback that is called whenever we enter sleep state and need to check if it is time to wake up. Signed-off-by: Sivaprasad Tummala --- drivers/event/sw/sw_evdev.c| 1

[PATCH v1 4/6] event/sw: support optional dequeue callbacks

2023-10-16 Thread Sivaprasad Tummala
This patch adds support for an event dequeue callbacks when configured to allow additional processing, power management (frequency scaling, monitor/sleep etc.,) and soon. Signed-off-by: Sivaprasad Tummala --- config/rte_config.h| 3 +++ drivers/event/sw/sw_evdev_worker.c | 5

[PATCH v1 3/6] eventdev: support optional dequeue callbacks

2023-10-16 Thread Sivaprasad Tummala
to the application. Signed-off-by: Sivaprasad Tummala --- lib/eventdev/eventdev_pmd.h | 38 +++ lib/eventdev/eventdev_private.c | 2 + lib/eventdev/rte_eventdev.c | 107 +++ lib/eventdev/rte_eventdev.h | 95 +++ lib

[PATCH v1 5/6] power: add eventdev support for power management

2023-10-16 Thread Sivaprasad Tummala
-off-by: Sivaprasad Tummala --- lib/power/meson.build | 2 +- lib/power/rte_power_pmd_mgmt.c | 226 + lib/power/rte_power_pmd_mgmt.h | 55 lib/power/version.map | 4 + 4 files changed, 286 insertions(+), 1 deletion(-) diff --git a/lib

[PATCH v1 6/6] examples/eventdev_p: add eventdev power management

2023-10-16 Thread Sivaprasad Tummala
orts. Signed-off-by: Sivaprasad Tummala --- .../sample_app_ug/eventdev_pipeline.rst | 3 +- examples/eventdev_pipeline/main.c | 64 ++- examples/eventdev_pipeline/pipeline_common.h | 1 + .../pipeline_worker_generic.c | 1 + 4 files changed,

[PATCH] doc: announce deprecation of RTE_CPUFLAG_NUMFLAGS

2023-07-12 Thread Sivaprasad Tummala
To allow new cpu features to be added without ABI breakage, RTE_CPUFLAG_NUMFLAGS will be removed in DPDK 23.11 release. Signed-off-by: Sivaprasad Tummala --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc

[PATCH] doc: deprecation notice to add callback data to rte_event_fp_ops

2023-07-12 Thread Sivaprasad Tummala
Deprecation notice to add "rte_eventdev_port_data" field to ``rte_event_fp_ops`` for callback support. Signed-off-by: Sivaprasad Tummala --- doc/guides/rel_notes/deprecation.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides

[PATCH v1] doc: deprecation notice to add callback data to rte_event_fp_ops

2023-07-17 Thread Sivaprasad Tummala
Deprecation notice to add "rte_eventdev_port_data" field to ``rte_event_fp_ops`` for callback support. Signed-off-by: Sivaprasad Tummala --- doc/guides/rel_notes/deprecation.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/

[PATCH 2/2] test/cpuflags: remove RTE_CPUFLAG_NUMFLAGS

2023-08-02 Thread Sivaprasad Tummala
This patch removes RTE_CPUFLAG_NUMFLAGS to allow new CPU features without breaking ABI each time. Signed-off-by: Sivaprasad Tummala --- app/test/test_cpuflags.c | 9 - 1 file changed, 9 deletions(-) diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index a0e342ae48

[PATCH 1/2] eal: remove RTE_CPUFLAG_NUMFLAGS

2023-08-02 Thread Sivaprasad Tummala
This patch removes RTE_CPUFLAG_NUMFLAGS to allow new CPU features without breaking ABI each time. Signed-off-by: Sivaprasad Tummala --- lib/eal/arm/include/rte_cpuflags_32.h| 1 - lib/eal/arm/include/rte_cpuflags_64.h| 1 - lib/eal/arm/rte_cpuflags.c | 7 +-- lib/eal

[PATCH v2 2/2] eal: remove NUMFLAGS enumeration

2023-08-10 Thread Sivaprasad Tummala
This patch removes RTE_CPUFLAG_NUMFLAGS to allow new CPU features without breaking ABI each time. Signed-off-by: Sivaprasad Tummala --- lib/eal/arm/include/rte_cpuflags_32.h| 1 - lib/eal/arm/include/rte_cpuflags_64.h| 1 - lib/eal/arm/rte_cpuflags.c | 7 +-- lib/eal

[PATCH v2 1/2] test/cpuflags: removed test for NUMFLAGS

2023-08-10 Thread Sivaprasad Tummala
This patch removes RTE_CPUFLAG_NUMFLAGS to allow new CPU features without breaking ABI each time. Signed-off-by: Sivaprasad Tummala --- app/test/test_cpuflags.c | 9 - 1 file changed, 9 deletions(-) diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index a0e342ae48

[PATCH v1 1/2] power: refactor uncore power management interfaces

2023-08-11 Thread Sivaprasad Tummala
currently the uncore power management implementation is vendor specific. Added new vendor agnostic uncore power interface similar to rte_power and rename specific implementations ("rte_power_intel_uncore") to "power_intel_uncore" along with functions. Signed-off-by: Sivapras

[PATCH v1 2/2] power: refactor uncore power management implementation

2023-08-11 Thread Sivaprasad Tummala
currently the uncore power management implementation is vendor specific. Added new vendor agnostic uncore power management implementation similar to rte_power and rename specific implementations ("rte_power_intel_uncore") to "power_intel_uncore" along with functions. Signe

[PATCH v2 1/2] power: refactor uncore power management interfaces

2023-08-16 Thread Sivaprasad Tummala
currently the uncore power management implementation is vendor specific. Added new vendor agnostic uncore power interface similar to rte_power and rename specific implementations ("rte_power_intel_uncore") to "power_intel_uncore" along with functions. Signed-off-by: Sivapras

[PATCH v2 2/2] power: refactor uncore power management implementation

2023-08-16 Thread Sivaprasad Tummala
currently the uncore power management implementation is vendor specific. Added new vendor agnostic uncore power management implementation similar to rte_power and rename specific implementations ("rte_power_intel_uncore") to "power_intel_uncore" along with functions. Signe

[PATCH v5 1/3] eal: add x86 cpuid support for monitorx

2023-08-16 Thread Sivaprasad Tummala
Add a new CPUID flag to indicate support for monitorx instruction on AMD EPYC processors. Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov --- Depends-on: series-29173 ("test/cpuflags: removed test for NUMFLAGS") --- lib/eal/x86/include/rte_cpuflags.h | 2 +- l

[PATCH v5 2/3] eal: removed unnecessary checks in x86 power monitor APIs

2023-08-16 Thread Sivaprasad Tummala
current x86 power monitor implementation fails on platforms with only monitor supported and not power_pause. Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov --- lib/eal/x86/rte_power_intrinsics.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/eal/x86

[PATCH v5 3/3] power: amd power monitor support

2023-08-16 Thread Sivaprasad Tummala
mwaitx allows EPYC processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov --- lib/eal/x86/rte_power_intrinsics.c | 77

[PATCH v2] eal/x86: add AMD vendor check to choose TSC calibration

2023-11-22 Thread Sivaprasad Tummala
AMD Epyc processors doesn't support get_tsc_freq_arch(). The patch allows graceful return to allow fallback to alternate TSC calibration. Fixes: 3dbc565e81a0 ("timer: honor arch-specific TSC frequency query") Cc: jerin.ja...@caviumnetworks.com Cc: sta...@dpdk.org Signed-off

[PATCH 1/6] examples/l3fwd: fix lcore ID restriction

2023-12-17 Thread Sivaprasad Tummala
Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch allows config options based on DPDK config. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/l3fwd/m

[PATCH 2/6] examples/l3fwd-power: fix lcore ID restriction

2023-12-17 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-power/main.c | 12 +++- examples/l3fwd-power/main.h | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index f4adcf41b5..1f0ac3e660 100644 --- a/exam

[PATCH 3/6] examples/l3fwd-graph: fix lcore ID restriction

2023-12-17 Thread Sivaprasad Tummala
rg Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-graph/main.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index 96cb1c81ff..149677a3cc 100644 --- a/examples/l3fwd-graph/main.c +++ b/examples/l

[PATCH 5/6] examples/qos_sched: fix lcore ID restriction

2023-12-17 Thread Sivaprasad Tummala
Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch allows config options based on DPDK config. Fixes: de3cfa2c9823 ("sched: initial import") Cc: sta...@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/qos_sc

[PATCH 4/6] examples/ipsec-secgw: fix lcore ID restriction

2023-12-17 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/ipsec-secgw/event_helper.h | 2 +- examples/ipsec-secgw/ipsec-secgw.c | 12 +++- examples/ipsec-secgw/ipsec.c| 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/examples/ipsec-secgw/event_helper.h

[PATCH 6/6] examples/vm_power_manager: fix lcore ID restriction

2023-12-17 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_gue

[PATCH v2 0/6] fix lcore ID restriction

2023-12-18 Thread Sivaprasad Tummala
With modern CPUs, it is possible to have higher CPU count thus we can have higher RTE_MAX_LCORES. In DPDK sample applications, the current config lcore options are hard limited to 255. The patchset fixes these constraints by allowing all lcore IDs up to RTE_MAX_LCORES. Sivaprasad Tummala (6

[PATCH v2 1/6] examples/l3fwd: fix lcore ID restriction

2023-12-18 Thread Sivaprasad Tummala
Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch allows config options based on DPDK config. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/l3fwd/m

[PATCH v2 2/6] examples/l3fwd-power: fix lcore ID restriction

2023-12-18 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-power/main.c | 16 +--- examples/l3fwd-power/main.h | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index f4adcf41b5..bb9da36455 100644 ---

[PATCH v2 3/6] examples/l3fwd-graph: fix lcore ID restriction

2023-12-18 Thread Sivaprasad Tummala
rg Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-graph/main.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index 96cb1c81ff..6d3116aa7b 100644 --- a/examples/l3fwd-graph/main.c +++ b/examples/l

[PATCH v2 5/6] examples/qos_sched: fix lcore ID restriction

2023-12-18 Thread Sivaprasad Tummala
Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch allows config options based on DPDK config. Fixes: de3cfa2c9823 ("sched: initial import") Cc: sta...@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/qos_sc

[PATCH v2 4/6] examples/ipsec-secgw: fix lcore ID restriction

2023-12-18 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/ipsec-secgw/event_helper.h | 2 +- examples/ipsec-secgw/ipsec-secgw.c | 16 +--- examples/ipsec-secgw/ipsec.c| 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/examples/ipsec-secgw/event_h

[PATCH v2 6/6] examples/vm_power_manager: fix lcore ID restriction

2023-12-18 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_gue

[PATCH v2 0/6] fix lcore ID restriction

2023-12-18 Thread Sivaprasad Tummala
With modern CPUs, it is possible to have higher CPU count thus we can have higher RTE_MAX_LCORES. In DPDK sample applications, the current config lcore options are hard limited to 255. The patchset fixes these constraints by allowing all lcore IDs up to RTE_MAX_LCORES. Sivaprasad Tummala (6

[PATCH v3 0/6] fix lcore ID restriction

2023-12-19 Thread Sivaprasad Tummala
With modern CPUs, it is possible to have higher CPU count thus we can have higher RTE_MAX_LCORES. In DPDK sample applications, the current config lcore options are hard limited to 255. The patchset fixes these constraints by allowing all lcore IDs up to RTE_MAX_LCORES. Sivaprasad Tummala (6

[PATCH v3 1/6] examples/l3fwd: fix lcore ID restriction

2023-12-19 Thread Sivaprasad Tummala
Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch allows config options based on DPDK config. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Sivaprasad Tummala Acked-by: Konstant

[PATCH v3 2/6] examples/l3fwd-power: fix lcore ID restriction

2023-12-19 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-power/main.c | 57 examples/l3fwd-power/main.h | 4 +-- examples/l3fwd-power/perf_core.c | 10 +++--- 3 files changed, 35 insertions(+), 36 deletions(-) diff --git a/examples/l3fwd-powe

[PATCH v3 3/6] examples/l3fwd-graph: fix lcore ID restriction

2023-12-19 Thread Sivaprasad Tummala
rg Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-graph/main.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index 96cb1c81ff..ffb6900fee 100644 --- a/examples/l3fwd-graph/ma

[PATCH v3 4/6] examples/ipsec-secgw: fix lcore ID restriction

2023-12-19 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala Acked-by: Konstantin Ananyev --- examples/ipsec-secgw/event_helper.h | 2 +- examples/ipsec-secgw/ipsec-secgw.c | 32 ++--- examples/ipsec-secgw/ipsec.c| 2 +- examples/ipsec-secgw/ipsec.h| 2 +- examples/i

[PATCH v3 5/6] examples/qos_sched: fix lcore ID restriction

2023-12-19 Thread Sivaprasad Tummala
Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch allows config options based on DPDK config. Fixes: de3cfa2c9823 ("sched: initial import") Cc: sta...@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/qos_sc

[PATCH v3 6/6] examples/vm_power_manager: fix lcore ID restriction

2023-12-19 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_gue

[PATCH v3 0/6] fix lcore ID restriction

2023-12-19 Thread Sivaprasad Tummala
With modern CPUs, it is possible to have higher CPU count thus we can have higher RTE_MAX_LCORES. In DPDK sample applications, the current config lcore options are hard limited to 255. The patchset fixes these constraints by allowing all lcore IDs up to RTE_MAX_LCORES. Sivaprasad Tummala (6

[PATCH] config/x86: config support for AMD EPYC processors

2023-12-19 Thread Sivaprasad Tummala
adjusts the limit for specific AMD EPYC target/cross builds. Signed-off-by: Sivaprasad Tummala --- config/x86/meson.build | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/x86/meson.build b/config/x86/meson.build index 5355731cef..f2df4c2003 100644 --- a/config/x86

[PATCH v2] config/x86: config support for AMD EPYC processors

2023-12-20 Thread Sivaprasad Tummala
adjusts the limit for specific AMD EPYC target/cross builds. Signed-off-by: Sivaprasad Tummala Acked-by: Morten Brørup --- config/x86/meson.build | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/x86/meson.build b/config/x86/meson.build index 5355731cef..8087b9ae91

[PATCH v4 0/6] fix lcore ID restriction

2024-01-16 Thread Sivaprasad Tummala
with queue_id type in ipsec-secgw v3: - updated queue_id type to uint16_t v2: - fixed typo with lcore_id type in l3fwd Sivaprasad Tummala (6): examples/l3fwd: fix lcore ID restriction examples/l3fwd-power: fix lcore ID restriction examples/l3fwd-graph: fix lcore ID restriction

[PATCH v4 1/6] examples/l3fwd: fix lcore ID restriction

2024-01-16 Thread Sivaprasad Tummala
Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch allows config options based on DPDK config. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Sivaprasad Tummala Acked-by: Konstant

[PATCH v4 3/6] examples/l3fwd-graph: fix lcore ID restriction

2024-01-16 Thread Sivaprasad Tummala
rg Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-graph/main.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index 96cb1c81ff..ffb6900fee 100644 --- a/examples/l3fwd-graph/ma

[PATCH v4 2/6] examples/l3fwd-power: fix lcore ID restriction

2024-01-16 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/l3fwd-power/main.c | 57 examples/l3fwd-power/main.h | 4 +-- examples/l3fwd-power/perf_core.c | 10 +++--- 3 files changed, 35 insertions(+), 36 deletions(-) diff --git a/examples/l3fwd-powe

[PATCH v4 4/6] examples/ipsec-secgw: fix lcore ID restriction

2024-01-16 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala Acked-by: Konstantin Ananyev --- examples/ipsec-secgw/event_helper.h | 2 +- examples/ipsec-secgw/ipsec-secgw.c | 34 ++--- examples/ipsec-secgw/ipsec.c| 2 +- examples/ipsec-secgw/ipsec.h| 2 +- examples/i

[PATCH v4 5/6] examples/qos_sched: fix lcore ID restriction

2024-01-16 Thread Sivaprasad Tummala
Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch allows config options based on DPDK config. Fixes: de3cfa2c9823 ("sched: initial import") Cc: sta...@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/qos_sc

[PATCH v4 6/6] examples/vm_power_manager: fix lcore ID restriction

2024-01-16 Thread Sivaprasad Tummala
.@dpdk.org Signed-off-by: Sivaprasad Tummala --- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_gue

[PATCH v4 0/6] fix lcore ID restriction

2024-01-16 Thread Sivaprasad Tummala
with queue_id type in ipsec-secgw v3: - updated queue_id type to uint16_t v2: - fixed typo with lcore_id type in l3fwd Sivaprasad Tummala (6): examples/l3fwd: fix lcore ID restriction examples/l3fwd-power: fix lcore ID restriction examples/l3fwd-graph: fix lcore ID restriction

[PATCH] power: amd power monitor support

2023-04-09 Thread Sivaprasad Tummala
mwaitx allows epyc processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Signed-off-by: Sivaprasad Tummala --- lib/eal/include/generic/rte_cpuflags.h | 2 + lib/eal/x86/include

[PATCH v1] power: amd power monitor support

2023-04-10 Thread Sivaprasad Tummala
mwaitx allows epyc processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Signed-off-by: Sivaprasad Tummala --- lib/eal/include/generic/rte_cpuflags.h | 2 + lib/eal/x86/include

[PATCH v1] power: support amd-pstate cpufreq driver

2023-04-12 Thread Sivaprasad Tummala
amd-pstate introduces a new CPU frequency control mechanism for AMD processors using the ACPI Collaborative Performance Power Control feature for a finer grained frequency management. Patch to add support for amd-pstate driver. Signed-off-by: Sivaprasad Tummala --- app/test/test_power.c

[PATCH v2 1/3] eal: add x86 cpuid support for monitorx

2023-04-13 Thread Sivaprasad Tummala
Add a new CPUID flag to indicate support for monitorx instruction on AMD Epyc processors. Signed-off-by: Sivaprasad Tummala --- lib/eal/include/generic/rte_cpuflags.h | 2 ++ lib/eal/x86/include/rte_cpuflags.h | 1 + lib/eal/x86/rte_cpuflags.c | 3 +++ 3 files changed, 6

[PATCH v2 3/3] power: amd power monitor support

2023-04-13 Thread Sivaprasad Tummala
mwaitx allows epyc processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Signed-off-by: Sivaprasad Tummala --- lib/eal/x86/rte_power_intrinsics.c | 83 -- lib

[PATCH v2 2/3] doc: announce new cpu flag added to rte_cpu_flag_t

2023-04-13 Thread Sivaprasad Tummala
A new flag RTE_CPUFLAG_MONITORX is added to rte_cpu_flag_t in DPDK 23.07 release to support monitorx instruction on Epyc processors. This results in ABI breakage for legacy apps. Signed-off-by: Sivaprasad Tummala --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions

[PATCH v3 1/4] doc: announce new cpu flag added to rte_cpu_flag_t

2023-04-16 Thread Sivaprasad Tummala
A new flag RTE_CPUFLAG_MONITORX is added to rte_cpu_flag_t in DPDK 23.07 release to support monitorx instruction on EPYC processors. This results in ABI breakage for legacy apps. Signed-off-by: Sivaprasad Tummala --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions

[PATCH v3 2/4] eal: add x86 cpuid support for monitorx

2023-04-16 Thread Sivaprasad Tummala
Add a new CPUID flag to indicate support for monitorx instruction on AMD EPYC processors. Signed-off-by: Sivaprasad Tummala --- lib/eal/x86/include/rte_cpuflags.h | 1 + lib/eal/x86/rte_cpuflags.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/eal/x86/include/rte_cpuflags.h

[PATCH v3 3/4] eal: removed unnecessary checks in x86 power monitor APIs

2023-04-16 Thread Sivaprasad Tummala
current x86 power monitor implementation fails on platforms with only monitor supported and not power_pause. Signed-off-by: Sivaprasad Tummala --- lib/eal/x86/rte_power_intrinsics.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/eal/x86/rte_power_intrinsics.c b

[PATCH v3 4/4] power: amd power monitor support

2023-04-16 Thread Sivaprasad Tummala
mwaitx allows EPYC processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Signed-off-by: Sivaprasad Tummala --- lib/eal/x86/rte_power_intrinsics.c | 77 +- 1

[PATCH v4 0/4] power: monitor support for AMD EPYC processors

2023-04-18 Thread Sivaprasad Tummala
mwaitx allows EPYC processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Sivaprasad Tummala (4): doc: announce new cpu flag added to rte_cpu_flag_t eal: add x86 cpuid support for

[PATCH v4 0/4] power: monitor support for AMD EPYC processors

2023-04-18 Thread Sivaprasad Tummala
mwaitx allows EPYC processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Sivaprasad Tummala (4): doc: announce new cpu flag added to rte_cpu_flag_t eal: add x86 cpuid support for

[PATCH v4 2/4] eal: add x86 cpuid support for monitorx

2023-04-18 Thread Sivaprasad Tummala
Add a new CPUID flag to indicate support for monitorx instruction on AMD EPYC processors. Signed-off-by: Sivaprasad Tummala --- lib/eal/x86/include/rte_cpuflags.h | 1 + lib/eal/x86/rte_cpuflags.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/eal/x86/include/rte_cpuflags.h

[PATCH v4 3/4] eal: removed unnecessary checks in x86 power monitor APIs

2023-04-18 Thread Sivaprasad Tummala
current x86 power monitor implementation fails on platforms with only monitor supported and not power_pause. Signed-off-by: Sivaprasad Tummala --- lib/eal/x86/rte_power_intrinsics.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/eal/x86/rte_power_intrinsics.c b

[PATCH v4 1/4] doc: announce new cpu flag added to rte_cpu_flag_t

2023-04-18 Thread Sivaprasad Tummala
A new flag RTE_CPUFLAG_MONITORX is added to rte_cpu_flag_t in DPDK 23.07 release to support monitorx instruction on EPYC processors. This results in ABI breakage for legacy apps. Signed-off-by: Sivaprasad Tummala --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions

[PATCH v4 4/4] power: amd power monitor support

2023-04-18 Thread Sivaprasad Tummala
mwaitx allows EPYC processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Signed-off-by: Sivaprasad Tummala --- lib/eal/x86/rte_power_intrinsics.c | 77 +- 1

[PATCH] eventdev: fix alignment padding

2023-04-18 Thread Sivaprasad Tummala
fixed the padding required to align to cacheline size. Fixes: 54f17843a887 ("eventdev: add port maintenance API") Cc: mattias.ronnb...@ericsson.com Signed-off-by: Sivaprasad Tummala --- lib/eventdev/rte_eventdev_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[RFC PATCH 1/5] eventdev: add power monitoring API on event port

2023-04-19 Thread Sivaprasad Tummala
A new API to allow power monitoring condition on event port to optimize power when no events are arriving on an event port for the worker core to process in an eventdev based pipelined application. Signed-off-by: Sivaprasad Tummala --- lib/eventdev/eventdev_pmd.h | 23

[RFC PATCH 2/5] event/sw: support power monitor

2023-04-19 Thread Sivaprasad Tummala
Currently sw eventdev pmd does not support ``rte_power_monitor`` api. This patch adds support by adding monitor callback that is called whenever we enter sleep state and need to check if it is time to wake up. Signed-off-by: Sivaprasad Tummala --- drivers/event/sw/sw_evdev.c| 2

[RFC PATCH 3/5] eventdev: support optional dequeue callbacks

2023-04-19 Thread Sivaprasad Tummala
the application. Signed-off-by: Sivaprasad Tummala --- lib/eventdev/eventdev_pmd.h | 17 lib/eventdev/eventdev_private.c | 17 lib/eventdev/rte_eventdev.c | 78 + lib/eventdev/rte_eventdev.h | 145 ++- lib/eventdev

[RFC PATCH 4/5] power: add eventdev support for power management

2023-04-19 Thread Sivaprasad Tummala
-off-by: Sivaprasad Tummala --- lib/power/meson.build | 2 +- lib/power/rte_power_pmd_mgmt.c | 226 + lib/power/rte_power_pmd_mgmt.h | 55 lib/power/version.map | 4 + 4 files changed, 286 insertions(+), 1 deletion(-) diff --git a/lib

[RFC PATCH 5/5] examples/eventdev_p: add eventdev power management

2023-04-19 Thread Sivaprasad Tummala
From: Sivaprasad Tummala Add power management feature support to eventdev_pipeline sample app. Signed-off-by: Sivaprasad Tummala --- examples/eventdev_pipeline/main.c | 15 ++- examples/eventdev_pipeline/pipeline_common.h | 1 + .../eventdev_pipeline

[RFC PATCH] power: refactor uncore power management interfaces

2023-05-03 Thread Sivaprasad Tummala
From: Sivaprasad Tummala currently the uncore power management implementation is vendor specific. Added new vendor agnostic uncore power interface similar to rte_power and subsequently will rename specific implementations ("rte_power_intel_uncore") to "power_intel_uncore"

[PATCH] dma/skeleton: support multiple instances

2022-03-28 Thread Sivaprasad Tummala
dpdk app can support multiple hardware dma instances. with dma skeleton, only a single instance can be configured. This patch supports multiple driver instances per device. Signed-off-by: Sivaprasad Tummala --- drivers/dma/skeleton/skeleton_dmadev.c | 41 +++--- 1 file

[PATCH] dma/skeleton: support multiple instances

2022-03-28 Thread Sivaprasad Tummala
dpdk app can support multiple hardware dma instances. with dma skeleton, only a single instance can be configured. This patch supports multiple driver instances per device. Signed-off-by: Sivaprasad Tummala --- drivers/dma/skeleton/skeleton_dmadev.c | 37 +++--- 1 file

[dpdk-dev] [PATCH v1] vhost: fix mbuf allocation failures

2020-04-28 Thread Sivaprasad Tummala
. Signed-off-by: Sivaprasad Tummala --- lib/librte_vhost/virtio_net.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 37c47c7dc..b0d3a85c2 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib

[dpdk-dev] [PATCH v2] vhost: fix mbuf alloc failure

2020-05-04 Thread Sivaprasad Tummala
: c3ff0ac70acb ("vhost: improve performance by supporting large buffer") Cc: sta...@dpdk.org Cc: f...@sysclose.org --- v2: * fixed review comments - Maxime Coquelin * fixed mbuf alloc errors for packed virtqueues - Maxime Coquelin * fixed mbuf copy errors - Flavio Leitner Signed-off-by:

[dpdk-dev] [PATCH v3] vhost: fix mbuf allocation failures

2020-05-08 Thread Sivaprasad Tummala
opy errors - Flavio Leitner Signed-off-by: Sivaprasad Tummala --- lib/librte_vhost/virtio_net.c | 70 +++ 1 file changed, 55 insertions(+), 15 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 1fc30c681..a85d77897 100644

[dpdk-dev] [PATCH v1] examples/l2fwd: add check for promiscuous no support

2020-02-26 Thread Sivaprasad Tummala
l2fwd application exits, if return for rte_eth_promiscuous_enable is not success. But for vHost PMD, promiscuous enable returns "Not Supported". This patch validates success and no support of promiscuous enable. Signed-off-by: Sivaprasad Tummala --- examples/l2fwd/main.c | 2 +- 1 fi

[dpdk-dev] [PATCH v1] net/vhost: add config option for linear and extbuf

2020-02-26 Thread Sivaprasad Tummala
Added vHost PMD arguments 'linear-buffer' and 'ext-buffer' to configure 'RTE_VHOST_USER_LINEARBUF_SUPPORT' and 'RTE_VHOST_USER_EXTBUF_SUPPORT' flags in the vhost library Signed-off-by: Sivaprasad Tummala --- doc/guides/nics/vhost.rst | 10 +

[dpdk-dev] [DPDK v1] examples/vhost: add vhostpmd support

2020-03-10 Thread Sivaprasad Tummala
supported and additional features such as queue stats for vhost devices can be useful. With the patch, user has an option to select vHost PMD by passing "--use-vhost-pmd" option. Disabled by default. Note: vHost multi-queue is not enabled on this patch. Signed-off-by: Sivaprasad Tummala

[dpdk-dev] [PATCH v1] vhost: dequeue zero copy with linear buffers

2020-03-26 Thread Sivaprasad Tummala
Removed the linear buffer and zero_copy compatibility restriction. Applications that requires packets contained in a single buffer will enable linear buffer in vhost library. This restriction is not allowing zero_copy mode for such cases. Signed-off-by: Sivaprasad Tummala --- lib/librte_vhost

[dpdk-dev] [PATCH v2] examples/vhost: add vhostpmd support

2020-03-31 Thread Sivaprasad Tummala
supported and additional features such as queue stats for vhost devices can be useful. With the patch, user has an option to select vHost PMD by passing "--use-vhost-pmd" option. Disabled by default. Note: vHost multi-queue is not enabled on this patch. Signed-off-by: Sivaprasad Tummala

[dpdk-dev] [PATCH v3] examples/vhost: add vhostpmd support

2020-03-31 Thread Sivaprasad Tummala
supported and additional features such as queue stats for vhost devices can be useful. With the patch, user has an option to select vHost PMD by passing "--use-vhost-pmd" option. Disabled by default. Note: vHost multi-queue is not enabled on this patch. Signed-off-by: Sivapras

[dpdk-dev] [PATCH v4] examples/vhost: add vhostpmd support

2020-04-01 Thread Sivaprasad Tummala
supported and additional features such as queue stats for vhost devices can be useful. With the patch, user has an option to select vHost PMD by passing "--use-vhost-pmd" option. Disabled by default. Note: vHost multi-queue is not enabled on this patch. Signed-off-by: Sivapras

  1   2   >