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 45338A00C2; Mon, 23 May 2022 22:20:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E736F4067B; Mon, 23 May 2022 22:19:59 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id C890340156 for ; Mon, 23 May 2022 22:19:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653337199; x=1684873199; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rEAh727IMjqJtjiCN/D6DvO6TJzVgRoZ48ST//gd7xQ=; b=LFwwN46N3hKDfv2x7Zkmwn5RsJ+P2+x/YyGzF3/w4po+CIGexvkB/IW1 sAhfIYQvmmtbtLOOgOUyhXG9bZ6WA1r8hdLHd8hT3oBxtDEM/eJngpyQ8 6Nl84hT0zndrTZMKKZ43hHuXwhqq0/drQDgoXVH3jTaphWk/ojUW7acZg wOocarxkczE3ht1mcp/XzPsVUGZsuFP5X3gBFZouSPy6m/6CeDeBUFZs+ 8Alfa2SqRG/2f6CeTC2vaREU8snRu4KJV654RK21pipsVRP75teoCtYB+ LRJsvgWO2H3BY3vekPW5UeJvihmSfuJ1dVSdVjdcEFC+b1IVAtqIqi1QE A==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="273338313" X-IronPort-AV: E=Sophos;i="5.91,246,1647327600"; d="scan'208";a="273338313" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 13:19:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,246,1647327600"; d="scan'208";a="744911254" Received: from silpixa00401122.ir.intel.com ([10.237.213.29]) by orsmga005.jf.intel.com with ESMTP; 23 May 2022 13:19:57 -0700 From: Kevin Laatz To: dev@dpdk.org Cc: anatoly.burakov@intel.com, Kevin Laatz Subject: [PATCH v3 0/4] Add APIs for configurable power options Date: Mon, 23 May 2022 21:21:20 +0100 Message-Id: <20220523202124.293865-1-kevin.laatz@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220419112501.1835458-1-kevin.laatz@intel.com> References: <20220419112501.1835458-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 v3: * move setters from arg parse function to init * consider 0 as 'not set' for scaling_freq_max * other minor fixes 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 | 86 ++++++++++- lib/power/power_pstate_cpufreq.c | 22 ++- lib/power/rte_power_pmd_mgmt.c | 121 ++++++++++++++- lib/power/rte_power_pmd_mgmt.h | 139 ++++++++++++++++++ lib/power/version.map | 10 ++ 6 files changed, 375 insertions(+), 11 deletions(-) -- 2.31.1