From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 03B95A045E for ; Thu, 30 May 2019 18:16:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E483F2B9A; Thu, 30 May 2019 18:16:15 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D77D42B9A for ; Thu, 30 May 2019 18:16:11 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2019 09:16:11 -0700 X-ExtLoop1: 1 Received: from mhajkowx-mobl.ger.corp.intel.com ([10.104.14.177]) by orsmga001.jf.intel.com with ESMTP; 30 May 2019 09:16:09 -0700 From: Hajkowski To: david.hunt@intel.com Cc: dev@dpdk.org, Marcin Hajkowski Date: Thu, 30 May 2019 18:15:15 +0200 Message-Id: <20190530161517.11916-2-marcinx.hajkowski@intel.com> X-Mailer: git-send-email 2.20.1.windows.1 In-Reply-To: <20190530161517.11916-1-marcinx.hajkowski@intel.com> References: <20190530161517.11916-1-marcinx.hajkowski@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/3] power: add new packet type for capabilities X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Marcin Hajkowski Add new packet type and commands for capabilities query. Signed-off-by: Marcin Hajkowski --- lib/librte_power/channel_commands.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/librte_power/channel_commands.h b/lib/librte_power/channel_commands.h index ce587283c..b1f5584a8 100644 --- a/lib/librte_power/channel_commands.h +++ b/lib/librte_power/channel_commands.h @@ -34,6 +34,8 @@ extern "C" { /* CPU Power Queries */ #define CPU_POWER_QUERY_FREQ_LIST 7 #define CPU_POWER_QUERY_FREQ 8 +#define CPU_POWER_QUERY_CAPS_LIST 9 +#define CPU_POWER_QUERY_CAPS 10 /* --- Outgoing messages --- */ @@ -43,6 +45,7 @@ extern "C" { /* CPU Power Query Responses */ #define CPU_POWER_FREQ_LIST 3 +#define CPU_POWER_CAPS_LIST 4 #define HOURS 24 @@ -106,6 +109,17 @@ struct channel_packet_freq_list { uint8_t num_vcpu; }; +struct channel_packet_caps_list { + uint64_t resource_id; /**< core_num, device */ + uint32_t unit; /**< scale down/up/min/max */ + uint32_t command; /**< Power, IO, etc */ + char vm_name[VM_MAX_NAME_SZ]; + + uint64_t turbo[MAX_VCPU_PER_VM]; + uint64_t priority[MAX_VCPU_PER_VM]; + uint8_t num_vcpu; +}; + #ifdef __cplusplus } -- 2.17.2