From patchwork Mon Jan 14 11:24:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 10762219 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 0FB8B6C2 for ; Mon, 14 Jan 2019 11:24:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0087A286A9 for ; Mon, 14 Jan 2019 11:24:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6C2528821; Mon, 14 Jan 2019 11:24:26 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 856A4286A9 for ; Mon, 14 Jan 2019 11:24:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfANLYZ (ORCPT ); Mon, 14 Jan 2019 06:24:25 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:43368 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbfANLYY (ORCPT ); Mon, 14 Jan 2019 06:24:24 -0500 Received: by mail-pl1-f196.google.com with SMTP id gn14so10018069plb.10 for ; Mon, 14 Jan 2019 03:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=bWP0u9QamimmJ9dq79/zf+KCx+dW2uS4U3NoC/WNVIo=; b=SWZFKE+O+TtnLQpotVmFrtMMsWQUbPNX2p2MvS9+WZWxAW6I7i7p4qL4re62OiftPi W5Q7hgIlWQtHKk9M+yLwSL2/hGpNXvPDmCOxQDh8Qn++YZMb2W2u2CIF3oxYYLCw6TWC R1uWt701RnVJ35ySFomTrg72ravzdprGvPUKc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bWP0u9QamimmJ9dq79/zf+KCx+dW2uS4U3NoC/WNVIo=; b=FMbChz/QSd+GYiuMjcPal43/PQuyU0oB222ZEJ1fqb28DIqbXFzscLULYsMtjOo0te +6pnWI3OEL3DoKfCn6OOFCkaA9OyO2zk/wp8dRkmQpMpiCUiLwjht1cBP3xlxeW5dW/6 cYv6VegOHqcxcp/b2vWtbdg1wHp0Uvl2Egq9aud/Dzh87yfunAdVypdykWR687FwNb/S u2VkmM2b+iFalw9khv6AdRbTeUrnqfKNHvkRbr2kUyA6ZHz4lo/tggBb4xoQVO2XkMrt 6hcO5MdO8qSCZEhjqYcrhe25VptadeBqHeZjXKbSuOaBQ2+GyfRLxOxNtF2gUp1xm5np ziLw== X-Gm-Message-State: AJcUukdggvWOPYoZZueS7oDg5j22PBPgVTuVuPK7bT2sBnmPyVj6FD7a FfbUooihPunx0t2MvVMQEL8vFR1NYLAtkN9rO8Q9+VR6D1ZHiUNOwAxvrZwVThfVcPambrjoie8 5Pjdu60mBsiusBS0pjl4yrxGBj2g7uK4c7kuemfXQDSyFL2R1zMVwx9q0Yet3h7umjBbmCi3L4X VNlEc= X-Google-Smtp-Source: ALg8bN5N8h0NJV1bZtIQo4MXMd8LjTHDYiZgLBgvmyPqhlQkHzZsxXvO0n2/z6fQvtsd9R1it2XRcA== X-Received: by 2002:a17:902:b01:: with SMTP id 1mr25361645plq.331.1547465062918; Mon, 14 Jan 2019 03:24:22 -0800 (PST) Received: from neo00-el73.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id z10sm268894pfg.120.2019.01.14.03.24.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 03:24:22 -0800 (PST) From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, jgg@mellanox.com, Devesh Sharma Subject: [for-next V2 0/7] Add support for Broadcom's 57500 series of adapters Date: Mon, 14 Jan 2019 06:24:05 -0500 Message-Id: <1547465052-7622-1-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 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 is to enable RoCE on Broadcom's 57500 series of adapters. Patch 0001, 0002 and 0003 are handing the control path changes. Patch 0004 and 0005 are related to kernel space fast path. Patch 0006 handles the user-kernel ABI changes. Patch 0007 is to enable RoCE driver load on next gen chips. This patch series requires a patch from Linus git: commit 78793afbb0b9 ("bnxt_en: Increase context memory allocations on 57500 chips for RDMA.") Changelog: V1->V2 Rebased the series to the tip of for-next and fixed widespread code alignment. Patch 0001: - Replace chip_ctx pointer with static member in bnxt_re_dev structure. Patch 0002: - Fixed kbuild error on i386 arch. Using "depends on 64BIT" - Removed wmb before calling writeq in db-ring functions Patch 0003: - Fixed typo in the commit message Patch 0004: - Removed endian-ness fix from feature series. Patch 0005: - Fixed code formatting issues Patch 0006: - Implemented ABI range check as suggested by Jason and Leon Devesh Sharma (7): RDMA/bnxt_re: Add chip context to identify 57500 series RDMA/bnxt_re: Add 64bit doorbells for 57500 series RDMA/bnxt_re: Skip backing store allocation for 57500 series RDMA/bnxt_re: Enable GSI QP support for 57500 series RDMA/bnxt_re: Add extended psn structure for 57500 adapters RDMA/bnxt_re: Update kernel user abi to pass chip context RDMA/bnxt_en: Enable RDMA driver support for 57500 chip drivers/infiniband/hw/bnxt_re/Kconfig | 1 + drivers/infiniband/hw/bnxt_re/bnxt_re.h | 1 + drivers/infiniband/hw/bnxt_re/ib_verbs.c | 132 +++++++++++++-------- drivers/infiniband/hw/bnxt_re/main.c | 122 ++++++++++++++------ drivers/infiniband/hw/bnxt_re/qplib_fp.c | 160 ++++++++++++++++---------- drivers/infiniband/hw/bnxt_re/qplib_fp.h | 50 +++++++- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 37 ++++-- drivers/infiniband/hw/bnxt_re/qplib_rcfw.h | 47 +++++++- drivers/infiniband/hw/bnxt_re/qplib_res.c | 10 +- drivers/infiniband/hw/bnxt_re/qplib_res.h | 30 ++++- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 3 +- drivers/infiniband/hw/bnxt_re/roce_hsi.h | 160 ++++++++++++++++---------- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 3 - include/uapi/rdma/bnxt_re-abi.h | 7 +- 14 files changed, 533 insertions(+), 230 deletions(-)