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 0119BA2EDB for ; Mon, 30 Sep 2019 12:55:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B602A3423; Mon, 30 Sep 2019 12:55:42 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id C9EBE324D for ; Mon, 30 Sep 2019 12:55:40 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Sep 2019 03:55:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,565,1559545200"; d="scan'208";a="342606068" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga004.jf.intel.com with ESMTP; 30 Sep 2019 03:55:39 -0700 Received: from irsmsx106.ger.corp.intel.com ([169.254.8.184]) by IRSMSX151.ger.corp.intel.com ([169.254.4.234]) with mapi id 14.03.0439.000; Mon, 30 Sep 2019 11:55:38 +0100 From: "Daly, Lee" To: Hajkowski , "Hunt, David" CC: "dev@dpdk.org" , "Hajkowski, MarcinX" Thread-Topic: [dpdk-dev] [PATCH 1/3] power: add new packet type for capabilities Thread-Index: AQHVFwMPHQet8xGzYE2rvSRHEuSez6dEzPqg Date: Mon, 30 Sep 2019 10:55:37 +0000 Message-ID: References: <20190530161517.11916-1-marcinx.hajkowski@intel.com> <20190530161517.11916-2-marcinx.hajkowski@intel.com> In-Reply-To: <20190530161517.11916-2-marcinx.hajkowski@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2NjZmIyMjAtYzc5YS00ZTU2LTk5NmQtMzk3YTRlOTE2NmRlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibkd4XC9zdHRuVHljRXBvZ3ZyYUVOc0g0TEFMY05YS3hiVEtpRVNJU1N5ODNSSlJjc1dQVnV6MDYrNVlVaFY0K3IifQ== x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Hajkowski > Sent: Thursday, May 30, 2019 5:15 PM > To: Hunt, David > Cc: dev@dpdk.org; Hajkowski, MarcinX > Subject: [dpdk-dev] [PATCH 1/3] power: add new packet type for capabiliti= es >=20 > From: Marcin Hajkowski >=20 > Add new packet type and commands for capabilities query. >=20 > Signed-off-by: Marcin Hajkowski > --- > lib/librte_power/channel_commands.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) >=20 > 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 >=20 > /* --- Outgoing messages --- */ >=20 > @@ -43,6 +45,7 @@ extern "C" { >=20 > /* CPU Power Query Responses */ > #define CPU_POWER_FREQ_LIST 3 > +#define CPU_POWER_CAPS_LIST 4 >=20 > #define HOURS 24 >=20 > @@ -106,6 +109,17 @@ struct channel_packet_freq_list { > uint8_t num_vcpu; > }; >=20 > +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; > +}; > + >=20 > #ifdef __cplusplus > } > -- > 2.17.2 Acked-by: Lee Daly