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 8CD50A0032; Wed, 13 Jul 2022 16:07:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 205E342836; Wed, 13 Jul 2022 16:07:33 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 8F1044280D for ; Wed, 13 Jul 2022 16:07:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657721251; x=1689257251; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mPp14VVMOg/ZHm9HXs1OQX8SGniSME51+LbHVLx4tOA=; b=gaeEKEL7Adik3EPEWKET/uw5S3LkdBuOEVH7ONV2EMOoSppcvzkOS3zw w2mPLuB6t8CTHPbt0aB+9Kik0jQftJroLAbrZ85S3/IiayOWJdADXHCuT yHHLZP1BDsf+snMb9spCzhvuE9X0JQoGlwpo076/bOypnunbRrZ/nmBIX J1NCwwq4AcZnQ3WanOzqfv5z4JSDAfKWV4tySI5/BwvxAGL/7KitFGA4A vHYxfZ+glq3U3jmSqgXq39pMGfVsg2cbfTY/pivdqOqRmXSlEr2qdj+0B xpRAZOXV4KK7zRPWtRGPWg9a/fnRxsh1Pje6jdvELGPvekeNYF3PX6lTJ Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10406"; a="268254386" X-IronPort-AV: E=Sophos;i="5.92,267,1650956400"; d="scan'208";a="268254386" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2022 07:07:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,267,1650956400"; d="scan'208";a="545851184" Received: from silpixa00401183.ir.intel.com ([10.55.129.105]) by orsmga003.jf.intel.com with ESMTP; 13 Jul 2022 07:07:15 -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 v2 0/3] add uncore api to be called through l3fwd-power Date: Wed, 13 Jul 2022 14:07:03 +0000 Message-Id: <20220713140706.4143705-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 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 to allow uncore frequency adjustment. This will be called through the l3fwd-power app, and gives the ability to set the min, max and specific frequency index that you want the uncore to be at. Signed-off-by: Tadhg Kearney --- v2: Fix compilation warnings and errors. Tadhg Kearney (3): power: add uncore API to power library test/power: add unit tests for uncore API l3fwd-power: add option to call uncore API app/test/meson.build | 2 + app/test/test_power_uncore.c | 245 +++++++++++ config/x86/meson.build | 2 + doc/guides/prog_guide/power_man.rst | 27 ++ .../sample_app_ug/l3_forward_power_man.rst | 28 ++ examples/l3fwd-power/main.c | 190 ++++++++- lib/power/meson.build | 2 + lib/power/rte_power_uncore.c | 399 ++++++++++++++++++ lib/power/rte_power_uncore.h | 159 +++++++ lib/power/version.map | 7 + 10 files changed, 1045 insertions(+), 16 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