From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gowrishankar Subject: [PATCH v2 0/5] improve tsc frequency calibration Date: Fri, 22 Sep 2017 13:55:32 +0530 Message-ID: Cc: Chao Zhu , Bruce Richardson , Konstantin Ananyev , Jerin Jacob , viktorin@rehivetech.com, jianbo.liu@linaro.org, Gowrishankar Muthukrishnan To: dev@dpdk.org Return-path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id 0ECFC2C01 for ; Fri, 22 Sep 2017 10:25:47 +0200 (CEST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v8M8OCZ0108919 for ; Fri, 22 Sep 2017 04:25:47 -0400 Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) by mx0a-001b2d01.pphosted.com with ESMTP id 2d4pnfrts1-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 22 Sep 2017 04:25:46 -0400 Received: from localhost by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Sep 2017 18:25:43 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay10.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v8M8Pfru36306978 for ; Fri, 22 Sep 2017 18:25:41 +1000 Received: from d23av03.au.ibm.com (localhost [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v8M8PY8t009537 for ; Fri, 22 Sep 2017 18:25:34 +1000 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: 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 (5): eal/x86: define architecture specific rdtsc hz eal/ppc64: define architecture specific rdtsc hz eal/armv7: define architecture specific rdtsc hz eal/armv8: define architecture specific rdtsc hz eal/timer: honor architecture specific rdtsc hz function lib/librte_eal/common/eal_common_timer.c | 5 +++- .../common/include/arch/arm/rte_cycles_32.h | 13 ++++++++++ .../common/include/arch/arm/rte_cycles_64.h | 30 ++++++++++++++++++++++ .../common/include/arch/ppc_64/rte_cycles.h | 24 +++++++++++++++++ .../common/include/arch/x86/rte_cycles.h | 13 ++++++++++ 5 files changed, 84 insertions(+), 1 deletion(-) -- 1.9.1