From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0089.outbound.protection.outlook.com [104.47.40.89]) by dpdk.org (Postfix) with ESMTP id C57801B172 for ; Sat, 17 Feb 2018 06:06:42 +0100 (CET) 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=jJY6qQkinK20YlrGLhCHzwY2SxKQxaTBhSdKan5HwVg=; b=heBgJGzI6pAhbj2yYX+Dc18r9uBRnMJ0rZs/oiBW19D2o8NTzVKTsoHPhizEcUv806Qd+pCVBoZRrGTvOKms/FulQqSJMx03uqL/EyOik65fngfHh13JHHuYZNxIZqbfejOiWl6u0yD2f41ojoIHy2BiWIsST/aHqM0m7SSSiTM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.76.101.225) by BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Sat, 17 Feb 2018 05:06:38 +0000 Date: Sat, 17 Feb 2018 10:36:24 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: santosh.shukla@caviumnetworks.com, erik.g.carrillo@intel.com, dev@dpdk.org Message-ID: <20180217050623.GE2941@jerin> References: <20180216213700.3415-1-pbhagavatula@caviumnetworks.com> <20180216213700.3415-8-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180216213700.3415-8-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.3 (2018-01-21) X-Originating-IP: [171.76.101.225] X-ClientProxiedBy: BM1PR0101CA0062.INDPRD01.PROD.OUTLOOK.COM (10.174.220.152) To BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f022e338-dd1e-45d5-c0b5-08d575c43a81 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN3PR07MB2513; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 3:M7ApUmb1aHKtCErQee2TQx5L8DcuGqWczDmK5cIwxEX4OL/u/9R5GZXmB0KtPvYO8B+W3Ix/1wXzc9rhXwLEcsson+LCRN/jg2bxImqUKujbq1nX1c66nm0SdTqbGXgXihzIss7iwiQugS7512FF3LdA9O3ux0+53GHtzUsBNwVaE1zSLlVXMU1WMF+RQTvSHTUncAIkyNUF+6qmOe37cGpWpvlzolFcZKNMAnEx0V+8fmGWSSz8HiW/QBzjj6av; 25:mTPDLFjhGznIZYGpaVQWw9f6Vs9AfXC1hit/gFVMmqxgTFx0cFPH7+FChLMEntkG2Vw2aWJHh1Hmj+XUD5lRh6GJGCmILbEbp7NVqCSqlPx5MnV81VNCbXMweTahvNiKhVHJY2DoCn8LcPvywKb0Sby+AC0nyWY8pV+W9ngHfwvEyN01mIVwee1ye/9VdqwOXlLgu9ClwVe2Yw3X7JMyKhO3llbFvz3SCodyUvOLKaz+dtqRExUTnAgx4zfjCH8dOtneQcXcLbVviLrMxDE+6XgjiIXnUshRB/MhDRKmewiLxHx1o5z8Bps/XOdgMDPyVQ1sRvcKTzc+o1qLtbmr/Q==; 31:LyC5oLF8s3Hmbx3/pf15o2q83QZ5qe+CS8KXofKrvP2fwYjd6BpIv5KiaMcBcJJnmMBsfSeP+WbcQkvVgkhhhHXt3+7VMW/uTkp5ASJLOV3rUuCm5dawx4liZYBGcJzTefeSBX4JKPcIyvuC5NWMgVyaczdfn2iUR56Ret4hxmXPNXF5L8MVuS85/DZRAKH8FlU14ZTVV3mRKU41SwPNyEyrCQL27u9O9COfYzrOlOM= X-MS-TrafficTypeDiagnostic: BN3PR07MB2513: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 20:Jy9w72cyNvzUFbEqVETqrYWb7O3Bh0lIB5FGQ5ytz9sweXYeV/PiKVqqMZzdCFzR1+C3hn8h0+HaB9dcbWquG3UOU2OnKkBGoDuDD5epz7+4EQitBSMGrsCbq7Tc5kIv9r5NRTpgHmMNb+9ABl98kbveekAEz6fGLw3kRRnUgrXswhn8qkvyXvkthHPls4586mq27qA/bqEeIAEu58M7cj+CGU0diNNKFDBwPO90Zth8kdSL5gq+FCdmtgfRtio/zu9CUfhQYuc/f3E4Qt79eLA5X9r7Xy5u0C/Gkk+0lurCsCy8S4ybjz4iAvKMdSIAbi9xXzNJlQWj9iYKB1UOnAjzBNLztPnlz6Rf6Xa0KoLhHJTLhYNPyWh2c3Acv4Q+l+q6owK3fVp3n0wiw9zazvnDLzK6P76zNxQqdZ5hA1buxiBstB/mghLSWqqziTllhRlQNylLxvjIIm1nw1xXtLGffVYhlpKccnQbPfgNbau61n2Ites3tnabn1kkAiusNo12/9yWTVd3hmM2pd9DicA5ARe/6929+ACnPO6qu956opkZHjnCju030q9ZwrRLpDZgLH53cTniG+e2wCeqGAFvfPtLyill2tjLi6ebCso=; 4:IfY2YGWrakQNyIXMBdVhvXjcyIP7/oZlI0sTM5VNFYU22v7qlWSzDviNZTyQ2Cb/rb/y10B96yNn+nbFzDUMy5XKFEbIUDQ9116UORKgH2T4xKtyPpr7XeeTNc2Smnn8t2M5dWMUxiVSs0VzrrRlWgHFfCDp2OPT0uvlRZkXTHPLce0olzNvq/2doxtwzkJyBbANbZhQg4YJsBE8lP84vVIW0Qq/ftbno041Qjd0jWYT8ynhQLMDFcTj2rgyLnLBSyfKT7qdvZwCHCtK0ZTPPaOFsYIuZq4FtEG2ywNXzQZRIGeDix5wkgr+qpIktLkN X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3231101)(944501161)(3002001)(93006095)(6041288)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:BN3PR07MB2513; BCL:0; PCL:0; RULEID:; SRVR:BN3PR07MB2513; X-Forefront-PRVS: 058637CA05 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(346002)(366004)(396003)(39850400004)(189003)(199004)(13464003)(58126008)(316002)(7736002)(229853002)(305945005)(97736004)(33656002)(83506002)(106356001)(105586002)(8936002)(81166006)(81156014)(8676002)(52116002)(59450400001)(76176011)(72206003)(16586007)(33896004)(6496006)(386003)(478600001)(47776003)(66066001)(50466002)(53936002)(5660300001)(16526019)(33716001)(2906002)(6246003)(68736007)(55016002)(9686003)(4326008)(25786009)(26005)(6862004)(6636002)(23726003)(3846002)(2950100002)(6666003)(6116002)(42882006)(1076002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2513; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BN3PR07MB2513; 23:2u8OxwPEvUaupigMWsaKKrHI4OTSU8fCqvSVXlVUO?= =?us-ascii?Q?SRHY87Xcd8TKlZnuEuAuYDKeNgjrvlvH+yw2xMDBxT/2sigWxltJ9cwaSFzU?= =?us-ascii?Q?ZvF2t9IRHxEv3to9WePVVd2uVt30Sv7e0UxxaZZiSe2jT8A1jHw+rKOmJKHy?= =?us-ascii?Q?Ff2WuE0R7uhpuT5lLd/RoPx70AetQblgRfHzw1KFnOYSH66tD0ocopqxPj6e?= =?us-ascii?Q?EjdSllvJsMMNggc1zOxlwGfT7oepABsa5IvP4CB8e3HGr2NfGvyWa13YKL1K?= =?us-ascii?Q?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HAIAuIzC/V3K/ouN348bMtjWrAnFlOYroEtR162isLn9SIT3yBsN97QoY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2018 05:06:38.4820 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f022e338-dd1e-45d5-c0b5-08d575c43a81 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2513 Subject: Re: [dpdk-dev] [PATCH 07/10] event/octeontx: optimize timer adapter resolution parameters 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: Sat, 17 Feb 2018 05:06:43 -0000 -----Original Message----- > Date: Sat, 17 Feb 2018 03:06:57 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, > erik.g.carrillo@intel.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH 07/10] event/octeontx: optimize timer adapter > resolution parameters > X-Mailer: git-send-email 2.16.1 > > When application sets `RTE_EVENT_TIMER_ADAPTER_F_ADJUST_RES` flag > while creating adapter underlying driver is free to optimize the > resolution for best possible configuration. > > Signed-off-by: Pavan Nikhilesh > --- > drivers/event/octeontx/timvf_evdev.c | 51 +++++++++++++++++++++++++++++++++++- > drivers/event/octeontx/timvf_evdev.h | 6 +++++ > 2 files changed, 56 insertions(+), 1 deletion(-) > > diff --git a/drivers/event/octeontx/timvf_evdev.c b/drivers/event/octeontx/timvf_evdev.c > index 6cf5d4846..ffdfbb387 100644 > --- a/drivers/event/octeontx/timvf_evdev.c > +++ b/drivers/event/octeontx/timvf_evdev.c > @@ -82,6 +82,48 @@ timvf_get_start_cyc(uint64_t *now, uint8_t ring_id) > return octeontx_ssovf_mbox_send(&hdr, NULL, 0, now, sizeof(uint64_t)); > } > > +#define ALIGN_CEIL(a, b) \ > + (((a + (typeof(a)) b - 1) / ((typeof(a)) b)) * (typeof(a))b) > + Can this moved to common code if this not already available?