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 3D5AAA0542; Wed, 5 Oct 2022 18:20:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1ED3340E2D; Wed, 5 Oct 2022 18:20:43 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 71BF640143 for ; Wed, 5 Oct 2022 18:20: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=1664986841; x=1696522841; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xxpsYddyPLwWQEkwD4zfiUdsHjkMfbla8VaHLxUS5Ws=; b=K0V9WO46vRH1tH8W8JxezP3qNxLpF2mIZ66ONdIBjCCrR0Zd1460t6ga D5qfVBE30viUJolO8Gj19MThUbZLn+RjzANnkwI+I+4JF/6q4zhbMClLs N3XTSvc2CNhqq2XojI7oWmi0tXa7vZPtujNQ6ZzTTTP8CV1F0yA88NN1r 04P5tRyfcsMtrHnIzGu/A3hiylx7p6osv2yVi5H4BEzatfxPOQvmwhZiq QktK6QkugGhISN4stEQL3E07kXc+DPoNqVTHQzUdFqH2tTSycv+BLYYaG oMCBgL/tXatPdx4qnJqZMWwH4LEC0aWb5KqdXwxs1c5IDBOInzponDDjR g==; X-IronPort-AV: E=McAfee;i="6500,9779,10491"; a="290445943" X-IronPort-AV: E=Sophos;i="5.95,161,1661842800"; d="scan'208";a="290445943" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2022 09:20:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10491"; a="692944592" X-IronPort-AV: E=Sophos;i="5.95,161,1661842800"; d="scan'208";a="692944592" Received: from silpixa00401183.ir.intel.com ([10.55.129.143]) by fmsmga004.fm.intel.com with ESMTP; 05 Oct 2022 09:20:38 -0700 From: Tadhg Kearney To: dev@dpdk.org Cc: david.hunt@intel.com, anatoly.burakov@intel.com, reshma.pattan@intel.com, thomas@monjalon.net, Tadhg Kearney Subject: [PATCH v8 0/3] add Intel uncore api to be called through l3fwd-power Date: Wed, 5 Oct 2022 16:20:20 +0000 Message-Id: <20221005162023.1923558-1-tadhg.kearney@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928133018.1583280-1-tadhg.kearney@intel.com> References: <20220928133018.1583280-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 Acked-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 mailing list comments. v8: Address mailing list comments. Tadhg Kearney (3): power: add Intel uncore frequency control API to 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_intel_uncore.c | 301 ++++++++++++ doc/guides/prog_guide/power_man.rst | 54 +++ doc/guides/rel_notes/release_22_11.rst | 6 + .../sample_app_ug/l3_forward_power_man.rst | 29 ++ examples/l3fwd-power/main.c | 126 ++++- lib/power/meson.build | 2 + lib/power/rte_power_intel_uncore.c | 451 ++++++++++++++++++ lib/power/rte_power_intel_uncore.h | 194 ++++++++ lib/power/version.map | 11 + 10 files changed, 1174 insertions(+), 2 deletions(-) create mode 100644 app/test/test_power_intel_uncore.c create mode 100644 lib/power/rte_power_intel_uncore.c create mode 100644 lib/power/rte_power_intel_uncore.h -- 2.25.1