[v4,0/3] add uncore api to be called through l3fwd-power
Message ID | 20220920094822.1403168-1-tadhg.kearney@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8438BA00C3; Tue, 20 Sep 2022 11:48:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 23A7040E0F; Tue, 20 Sep 2022 11:48:28 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 3983E4069B for <dev@dpdk.org>; Tue, 20 Sep 2022 11:48:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663667306; x=1695203306; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=jrC8nFw7WH7FZggz2AKQ76lWqUau3yy0eV8kvZpxSy4=; b=lT0oB3KXwWb+2l4FjOBDScCoss7S6qEhSsv4yPZQd3KFC4VvufWzF09C PXMWr7tN/zx0axMQWgqnoj9q9KMX+NoqVyl76g77HjYqH5UQofeQ2i3da 4Q8fbJFFIT57qBmvAZ6/17k65na55vefZ4EIWHNnlgPVInPfxWs2lfJnm NZcOY2Ynjrlm8YnxHFDn86tXsZMnoEJBDhcWkD0rr9JprlggkW4f7REHu qoVik+Uj0+IcOaec04tLK4nmxdAsKQl3uk9/LN5BWyo8Hxal+VYtFcwEe o/iHinzOjst0diW6sxxTwz6HQhqxePMrmq5zFFLDU40peREW5d2gBmuPY g==; X-IronPort-AV: E=McAfee;i="6500,9779,10475"; a="301028376" X-IronPort-AV: E=Sophos;i="5.93,330,1654585200"; d="scan'208";a="301028376" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2022 02:48:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,330,1654585200"; d="scan'208";a="618850298" Received: from silpixa00401183.ir.intel.com ([10.55.129.143]) by orsmga002.jf.intel.com with ESMTP; 20 Sep 2022 02:48:23 -0700 From: Tadhg Kearney <tadhg.kearney@intel.com> To: dev@dpdk.org Cc: david.hunt@intel.com, anatoly.burakov@intel.com, reshma.pattan@intel.com, Tadhg Kearney <tadhg.kearney@intel.com> Subject: [PATCH v4 0/3] add uncore api to be called through l3fwd-power Date: Tue, 20 Sep 2022 09:48:19 +0000 Message-Id: <20220920094822.1403168-1-tadhg.kearney@intel.com> X-Mailer: git-send-email 2.25.1 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Message
Tadhg Kearney
Sept. 20, 2022, 9:48 a.m. UTC
This is targeting 22.11 and aims to add an API to DPDK power library to allow uncore frequency
adjustment. This will be called through the l3fwd-power app and gives the ability to set the
minimum and maximum uncore frequency to both min, max or specific frequency index.
Signed-off-by: tadhgkearney <tadhg.kearney@intel.com>
---
v2:
Fix compilation warnings and errors.
v3:
Remove addition of x86 global macros.
Add 2 new API's for getting package and die numbers from system.
Address comments from mailing list.
Improve efficiency of code and code quality.
v4:
Fix compilation warnings and errors.
Tadhg Kearney (3):
power: add uncore frequency control API to the power library
l3fwd-power: add option to call uncore API
test/power: add unit tests for uncore API
app/test/meson.build | 2 +
app/test/test_power_uncore.c | 299 ++++++++++++
doc/guides/prog_guide/power_man.rst | 37 ++
doc/guides/rel_notes/release_22_11.rst | 5 +
.../sample_app_ug/l3_forward_power_man.rst | 29 ++
examples/l3fwd-power/main.c | 122 ++++-
lib/power/meson.build | 2 +
lib/power/rte_power_uncore.c | 447 ++++++++++++++++++
lib/power/rte_power_uncore.h | 194 ++++++++
lib/power/version.map | 11 +
10 files changed, 1145 insertions(+), 3 deletions(-)
create mode 100644 app/test/test_power_uncore.c
create mode 100644 lib/power/rte_power_uncore.c
create mode 100644 lib/power/rte_power_uncore.h