From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A12D9A2EDB for ; Mon, 30 Sep 2019 15:01:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3DC7B4C8E; Mon, 30 Sep 2019 15:01:00 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 49FFA37A2 for ; Mon, 30 Sep 2019 15:00:57 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Sep 2019 06:00:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,567,1559545200"; d="scan'208";a="220644311" Received: from silpixa00399952.ir.intel.com (HELO silpixa00399952.ger.corp.intel.com) ([10.237.222.38]) by fmsmga002.fm.intel.com with ESMTP; 30 Sep 2019 06:00:55 -0700 From: David Hunt To: david.hunt@intel.com Cc: dev@dpdk.org, Marcin Hajkowski Date: Mon, 30 Sep 2019 14:00:41 +0100 Message-Id: <20190930130043.2885-2-david.hunt@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190930130043.2885-1-david.hunt@intel.com> References: <20190530161517.11916-2-marcinx.hajkowski@intel.com> <20190930130043.2885-1-david.hunt@intel.com> Subject: [dpdk-dev] [PATCH v2 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 Tested-by: David Hunt Acked-by: Lee Daly --- 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 e461d9c0d..adc8e5ca2 100644 --- a/lib/librte_power/channel_commands.h +++ b/lib/librte_power/channel_commands.h @@ -31,6 +31,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 --- */ @@ -40,6 +42,7 @@ extern "C" { /* CPU Power Query Responses */ #define CPU_POWER_FREQ_LIST 3 +#define CPU_POWER_CAPS_LIST 4 #define HOURS 24 @@ -103,6 +106,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.1