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 E371EA00C4; Wed, 28 Sep 2022 15:30:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8512C41140; Wed, 28 Sep 2022 15:30:30 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 2A5DF4113C for ; Wed, 28 Sep 2022 15:30:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664371829; x=1695907829; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XdVsDaZ1uy78rQesAsAMadYiyU2gZ+qoiYFz7XOLPJM=; b=FKdyyrv7D+ObtzcPtBRREMDDiZE5rZ/PP+olVMvt4voIx56u9e2qmHzE oN5rV9Hd9B7HylBjdAIfBXdxy+p2Y1pr2ceCo4hriXVas/+CFCp7EJ1gX U0bbifttoqGqFtJZl8b1gNZa9ntB1GBLQvDKJY6kHIsgRwwR8I6FNS7R8 oe8s/Oh+aHIl8FKnhbwHBWNdWo1sis9z3f2gGFLreVIH3xp0rO5x+K0sJ tnaHx+b1l402twNLADZV3NCUFB7SH1mlqoOPgACSQrjzPI8oh9wAtQKL+ l/2jHA3hK6ieOWTfu95TgA4B0Xtim8QyovAes/ORJDi2X7WOcD1NDSUoV Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10484"; a="301576408" X-IronPort-AV: E=Sophos;i="5.93,352,1654585200"; d="scan'208";a="301576408" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2022 06:30:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10484"; a="684407205" X-IronPort-AV: E=Sophos;i="5.93,352,1654585200"; d="scan'208";a="684407205" Received: from silpixa00401183.ir.intel.com ([10.55.129.143]) by fmsmga008.fm.intel.com with ESMTP; 28 Sep 2022 06:30:26 -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 v7 0/3] add uncore api to be called through l3fwd-power Date: Wed, 28 Sep 2022 13:30:15 +0000 Message-Id: <20220928133018.1583280-1-tadhg.kearney@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928090636.1580647-1-tadhg.kearney@intel.com> References: <20220928090636.1580647-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. v7: Address ml comments. 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