From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0076.outbound.protection.outlook.com [104.47.38.76]) by dpdk.org (Postfix) with ESMTP id 3ED175F71 for ; Wed, 14 Mar 2018 14:53:00 +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=/KgUouOLeg/T96jeGeAAaG0Z8nHaFlx3b6N7g5IugQc=; b=cSZvopJWXqOxG5sDQd1d8iiHXxdcxGPW/ySNDR0d3R8Jy6GoXw9z68wsczfHzzr58UY4B9L/A4cc1hJzlPd8x2wc08p/Vt4fakcqeE8+boCdEN/ZnGVDJmSS5P9zJMZXVAJAkUqQicAn5qyX7sQIhEAGuCRYGJm5uaHJOskoXGg= 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.567.14; Wed, 14 Mar 2018 13:52:55 +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: Wed, 14 Mar 2018 19:22:22 +0530 Message-Id: <20180314135233.31282-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.2 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: DM5PR20CA0005.namprd20.prod.outlook.com (2603:10b6:3:93::15) To MWHPR07MB3470.namprd07.prod.outlook.com (2603:10b6:301:63::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e9b3235f-bb7f-475f-c5cb-08d589b2e4a1 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:d+QEvTIsrqG2wgw1+bq9Ac5phIDuN0ek6yqitfnCVfionxsYiEKSU9WN2LJ1WhxUDZGA6GYYxCTL8V4JnLvxiaSvm6pXZxWTjIu/fzwCuNy5EItpwAzkC9XdtVVPV5sTYnB80EPecZuiL/7amlklzxQi9Aq7zaKhQS3Mw6oNXt+NB8a4vBAfNSuDoujKoK843LV0vixztRgug7kQcPOQA2+BPSj0v8wkBq6gYTKHV+XxuGFE8FahQe4hsPc30WT2; 25:SOtuF/Eb2HXbfbl6Za/z3CqbSR99qyj/Xyl4KcjtguD2rgq9NYS9irTbE4Rs7K0kS4HtCBpQ8xPBiPnEhaF3EKbN7KI0vms0YqyUpeFUsXVorPolZ12Drs9Q5LKEGoPGUu/TTtf8KMswj4Dgsc8aahynUU6z7nE+EvjjBoPV+mAdHQ/ZAaN4Q80eD03oGi2t/6AIx9VZhSvm7/D95HSbVU0c2+ffBe/NeE+B07U47U/IfZk2ZmePFpKvkqNwgG0Av9KU4muCeVtX9+1jZLuCEPS9sro4S/gzPX7ll5kK9KVyltFU3Y9zhmeMTIsnoKiPXGMfNsZmu/VbyvSak6SSig==; 31:5bluOZweKvGrc98uGbwMD9zREHSLxZ77LeB6X8MJhqG+DTk4mmCbasCSXSf2y8cHM7gEkhuA4vHuj0KtgoWjKBbmzWjLmaB+Tgh+RA5CaVJJ3exv0sf0ZQGw8GaJCeL3fmdT2lIDSJFenwJrMhAgFRXPadbFlAUhChF+KZe4vXZzVHCTkMYQ/E4Rhh24lwkgVrPZDQA6riw6cvGdYlbSrvTC4jWXYPwrJAN4CUI6neo= X-MS-TrafficTypeDiagnostic: MWHPR07MB3470: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3470; 20:MaJwW3FmYLI2j8dvruFTG+cyizH/qkozTpP13tyD3RlpGz4dgG8hKlyyGjLth9/7PnxJ5hG8CZWW/Uy7a3nw73848tdehEZh/I3l0Ial9VpZCqFGi/V7r1I1dLQEHOsUQs9xrFumeHKgJav8EkLn34qeOW9YaFR+MQ6ScbWcccvFqKGmmY6dX99o1+Gur0+AgfZiv+XYymZS5BvEK/Z7Ccr7nvrRRTtbJXj3ZJgI/aSHRKu5p9Bvt45i9vLVc+WvnHl5hjdkYMDK3lSYLuAuV5PNedKh7Mn2sbS902gF2+fY4AozJkep37N7HZKIm7NPha6jFVRV+wuenbuai940FjhtTX/Ok9oj0M9y2SfG3ndENbfs8fjrxfVnbWrNZZ8gq9UDZG/AfSmwiM4JvWdENrSCUPkbpAl0SssMFZAMkwsiA+u/6EOZExaSWkzalt2C6aVCnFMaAJWwlFvpNrtUi5x4jrTPt+7GjJHj6gBPCWsjFFBojRXk9slNn9TeUh/XPXpaR27P+/BOtJw6Ym8yViXAy/lFmtINd0mRpjPWz5ut/bqZDNS25rgUKk2FRGn7MqN4UdgcAIpKgUgII8aKvSW//47ZO8RXlYcuk2oZ41Y=; 4:jhJ6jS0A0XPIBXMEA3/4VaL34ux/MIKwFazf+0ZRbMk35XZvoPPTwzJIihqEsPk+y2G2abUmEH1GNapAB6xxNDtwq81K/patRig7Btr43nzIKZ/LgS4A8DPwziNyOddT8lKOURBmX9yDSJUmih5NlwnihotzaeUI79Bq+EKVJasWow0BMiAHsgMhuxLWNICLOpIH0+cZt/LCBn90Z0IF037R4+jxf3G7RB6RJdvt8+vCmF4SihrUr54XbvhVMrRcbIwuq+JRFRjlqpbbftVWvA== 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)(944501244)(52105095)(3002001)(93006095)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:MWHPR07MB3470; BCL:0; PCL:0; RULEID:; SRVR:MWHPR07MB3470; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(39380400002)(366004)(346002)(396003)(189003)(199004)(53936002)(6512007)(3846002)(4326008)(6666003)(6306002)(6506007)(48376002)(26005)(105586002)(68736007)(97736004)(47776003)(2950100002)(386003)(1076002)(6486002)(106356001)(52116002)(53376002)(305945005)(107886003)(7736002)(69596002)(76176011)(66066001)(5660300001)(59450400001)(51416003)(25786009)(36756003)(50466002)(966005)(1720100001)(316002)(16586007)(72206003)(53416004)(1857600001)(6116002)(478600001)(8676002)(81156014)(81166006)(42882007)(2906002)(5009440100003)(50226002)(16526019)(8936002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3470; H:ltp-pvn.caveonetworks.com; 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; MWHPR07MB3470; 23:EQl93G6WPc0xO36yFmQ3Ob4PCyyYGYSpdBeapcbTr?= =?us-ascii?Q?n5IrUk0XxBcrbcsB4FZBsYNtBsLVPfbQz4eu1pCAESoxO3Y/z4+yCQEU7Cag?= =?us-ascii?Q?bn3KXPEzXlGU7c4ApkJ/aF5nbZK8Cz2ATab2pMBGPmkelL7nXP/Z/DsqtD7I?= =?us-ascii?Q?8rpOzhwPvCGX5z2Yp/MpLpd5MRyQSr8IVthry+dTyaZeKP8r+1PXfL7jFkf/?= =?us-ascii?Q?c32NcRjC6SbMLdhmihC38YAMdevMUMUqa2MxfIX5IyilYpM1cxa49dK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bjNlfGhAlzuwhKo6yRwKqhyVzwNFqN1mLyAd9k=; 24:T3FkYpRMWwd4kv/T8BlZ16yE6pvkOAulTSlhqAwTh9j08C1/ZhwDaw5TqmKOsu6jaO8ksHAa96WHcvckDvhda1nDcwyZOjUxFJ/oYBzGZgs=; 7:HwHIjbLa5xuJksXbXgBPoq3lHV9Fp1iq0g4liLtZYW9uRXExNd039hg1ucZn56UngrU+7xhQco41Iv5Vze+MabR9KBfkILzB3lpi3r2oV9mGytPt50Cdt1vXsge4iLaMIGA9O8QAI5KvakIM2e3WbEM5X+vgGiw6fYp9CGrs/tsQnvDGzotANduW0/XuReosDygTCIlP9YM3q6U08Rf0Nqge62asTQ+bhTp4RAFfyeMy4JKdWd7+XrldbS1r8X14 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 13:52:55.5910 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e9b3235f-bb7f-475f-c5cb-08d589b2e4a1 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 v2 00/11] 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: Wed, 14 Mar 2018 13:53:02 -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_timer_dev_v7 2. http://dpdk.org/dev/patchwork/patch/35216/ 3. http://dpdk.org/dev/patchwork/patch/36089/ 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 (11): 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 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 | 382 ++++++++++++++++++ drivers/event/octeontx/timvf_evdev.h | 214 ++++++++++ drivers/event/octeontx/timvf_worker.c | 127 ++++++ 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, 1354 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.2