From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 972D97D52 for ; Wed, 23 Aug 2017 15:17:11 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Aug 2017 06:17:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,417,1498546800"; d="scan'208";a="121879608" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.24]) by orsmga004.jf.intel.com with SMTP; 23 Aug 2017 06:17:08 -0700 Received: by (sSMTP sendmail emulation); Wed, 23 Aug 2017 14:17:07 +0100 Date: Wed, 23 Aug 2017 14:17:07 +0100 From: Bruce Richardson To: Sergio Gonzalez Monroy Cc: dev@dpdk.org, konstantin.ananyev@intel.com Message-ID: <20170823131707.GB13944@bricha3-MOBL3.ger.corp.intel.com> References: <20170823124241.17552-1-sergio.gonzalez.monroy@intel.com> <20170823124241.17552-2-sergio.gonzalez.monroy@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170823124241.17552-2-sergio.gonzalez.monroy@intel.com> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.3 (2017-05-23) Subject: Re: [dpdk-dev] [PATCH 2/2] eal/x86: implement x86 specific tsc hz 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: , X-List-Received-Date: Wed, 23 Aug 2017 13:17:12 -0000 On Wed, Aug 23, 2017 at 01:42:41PM +0100, Sergio Gonzalez Monroy wrote: > First, try to use CPUID Time Stamp Counter and Nominal Core Crystal > Clock Information Leaf to determine the tsc hz on platforms that > supports it (does not require priviledge user). > > If the CPUID leaf is not available, then try to determine the tsc hz by > reading the MSR 0xCE (requires priviledge user). > > Default to the DPDK tsc hz estimation if both methods fail. > > Signed-off-by: Sergio Gonzalez Monroy > --- This patch depends on Jerin's previous set for getting the exact TSC frequency on different platforms, right?