From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 67A271B395 for ; Fri, 13 Oct 2017 02:02:53 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C17182198A; Thu, 12 Oct 2017 20:02:52 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 12 Oct 2017 20:02:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=KqMVjxNlYKad6E 8SAlPGaOjTz4FM0ENCHyCjepeDbD8=; b=prIIRW+FacSOkd8axy7sFzonO0GAET erwiGFGtCeizAYft1CbsEHTAuTU2mBbHNw/W9R7T7MkiQ8vIvgcztpcfig7o2Hkr gQHcktivxFQlMoAOZWb+WLrHWf0b7TWVcEBTH/qJodAwmOToaqIWPInM/zhHskkK ibzKk/cc1r4dQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=KqMVjxNlYKad6E8SAlPGaOjTz4FM0ENCHyCjepeDbD8=; b=KuFbiyoT hpiqvCeu95jb6tDR1GjXTLC3akio3UToade3Nk9cfTIE8PP36gAHkWoeK5kgpKjW Et7yN5LLLi44KsmTog4hTHPSudqbe+T45CBgSUDR+7JNbirGdFD1S2Bo3O+2wUZY ZpPihVW1yWVGiaDdPiuIYnpFhjAf7T5f7wsRelyH/lJBb8AS2ndrpLqlIw7ld6UG H5zed5IACubfVDiTXe2yIwSv1GynNifHvRcgKwGCEIw59pU58Yd/Ek0NHd1SRavn NjwktrGEXst1p/1MwRQFfbDqyK5vvO8ZmHfCO/0YpsCjjLOZdFjWIPuk749mdEv8 OwYXBBaMFj68QA== X-ME-Sender: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id BEF9E2489B; Thu, 12 Oct 2017 20:02:51 -0400 (EDT) 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 Date: Fri, 13 Oct 2017 02:02:43 +0200 Message-Id: <20171013000247.4158-1-thomas@monjalon.net> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [dpdk-dev] [PATCH 0/4] improve tsc frequency calibration 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: Fri, 13 Oct 2017 00:02:53 -0000 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) 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