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 EF52CA00C3; Mon, 19 Sep 2022 11:05:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84524410D0; Mon, 19 Sep 2022 11:05:48 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 2B0DA40141 for ; Mon, 19 Sep 2022 11:05:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663578347; x=1695114347; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Wj2N0a4CFcOKGiWVPwz7lFZlIGcDdUmIiJr515/JUgQ=; b=C1gy6Zl1ifjbnWfApbCpLVsSiG6cZ2ob4mIr6FpG7gEGc3rD+vOYeneZ MkuW3QoOdgLCXs7SvTAbYOhbOq7wEGrY10WDMRYpUi3idZWqOROQgMV3Y iRCl93EDZLQ4OopOd/bIhGftqPgpbd+8xb6eLnBvwKFxRvZSNRv0yvaBi lBjhCMvx2tHLx8BDHSVMp9wepCFKhJxSwyEvq8ny1xTr3/fqfrKXm6O4L ci90y4yrV/WKJPqTjN+PCjM8Q8+8CqNXFCIYSJq8aHGPLXDtD/Tf+sekQ K85Ap7DZ1pGLJfNX0mgvbc367zSonyrwyLCiEN45gV8S2om0vBzVMzCRw A==; X-IronPort-AV: E=McAfee;i="6500,9779,10474"; a="298075714" X-IronPort-AV: E=Sophos;i="5.93,327,1654585200"; d="scan'208";a="298075714" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2022 02:05:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,327,1654585200"; d="scan'208";a="613921737" Received: from silpixa00401183.ir.intel.com ([10.55.129.143]) by orsmga007.jf.intel.com with ESMTP; 19 Sep 2022 02:05:42 -0700 From: Tadhg Kearney To: dev@dpdk.org Cc: reshma.pattan@intel.com, david.hunt@intel.com, anatoly.burakov@intel.com, Tadhg Kearney Subject: [PATCH v3 0/3] add uncore api to be called through l3fwd-power Date: Mon, 19 Sep 2022 09:05:37 +0000 Message-Id: <20220919090540.827884-1-tadhg.kearney@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220713140706.4143705-1-tadhg.kearney@intel.com> References: <20220713140706.4143705-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 --- 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. 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 | 293 ++++++++++++ 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 | 186 ++++++++ lib/power/version.map | 11 + 10 files changed, 1131 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 -- 2.25.1