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 5DF74A00C2; Wed, 28 Sep 2022 11:06:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B1C44113D; Wed, 28 Sep 2022 11:06:43 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 9586140F16 for ; Wed, 28 Sep 2022 11:06:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664356001; x=1695892001; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=f35rJn+cro70rIvUPaAxo61I7ZaB6a9dh2GSSDMOeXQ=; b=D2/5/Rx+Ebt3DR44PetuATfcd6bwcvpbBGRghNrpZVFxzxTVyp/0rHDR npj4RPe4G5/FWeVX/l6oMZOC8GM0exejsqSgntqgvNB19E7lNnyIyoDp8 U9lZXM4vEhYyHTQ6AaLhrtGwTnid3RpTqxhjjc7D7DfkEzqaqLtohEqCU 2G4VtZGIrBCTb2OcK5SOGIGtIk2Wk8a05wnBFXRs8P7TeT1IaB0msVs4B rKPB0l36F2KKIL+RaY8ivivIgeVN04p4rXNeGMz2bwQ5DzVciBlceF8nW rE0BPphZnQNqci7+M961NBOd18OG8dYV6WruRjkk9iYiL3af0kwgSS+JQ A==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="301525899" X-IronPort-AV: E=Sophos;i="5.93,351,1654585200"; d="scan'208";a="301525899" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2022 02:06:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="690323049" X-IronPort-AV: E=Sophos;i="5.93,351,1654585200"; d="scan'208";a="690323049" Received: from silpixa00401183.ir.intel.com ([10.55.129.143]) by fmsmga004.fm.intel.com with ESMTP; 28 Sep 2022 02:06:39 -0700 From: Tadhg Kearney To: dev@dpdk.org Cc: david.hunt@intel.com, anatoly.burakov@intel.com, reshma.pattan@intel.com, Tadhg Kearney Subject: [PATCH v6 0/3] add uncore api to be called through l3fwd-power Date: Wed, 28 Sep 2022 09:06:33 +0000 Message-Id: <20220928090636.1580647-1-tadhg.kearney@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220927100905.1505722-1-tadhg.kearney@intel.com> References: <20220927100905.1505722-1-tadhg.kearney@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 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 Reviewed-by: David Hunt --- 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. v5: Improve error message for uncore access not working. v6: Fix uncore exit being called if uncore option not selected. 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 | 301 ++++++++++++ doc/guides/prog_guide/power_man.rst | 38 ++ doc/guides/rel_notes/release_22_11.rst | 5 + .../sample_app_ug/l3_forward_power_man.rst | 29 ++ examples/l3fwd-power/main.c | 126 ++++- lib/power/meson.build | 2 + lib/power/rte_power_uncore.c | 451 ++++++++++++++++++ lib/power/rte_power_uncore.h | 194 ++++++++ lib/power/version.map | 11 + 10 files changed, 1157 insertions(+), 2 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 -- 2.25.1