From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0088.outbound.protection.outlook.com [104.47.34.88]) by dpdk.org (Postfix) with ESMTP id 7BB3B1B768 for ; Tue, 3 Apr 2018 17:05:45 +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=JyrVnEhVh3J+qnOD8+FHcbLMHDkQH7eBBufv7yQQMno=; b=U+fiSNFpdJXpwBkx3/G/QgMdsaOYgMHyLMratwoiL5rWa7VrpaMh3Eg+jXqXK57C4bZLH7f9t3PrzyFyX4IhHr7nG8aaXLNVSDAnXzPN/muClVzGzX6/3kalnANqERIPAhfcRCzmuEGdlROF5D52rmNITgg9+qkoOwCyMZLn+/c= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by MWHPR07MB3470.namprd07.prod.outlook.com (2603:10b6:301:63::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Tue, 3 Apr 2018 15:05:41 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, erik.g.carrillo@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Tue, 3 Apr 2018 20:35:02 +0530 Message-Id: <20180403150514.24201-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180216213700.3415-1-pbhagavatula@caviumnetworks.com> References: <20180216213700.3415-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR0101CA0070.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::32) To MWHPR07MB3470.namprd07.prod.outlook.com (2603:10b6:301:63::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c7613cce-c56f-4949-8f02-08d599745f11 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:MWHPR07MB3470; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 3:bSEvbxnFzVsCXciwyksabtYyWyMskRQ15Sg+HLS2BEbNI1Cu9pAsraSkYFci3Uro7R3KwrbXBeZp2i9FapbRd3GrFUN17S65W7UbmIEywa3mYa39CgMRpxRMBpTB2Fp/o/Jp6tRMlrCaa1RysOMlMuN1LL2Z62q5+JXQ+WXUm9EgGH7vdrlnoauPufD9kaiEDgCVg7SbSNM5b4OwzjLc8OmH2IAzvxRr0pyiQiy+UbS5nN1oEINtBoharZLFnzcx; 25:7/d0P/LwPy795ONss0CfKu7KwikyhNMvooRlzO82QdDBLn9sSf0ss2N0aT2jprPEslpdovjI2aYqjvMCkdrZja2FeIQwv4eYlB8fPlp3CgGZ4JWfahBoXNRNxW+dt8yCTcCo+D6PvaAAd53+w/U3fz6Cjs2WEqt/6LdqwwoM9EjMiNyuM2ThsJJ1vIiqu0kwRFB4w3pWJivmf+xwGUrrcK+WydcuQvOp7p+PHZI/HwjmkLzrt2MSwK8xT4xOoGvLi+75Ib2DK7CKHLFEsssMXpVh4A59WYQHTuG/U1rK6dJzLim7oFQZPDE9fqd9tfawkQPJSKmuvibidUEiAW3cmg==; 31:/MqGY+Msc0PIGhXFOjGiGaQU17Wnp78McZwtU7oaa5d3EtnXe1Mjxq8WpWzk1Zov/w/7Ns4mRkH1oIhe6YNxucJI3jDpi3jtCKpI8+bMjBSOeqnxcOQsQMie126/qzH2T1txL8w+Cwo9cp6+RLbqQmMdWLSLd1yc8ZTp5wdrjuZhLL6KvLs+us4yzOV9DuXDvezwKvqjQ+mJCOO50gJNwqRFkfCssl6n9Ah0wXwwqPw= X-MS-TrafficTypeDiagnostic: MWHPR07MB3470: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 20:I73hrCpWZ4yJXE3Kup+c+k0O/P/sD736uaJYPS/WHOvNyTmRtU0ncrh/kBvs1WHBDn/23FXsQPApZJmCOgPt6sHxeiZSViOISPwPBq3dOeAmjR8D++YjEsw5dLou2ynnTX8LbqAOe5ddHSRC/n6+p2HU1hbmK1YO+oCtUQm7KdLdug1GaVWH40rrTX7rJfONgEflBqj5JVT3mO16v3++QPytEq4Il1y5IJUrS/xHzUcPv8xbuuWMoMc63rLB4mLr3rd0raLOIyQkQdIStnhOAA5DsJWloLVb2iJn0sOP24DYaf7WKwQTuuBBkxSP9jhvbQDUJUFKWuv4A5FZvdv+S7EgKwhpqK9kZg+daKY9O+BCfKZgDyJW8d11qnDooUBIpqO4BJlWXzAruVwdj3/Pk+KOTkhnCSajN6a8p5rUvX/VH+mn9tjUqi/8UxNIEVgqJf5BCfs4NW5fcUIcVTR2Hjys7pMG5EhCXjr75C0lv0CeOlJuBhDTUlnwOYfh+UzL5GyQc9nZjm72JQxrAUzihHUO7vDp5xyHh1qjJeQtAd56MY2CgiWLKtHjSsnTDkFySyYCgIIRUNSyZRa47FUDlT7MIsOrsY8/f5iHBVgubuY=; 4:V5lrJ28Ag1VemdWnoWgrkBzA7k03hh2vx7QwruSO0Av7WmfsKSyymt7VbQyX/4Jw26DBtATbNEatrg8JOP51JJpMdslmJDkzGcHbloc03677KOr2PP9I4t8ec/Lnf6585HSOK0JT6n5tNusH+upvmwHzAcM69IwRROXkIKGmnEK6Jqb7xCTeLr54TDYIP2fzwHmU2DwyuPJo4BpVfJ1bm0A0QWbjRHMzIq0GM3BfHxTnZ/mcLv1RySls2d4I26E9+a0oMxzh0zamTIhrGyTBHg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011); SRVR:MWHPR07MB3470; BCL:0; PCL:0; RULEID:; SRVR:MWHPR07MB3470; X-Forefront-PRVS: 0631F0BC3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(346002)(39850400004)(376002)(366004)(189003)(199004)(47776003)(305945005)(66066001)(72206003)(386003)(6506007)(16586007)(478600001)(316002)(48376002)(7736002)(76176011)(59450400001)(36756003)(52116002)(51416003)(5009440100003)(50466002)(68736007)(106356001)(966005)(4326008)(25786009)(486005)(476003)(53376002)(2906002)(107886003)(6512007)(11346002)(6116002)(2616005)(53416004)(26005)(16526019)(5660300001)(6486002)(3846002)(1076002)(81166006)(81156014)(446003)(956004)(486005)(69596002)(8676002)(6666003)(97736004)(42882007)(50226002)(105586002)(8936002)(1857600001)(6306002)(1720100001)(53936002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3470; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3470; 23:3L9Cw1op9sCc1Hii+1ZFaTwk8STlSrFIkGv939buZ?= =?us-ascii?Q?CffiDVtVISLK3tX5IKNqLcJfF31/YMa1QzdhXrQYcjDb0mGM8Xo4HL2ZG7+3?= =?us-ascii?Q?0gjQ6P3hMkmVbHn855paxPxXAR+4OSduMhe+ctEB5zpx+fWsOM2ietYQXvnp?= =?us-ascii?Q?TmyYgNyAWm0sSfBX7QHESRFPjea0CYwzn49UWm2jXZwuckIWzyTXfci36zru?= =?us-ascii?Q?BdhRk3XvTiTWWsD65OI0/Wt4Xa8Qz9OYYpQOY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YV50S7izwbtQ9Kalc+VKUMhEZrijefS9a99xVH625veGeQ==; 5:hUPLgL70yAvVRsQwNwAdUTLACTcorGO9pUx6OSBwsgX/KfSohnUbSV3KwPc7xIo+lIU5/k44OHFPDHqXCsl8u8VRbTlAdHpeRnusqDEeoPmApM1etkRuc9poSJ1HcyNvySgxVd2eSi7A3g7MRhsHDyyTYMCd93cG1YcOoLGhYZ0=; 24:GGJmI1daTliU1efw3AObopg6efEabFBslLJQuO23bA2OJMkO0E0sWIcBi/729ey1FoLdflmivwntGz/ldVEhV7tbP3Nk7oLCinbUjX1RwLA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 7:Mrs0hiIcJnTGnOCUnOyl8cp1yW60w9GFxrWBV6ipjvO41Kc9h0TzERqKfLqAdtDDnbtR/fOGy0H/k5prBZuB38/NWNVqeZOlY80jK0fg9r/E/C9KmuZPyMvjAy6GmcwzDetAt2NuJUus3M3xfLPpBdMpjiO3JlPX+Jy06KrfXNzMQ0wZP9CIyuCemqoaQ9Kt4MriWCscCEKZmSV0wR8PD+JihI1g4puWoMPqb6t4HvnRRDqa3VgniLTUvouBMck0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2018 15:05:41.5379 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7613cce-c56f-4949-8f02-08d599745f11 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3470 Subject: [dpdk-dev] [PATCH v3 00/12] event/octeontx: add event timer adapter driver 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: Tue, 03 Apr 2018 15:05:46 -0000 The event timer adapter[1] provides APIs to configure an event timer device that allows an application to arm timers which on expiry push events to an event device such as OcteonTx SSO. The OcteonTx TIM is a co-processor that can be configured as an event timer adapter which can be used by an application to manage event timers. The TIM co-processor processes the event timers registered and pushes expired event timers to SSO based on the event queue, schedule type, flow id etc. provided as rte_event while arming the event timer. It maintains event timers with high precision and time granularity of 1us (microsecond). [1] http://dpdk.org/dev/patchwork/patch/33525/ This patch set depends on: 1. http://dpdk.org/dev/patchwork/bundle/pbhagavatula/event_timerdev_v9 2. http://dpdk.org/dev/patchwork/patch/35216/ 3. http://dpdk.org/dev/patchwork/patch/36089/ v3 Changes: - change datapath function return from int to uint16_t. - Add missing state checks while arm/cancel. - add stats. v2 Changes: - Move common code changes to separate patches. - Reduce ifdef clutter. - fix improper return value (erik). - remove redundent ops assignment (erik). - update octeontx documentation. Pavan Nikhilesh (12): mempool/octeontx: probe timvf PCIe devices usertools: add Cavium TIM as an event device event/octeontx: add support to create and free timer adapter event/octeontx: add support to start and stop timer device event/octeontx: add event timer stats get and reset event/octeontx: add multiproducer timer arm and cancel event/octeontx: add single producer timer arm variant event/octeontx: add burst mode for timer arm event/octeontx: optimize timer adapter resolution parameters event/octeontx: add option to use fpavf as chunk pool doc: update eventdev OcteonTx documentation maintainers: claim responsibility for octeontx timvf MAINTAINERS | 4 + doc/guides/eventdevs/octeontx.rst | 9 + drivers/event/octeontx/Makefile | 7 + drivers/event/octeontx/meson.build | 4 +- drivers/event/octeontx/ssovf_evdev.c | 3 + drivers/event/octeontx/timvf_evdev.c | 408 +++++++++++++++++++ drivers/event/octeontx/timvf_evdev.h | 215 ++++++++++ drivers/event/octeontx/timvf_worker.c | 161 ++++++++ drivers/event/octeontx/timvf_worker.h | 445 +++++++++++++++++++++ drivers/mempool/octeontx/Makefile | 1 + drivers/mempool/octeontx/meson.build | 1 + drivers/mempool/octeontx/octeontx_mbox.h | 7 + drivers/mempool/octeontx/octeontx_timvf.c | 145 +++++++ .../octeontx/rte_mempool_octeontx_version.map | 3 + usertools/dpdk-devbind.py | 4 +- 15 files changed, 1415 insertions(+), 2 deletions(-) create mode 100644 drivers/event/octeontx/timvf_evdev.c create mode 100644 drivers/event/octeontx/timvf_evdev.h create mode 100644 drivers/event/octeontx/timvf_worker.c create mode 100644 drivers/event/octeontx/timvf_worker.h create mode 100644 drivers/mempool/octeontx/octeontx_timvf.c -- 2.16.3