From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9qRQzIlPUgA9iyH1B3TMiAlnLz58JTpk6Rc2TZc97JA=; b=LJZGqs3Z238d53RvF2xj662ZGiEJfmI518ox+nXRLPrxjFUL1PfgW6zhze9deGRn1DqfgrvPywfs7Pw02vk+pPbvvLERhPVwJBtxfOm7EN7vdYURKr8MerQ+fYBsNeGFI4qnKYRddI2935UlVyzX/56FtmP6pemJpallID1Czh8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (106.201.58.193) by BN3PR07MB2514.namprd07.prod.outlook.com (10.167.4.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 13 Oct 2017 03:21:23 +0000 Date: Fri, 13 Oct 2017 08:51:07 +0530 From: Jerin Jacob To: Thomas Monjalon Cc: gowrishankar.m@linux.vnet.ibm.com, jianbo.liu@linaro.org, sergio.gonzalez.monroy@intel.com, bruce.richardson@intel.com, dev@dpdk.org Message-ID: <20171013032106.GA7801@jerin> References: <20171013000247.4158-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171013000247.4158-1-thomas@monjalon.net> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [106.201.58.193] X-ClientProxiedBy: MA1PR0101CA0005.INDPRD01.PROD.OUTLOOK.COM (52.134.136.143) To BN3PR07MB2514.namprd07.prod.outlook.com (10.167.4.139) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9a925ce-1cc9-4e2e-09e8-08d511e97cdc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BN3PR07MB2514; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2514; 3:u+8t3WiINo/QWyetj2lV6iDuCJwjOAicPc35/RhVQFjbM/o0zdMvDhOwVIiqsKlmEoMZxVSLBvW0E0TwO7iUvftJkCgfmoMVf5FlhDQW/e5IBbEWAQrpTpbKKp7KaPBqBaSot03HA8PmlPLLW+X8FZeDCqWUIH3oPot5eZGnBss/NBNG81gK2KbcZCzybzZy66sfWnsCT7HsdYCSxqBNpHYPWda73jwr1SCvcqEooNAMFB/Hb1203WL1xjBCS4Cq; 25:2+mj7p55JA4zxDIm0koh0OOSbs8JxlUpYEQE/kkswbkrMdj9MyOqlG4FL4dd6mysqgh0/QOiFNOPzz9iUAa/MoKPyTgQeklfe+t9XVZojXWlh5kE4z9m89sqF9tpe6KSlnLb6y/o7TAv08OKlcAVQkEjT/ayJVELvCosYWnqWMgHREg1g3nliWljKOFAK9bEFGr2DCB512iEx1Dx474WU+xSzEbZQZNjAv8ShOeGWxdX7GIdjDL+OZZ2yeVkl7ewc6RCvXffWQrOXgNCr78XCFNw7mIDMfOO2/2KHGSTDIFzmPmr3OHWbEUVXyaqp4JkoPP51Tf8f20+fS0IAygIDw==; 31:srcNxNM+shdgtndX8PWaxTUdJbbUS09tq8rxML6nbH0z5cqN6zoBXP+wgoGugbqwZ3T3cK/fTO8PHCCMshv5keNhnX5bYJsJc/qEE3pyuxKDCRkjZdLU688eQMMeEEcKXXnEpGsvPt6IpQ0n1wY3EDcI3jS1L71ZKVgWaI9+1309IhGQBsGf1RCTBJpIZh6W+CBpZSiuz6+BiWCeV7o5FJBg5Hzlby2+ilLFFoVX59I= X-MS-TrafficTypeDiagnostic: BN3PR07MB2514: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2514; 20:w/SMS5vlU4TSUDr0n8oTvG416oRA5Aj0CRElB32t2ysO74Eld8qqv/B88XSDf4qkJ8USs/etHhRF1QxiGU8RxzRpMygFsY1vrNJaZa6DdlDa8wWrSG0UZgtle02xtPaEMP91fQGC+Sxf9IYXpCvEe/l8EM9dw3P8QSemstwZ2JIOLM8WxyQ4ZOILLdub/VVDSSxKTtLqcMXre3USc7HHjo+gFzE3KGVN96pwUx6u2i/JrlbL8mtqnUuSlnVl/4fRUSrWfh/yFGr/BCNfltw9JBObLlk0UNj6ctiwd75EMKAHuJT7T9A9WX/9n4OHDxV1NYICs33T52vqyI95D//4NVtBXA5h92MPP07yjxcd0urE4qEPTVp1w2Y18jPz7FlsKmvM8uxMB22GW4IgB2+f2KVrzZpHX0Fjkuu4b6UO+xB1hZ1rFptkTKxI1lx7qFSDldVgyDMfASptD3RtuNPj+8LvNe1x2a6vT+ia22C1ODx7cSASwYb2YOvPztoJxhGP/NQnCt6w7k0tiPMHuqE5rQQLAbGQYd4V5u4cRqp6W3xOyp5VwicexTpCjSXqKfXmP8tiUIZi6mPJgFMyGkJbQdeZtHqBkF4uaXz1NDcwToY= X-Exchange-Antispam-Report-Test: UriScan:(104084551191319)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR07MB2514; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR07MB2514; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2514; 4:yctK2jxbTJRie2UqQqWWnkfP2AFGmioNtyVLnFEU5JwQhQg00TqxIv4bIRfhNEZA7YFaQ6/h+Q8JZd/sGZjfMu6PmRMzUCDjdsSy+3vER2IePpqo0SHN1EYq3htQWrKqFQ+ko1VjVuHmjNaUtTTcyPkRsYAs3GhjtNCQasarlsq9I4y+jk8UOtdwTCXubIVfctWijxowywmbtYOj8ENCLSjlkTzXHvTbKC5fVWfjvCg0Jxdus6OjGXyS6p+uRQfN2Kk5+dewzH9NLF2YfHcJ4LxljI8GBsL0gUmFg2AOUFai2o/Euc3xCZcxpP17zsYdov+y7zZzBMLX6uBxhV1oGg== X-Forefront-PRVS: 04599F3534 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(13464003)(199003)(189002)(5660300001)(55016002)(305945005)(9686003)(3846002)(2950100002)(76176999)(6916009)(47776003)(6116002)(54356999)(50986999)(1076002)(105586002)(2906002)(101416001)(66066001)(5009440100003)(25786009)(7736002)(23726003)(8676002)(42882006)(478600001)(68736007)(50466002)(33656002)(72206003)(106356001)(81166006)(8936002)(6666003)(189998001)(6246003)(53936002)(97736004)(316002)(81156014)(33716001)(16526018)(83506001)(58126008)(6496005)(229853002)(4326008)(16586007)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2514; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2514; 23:B8pF7vXLjj4YHrfEj0zhzhNm4FOvRIAfdEX2krH48?= =?us-ascii?Q?6dqnt4umfmvIpg2GHrMrrz1EO3hPLz7B09nwSpynSYpIB/VleR+cfBrqvkJ2?= =?us-ascii?Q?GeoJ2KmA/qv8pJjuyBLaAscBh1wudFOpX5csRMC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fcuozWshfTh3pwnURN1xKPMb6BudSULvFutZM4tc0B6kBEd8h6qGJlq7i+jBwpx3009UAfcAEqbtPwewpIRiAwlbtTZMRLoONcxfoOU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2017 03:21:23.9827 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2514 Subject: Re: [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 03:21:27 -0000 -----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 >