From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH 0/4] improve tsc frequency calibration Date: Fri, 13 Oct 2017 08:51:07 +0530 Message-ID: <20171013032106.GA7801@jerin> References: <20171013000247.4158-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: gowrishankar.m@linux.vnet.ibm.com, jianbo.liu@linaro.org, sergio.gonzalez.monroy@intel.com, bruce.richardson@intel.com, dev@dpdk.org To: Thomas Monjalon Return-path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0050.outbound.protection.outlook.com [104.47.33.50]) by dpdk.org (Postfix) with ESMTP id 51F6D1B657 for ; Fri, 13 Oct 2017 05:21:27 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20171013000247.4158-1-thomas@monjalon.net> 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----- > Date: Fri, 13 Oct 2017 02:02:43 +0200 > From: Thomas Monjalon > To: gowrishankar.m@linux.vnet.ibm.com, jerin.jacob@caviumnetworks.com, > jianbo.liu@linaro.org, sergio.gonzalez.monroy@intel.com, > bruce.richardson@intel.com > Cc: dev@dpdk.org > Subject: [PATCH 0/4] improve tsc frequency calibration > X-Mailer: git-send-email 2.14.1 > > v3 changes: > - implement in .c files instead of exporting an inline arch function > - rename arch function from rte_rdtsc_arch_hz to get_tsc_freq_arch > - integrate x86 implementation in the series > - fix private EAL include in PPC implementation (not tested) Thanks Thomas. Tested on a arm64 machine. Tested-by: Jerin Jacob > > > From: Gowrishankar Muthukrishnan > > Some architecture like armv8 provides an architecture specific function > to get the rdtsc frequency. The existing rdtsc calibration scheme uses > OS serivce like sleep(1) to calibrate the frequency which may not > produce the accurate result. Introducing an architecture specific hook > to get the rdtsc frequency if architecture provides it. If not, use the > exiting the calibrate scheme to get the rdtsc frequency. > > Jerin Jacob (3): > timer: honor arch-specific TSC frequency query > eal/armv8: implement arch-specific TSC freq query > eal/ppc64: implement arch-specific TSC freq query > > Sergio Gonzalez Monroy (1): > eal/x86: implement arch-specific TSC freq query > > lib/librte_eal/bsdapp/eal/Makefile | 1 + > lib/librte_eal/common/arch/arm/rte_cycles.c | 45 +++++++ > .../ppc_64/rte_cycles.c} | 78 ++--------- > .../{eal_common_timer.c => arch/x86/rte_cycles.c} | 143 ++++++++++++++------- > lib/librte_eal/common/eal_common_timer.c | 5 +- > lib/librte_eal/common/eal_private.h | 11 ++ > lib/librte_eal/linuxapp/eal/Makefile | 1 + > 7 files changed, 170 insertions(+), 114 deletions(-) > create mode 100644 lib/librte_eal/common/arch/arm/rte_cycles.c > copy lib/librte_eal/common/{eal_common_timer.c => arch/ppc_64/rte_cycles.c} (50%) > copy lib/librte_eal/common/{eal_common_timer.c => arch/x86/rte_cycles.c} (50%) > > -- > 2.14.1 >