From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 79F98A00BE; Tue, 19 Apr 2022 13:25:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76CA741141; Tue, 19 Apr 2022 13:25:23 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 402DF40687 for ; Tue, 19 Apr 2022 13:25:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650367521; x=1681903521; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oz3qkQqpNlbbilCsvUlsLEOmpb3RlG3NhEA8a/xnmRw=; b=GPTiXdOPkv13sicoH2braRGD0eSTILTq4LixdfXIeTJuUgAu1HHGyq83 rFmpKgr9S45Ah+d2JCeXgLuOFCqcQEOQNjKMG84PNUaBKnISnZFnf0s1E 6Xl30UF3JOtkOL7XHKn5docX9hE9EM3WScmOLMHNaFnp30FTV1wUhvCBL QGCr/fK0qOhDHVNa13vJIz5aba4AUTHOGnPPtNmmQ8jfzcEo6xBRJ/PVN Vjgl7RYWeSjOFJbt60qJDVk9nH/HA4e7uyi7ksF3bC3PY/sjKsNFgoIxQ O+7T8WxcKmnE2kHFGMzzqa5mvmIUOUB8amZ2yzzV5ISF8TLsK+tVUaI2h A==; X-IronPort-AV: E=McAfee;i="6400,9594,10321"; a="262600081" X-IronPort-AV: E=Sophos;i="5.90,272,1643702400"; d="scan'208";a="262600081" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 04:25:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,272,1643702400"; d="scan'208";a="727032497" Received: from silpixa00401122.ir.intel.com ([10.55.128.10]) by orsmga005.jf.intel.com with ESMTP; 19 Apr 2022 04:25:07 -0700 From: Kevin Laatz To: dev@dpdk.org Cc: Kevin Laatz Subject: [PATCH v2 0/4] Add APIs for configurable power options Date: Tue, 19 Apr 2022 12:24:57 +0100 Message-Id: <20220419112501.1835458-1-kevin.laatz@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220408140847.1319312-1-kevin.laatz@intel.com> References: <20220408140847.1319312-1-kevin.laatz@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The power library contains some variables which are currently set by defines, hard-coded values or set using sysfs values. In order to configure these, code changes and recompiles are required, making configuring these variables tedious. This patchset introduces some new get/set APIs which allow users and applications to configure there settings to suit their use-cases. In addition, CLI options have been added to l3fwd_power to demonstrate how an application could use these APIs to expose the options to users without needing code changes to configure them. --- v2: * add doc update for l3fwd-power * order version.map additions alphabetically Kevin Laatz (4): lib/power: add get and set API for emptypoll max lib/power: add get and set API for pause duration lib/power: add get and set API for scaling freq min and max with pstate mode examples/l3fwd_power: add cli for configurable options .../sample_app_ug/l3_forward_power_man.rst | 8 + examples/l3fwd-power/main.c | 75 +++++++++- lib/power/power_pstate_cpufreq.c | 22 ++- lib/power/rte_power_pmd_mgmt.c | 112 +++++++++++++- lib/power/rte_power_pmd_mgmt.h | 138 ++++++++++++++++++ lib/power/version.map | 10 ++ 6 files changed, 354 insertions(+), 11 deletions(-) -- 2.31.1