From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0042.outbound.protection.outlook.com [104.47.34.42]) by dpdk.org (Postfix) with ESMTP id 0AE0A1B1D4 for ; Fri, 16 Feb 2018 22:37:36 +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=8PlXWQbNZRwKjFpydSc/YPebsRRnVNHHNhK0ji7u0jQ=; b=XclbZJ0pyG8E/gHwaOIOk4i16le5VQTLY0ythJkplNLzgA9uyYmzx/jBUpEHC9JPO/OdJ8iNBDKHT8Vi+yJU6e50aSUFianZzmDwpBB5zsEiTUaI96ERugkGzc1t6sodAeBjvb5rvwZQbvIyjvFE+GnKCmxPtBKqc1GvDVDd/94= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3467.namprd07.prod.outlook.com (2603:10b6:4:67::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Fri, 16 Feb 2018 21:37:32 +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: Sat, 17 Feb 2018 03:06:50 +0530 Message-Id: <20180216213700.3415-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR01CA0090.apcprd01.prod.exchangelabs.com (2603:1096:3:15::16) To DM5PR07MB3467.namprd07.prod.outlook.com (2603:10b6:4:67::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a43420b0-1794-46f9-5a01-08d575857dc0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM5PR07MB3467; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 3:aGOYxrOmgo4BQulPn7NMbbGJ5FUnMQ1fxvbhgwZFRVsXg6j1bXHBu9A2FJJtAUyJxHJJn4D54Xvwu6UXDk0pe11t8sY2t/RUyZaeyZlmY/yT1Az3v/mv3pW6nR2CVTnoAOiBCRRT0AQv4p8OgRww6S24PVC1gz4KCvnPU1RoFThcKLH2wa6qHXj+y5f4d5IvC81oINx9KRNDKvLR89uWV5bot1EM4uYw7YY1TC3TY/REIOn+pfntJMJaKyss3PjB; 25:mP0e7eJ6KN5y2oYsQT5QW1hLwPIVEs2KFR2Lqtx2MAmudpGFdYle7ZNdwv/ACKqlKOFreV/EkNQqknHm053m3lki6fmEplw1J/eSCI3p4B3JOhbbnejIBOdaZlv4IaMjfe2sMBB4WWN/fncJBK+V4LJRmxzmaIBpwmZWCWoSCsvskeeY6Qg+IKniCWRUdPKbjMA10UnXT61mkOpfawz2N9ggzggzCQtUJdAtHyLh0Q4GjtQxxFIJtE6/PQl90YaAJdpwwcvO+WfqrnEd3Vk2SprdPFFJIAvo8CYy+kZ5dqg51+dwgYdWPJUMSS/B41CBJBKSMfM992TnYyt2FXfHFw==; 31:AYupaH30OHHGLmvnJqFu86tt5zwzGSn2BRaXBAdu5H4gXtrcDe5iazUqL2u84OgJxcf2DuKZ5ci/mGCLrL40kiPPdqXPwWgKy1bAEXmXMgI3NTS/5fzwRYBsikUqCLhdHR4zdKVtThLHEvqr7TGGqyr0Ucw2kjO0rSaVjCpFiUS8wOhItMFWU9oEfNU1MarXBjgmMZK+5jC+apswZaVi9IloI/kQDgUh4gWQ6irqjfw= X-MS-TrafficTypeDiagnostic: DM5PR07MB3467: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 20:tG2AV2FX+p6QqapIL2sDv+sphHQV5IPLPGfcQ0MZ+uTnPhobQMlWWSmYfR5hMMCUXZwlFynGeuFeY25fPFmFXVbda/8UvDhbIfw770/0HE6EEeKnZVQeEk/bDtoacm6nDr/zPtgoVJgCaOKmNEwy5Pq9St1KDjgzjkgSOcvyScbphC6igUwtUixB9mznRF/yIyrhkcXDg9LjjXTBrwUYVwBSNC7sqZFoB17yn0tFzPT8Hc/QUxF6MqNqEoGx/icLsJyocse/56dOiHJ1ic5LUesHmkNA9Mk3uAhBUVnQC20SKsNLKpFynPkzZqYbQHAgRFumOx9J4kF/38tPZ9H7sehk7rb9bzy1BYgJAjIlYzsnV/7Zcm0Q5uJfoBuvum3ZycBd1UvKPn2wtmE/vGGrrVEQig0IfE1k409+8bEx+C3utRGFn05HrVjYbFlFBRyNO84yaJJulUlX1/EhjJefi262iYais+TN6qMV6z85Js7HXbXQw3/+DekVeQ1HroqouSuS8lHPPDSdgBzCQB5Gdqg9c+dqKqVW8GHkGN5+0WB6RxDb8OhaeWgt2IeCDlOSIAtwEOQUhcAjfu9D4PAssc8i3ioW5Wa8GA9w+0DSKO4=; 4:IzAofA/XwdYWNU5CjIas+rXgFbTRXezDkrxZTDtrp//dbUv06eTgMr2Ut5aLlmRbeKFzqkYvePk9awIER7TJ/6Bt3zXRO7jnnBJcyRbO+zpJe2+DaxqmGk06AdZG95HQDvcu/pxDJDZF99xzTiZZ270jWh6PRkYZCiccMloT41UDZdBVs3MuymS1Hw6d18C1HaR8WezhD2Ec39kf9WMhvFkfHItSujJEODhwoBhjE+A3HJ/OPlw8z1fp4MIeZAqPzCs6G8qoBSnS38AYj+1oNA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3231101)(944501161)(93006095)(3002001)(6041288)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:DM5PR07MB3467; BCL:0; PCL:0; RULEID:; SRVR:DM5PR07MB3467; X-Forefront-PRVS: 0585417D7B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(366004)(396003)(39860400002)(39380400002)(376002)(189003)(199004)(6486002)(25786009)(386003)(6506007)(53936002)(42882006)(53376002)(5009440100003)(4326008)(107886003)(6666003)(6306002)(59450400001)(6512007)(16586007)(106356001)(316002)(105586002)(36756003)(478600001)(2906002)(47776003)(6116002)(3846002)(1076002)(97736004)(66066001)(8676002)(51416003)(50466002)(966005)(48376002)(81156014)(5660300001)(68736007)(8936002)(52116002)(16526019)(26005)(305945005)(1857600001)(72206003)(81166006)(50226002)(7736002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3467; H:localhost.localdomain; 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; DM5PR07MB3467; 23:vc0f6rc+qP60VKplgql1O5mEhRrMgrQYNOyHDsAMC?= =?us-ascii?Q?QgeNINhWdQkUfkoA9D2qq0kFeDVljwl98VJT9P2EJtVlOnXAeNBsJSXJR4u4?= =?us-ascii?Q?bHFrQ9XrN0dq9nXbqUFeGYKolY4mkrc8cUXX1qN6h+e68WYX0zV+zvvJ5i9W?= =?us-ascii?Q?ue7utJGBqRinlPBJbpbVKsa4o2Bh02rK6bE52Fm2kf+vwGXH6q/YMHok5J6X?= =?us-ascii?Q?jn1v6+YtaDYAR0EbkaKwXI3MgOp5leL6JxI4Fot0O51H22RxvafplZ0/I3J6?= =?us-ascii?Q?+LBxKUe6e1O9INDnYRqH+Wr9WdT1Lzb8tPRx5kLbM5Y+tA8WWJL/o0YbKSPS?= =?us-ascii?Q?2J3NN1XZyl4zF5XVdrmpcqEjWPvI16BdrhS6gV6K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Q?N5HD3sQw9YXMTfp+HX271muosiVz+wi1tgb9bqV?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 6:aBnxeii/DE5/8uXlmVkwo1ryrvCCaV3jSD8d7TOmkYVmwMnq4y5mAl/OpMZPByqrfzYUN251dqD0k3qJvw+OVsmW5h085k3kIN3xAmhnq0Zxo1DncgzZyEiQJ+14Io53ZTcPw0x2rAhQch4m/dQrTRw3/P49h+q2go9Kcv2h/6IWq8+WbQm2T6Sk9LpvBdpUK8h+6IFHMs84rzXUKFRStMmNS25AgeZ46B0b7XKHKCuYRL5BxckOmeXwd7+omQ1xMW/YnZ/sLd1hXXtZZsBLhx+tNTGuZOZjsAPRoWrIicO6Y4S1L9qwtaLDGVwuQ8E9jJoLe+e/M8eK4nEKBAyDfl5uiIsi4IUU21qCfIJLWT4=; 5:cPK5+4t13asMnzCYwW1NCUO6hCmrv2CCBfIm2ajpdsAr7dJQW01gWMDBfXkDduBAckhdDmUIUtaNvWoNXCP6iG+bnc+dTt+v72NP49dVOl8VgPv7etzw027bFj2DsZIuka/px56i2LhQVbo4Vpe8b56qQUV6fmB1OFNixAOsdoE=; 24:pINJRNM2+kMyKNzQPJQxwthjHH4yxW+huYi3CtbKOb/sMJ22/sWI45ShyyNC+D7wWKzNeKFQUc45937N3fl3EgxcKnT0IhqOaCE1pVjodlI=; 7:2imIm69Tea4FycElzRbbVGt5eRXWLAkqAWHFaBgC7vFamEqq2xQdNo91EhNCmwZNbbcjyO6AngI436MVllOyLZ8B+VvbO4Nxx0PsCzXAzJd0a2mcPfq35XWpI5EZEtLjhiwqImzf9PJt1dBlUg7hktLjBg8o2yCIfLgO3T6HqZvyGm/eLAlS7F7z+R7xGRin366Ygdaw/up/pE7xtKw7GCreUPx67+kZDdV4Ts05TNJ3zDGozbFMeFWtAq2FTkTf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2018 21:37:32.2870 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a43420b0-1794-46f9-5a01-08d575857dc0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3467 Subject: [dpdk-dev] [PATCH 0/9] 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: Fri, 16 Feb 2018 21:37:36 -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/ Pavan Nikhilesh (9): eal: add API to align variable to previous power of 2 mempool/octeontx: probe timvf PCIe devices event/octeontx: add support to create and free timer adapter event/octeontx: add support to start and stop timer device event/octeontx: add support for arm and cancel event/octeontx: add single producer timer arm variant event/octeontx: optimize timer adapter resolution parameters event/octeontx: add option to use fpavf as chunk pool event/octeontx: add timer adapter SW traversal routine config/common_base | 2 + drivers/event/octeontx/Makefile | 6 + drivers/event/octeontx/meson.build | 4 +- drivers/event/octeontx/ssovf_evdev.c | 3 + drivers/event/octeontx/timvf_evdev.c | 393 ++++++++++++++ drivers/event/octeontx/timvf_evdev.h | 208 +++++++ drivers/event/octeontx/timvf_worker.c | 118 ++++ drivers/event/octeontx/timvf_worker.h | 601 +++++++++++++++++++++ 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 + lib/librte_eal/common/include/rte_common.h | 36 ++ usertools/dpdk-devbind.py | 8 + 15 files changed, 1535 insertions(+), 1 deletion(-) 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.1