From patchwork Sun Jan 27 12:01:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10782873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86F6891E for ; Sun, 27 Jan 2019 12:40:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7999C2B299 for ; Sun, 27 Jan 2019 12:40:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CE852B296; Sun, 27 Jan 2019 12:40:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 109C52B296 for ; Sun, 27 Jan 2019 12:40:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726521AbfA0MkV (ORCPT ); Sun, 27 Jan 2019 07:40:21 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:54138 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726453AbfA0MkV (ORCPT ); Sun, 27 Jan 2019 07:40:21 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 27 Jan 2019 14:40:13 +0200 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [10.7.2.17]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x0RCeDxe017527; Sun, 27 Jan 2019 14:40:13 +0200 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [127.0.0.1]) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8) with ESMTP id x0RC1kBc016752; Sun, 27 Jan 2019 14:01:46 +0200 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id x0RC1jom016751; Sun, 27 Jan 2019 14:01:45 +0200 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, michaelgur@mellanox.com, jgg@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core 0/3] Expose PCI atomic capabilities Date: Sun, 27 Jan 2019 14:01:31 +0200 Message-Id: <1548590494-16684-1-git-send-email-yishaih@mellanox.com> X-Mailer: git-send-email 1.8.2.3 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series from Michael exposes PCI atomic operations capabilities to user space applications PCI atomic operations were first introduced in PCIe Base Specification 2.1. The supported operations are swap, fetch & add and compare & swap. Each operation can be supported in a few different operation sizes therefore we expose the capabilities in a bitmask of supported operation sizes per operation type. Each device needs to enable the above PCI capabilities and report on to let applications use them. The mlx5 driver exposes the capabilities by using the DEVX interface. PR was sent: https://github.com/linux-rdma/rdma-core/pull/458 Michael Guralnik (3): mlx5: Infrastructure for building mailbox for devx verbs: Expose PCI atomic operations capabilities in query_device_ex mlx5: Report PCI atomic capabilities libibverbs/man/ibv_query_device_ex.3 | 17 ++++++ libibverbs/verbs.h | 17 ++++++ providers/mlx5/mlx5_ifc.h | 100 +++++++++++++++++++++++++++++++++++ providers/mlx5/mlx5dv.h | 59 +++++++++++++++++++++ providers/mlx5/verbs.c | 31 +++++++++++ 5 files changed, 224 insertions(+) create mode 100644 providers/mlx5/mlx5_ifc.h