From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v4 1/2] lib/power: add bit for high frequency cores Date: Mon, 1 Apr 2019 16:43:55 +0100 Message-ID: <9b50355f-06ab-fb44-5aa6-1089fd7e64d6@intel.com> References: <20190329131520.10653-1-david.hunt@intel.com> <20190401153044.39273-1-david.hunt@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: liang.j.ma@intel.com To: David Hunt , dev@dpdk.org Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 807D53798 for ; Mon, 1 Apr 2019 17:43:58 +0200 (CEST) In-Reply-To: <20190401153044.39273-1-david.hunt@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 01-Apr-19 4:30 PM, David Hunt wrote: > This patch adds a new bit in the capabilities mask that's returned by > rte_power_get_capabilities(), allowing application to query which cores > have the higher frequencies, and can then pin the workloads accordingly. > > Returned Bits: > 0 - Turbo Boost enabled > 1 - Higher core base_frequency > > Signed-off-by: David Hunt > --- > /* Add MSR read to detect turbo status */ > > if (power_rdmsr(PLATFORM_INFO, &max_non_turbo, pi->lcore_id) < 0) > @@ -179,6 +207,14 @@ power_init_for_setting_freq(struct pstate_power_info *pi) > > pi->non_turbo_max_ratio = max_non_turbo; > > + /*Add the compare for base frequency */ The comment here looks meaningless, and needs to be reworded to explain why this is done, not what is done. Otherwise, Reviewed-by: Anatoly Burakov -- Thanks, Anatoly