From patchwork Thu Jan 17 18:54:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 10768787 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 6494291E for ; Thu, 17 Jan 2019 18:55:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 522092A90F for ; Thu, 17 Jan 2019 18:55:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 456012AC6E; Thu, 17 Jan 2019 18:55:16 +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 DB1E52A90F for ; Thu, 17 Jan 2019 18:55:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727038AbfAQSzP (ORCPT ); Thu, 17 Jan 2019 13:55:15 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36555 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbfAQSzP (ORCPT ); Thu, 17 Jan 2019 13:55:15 -0500 Received: by mail-pf1-f194.google.com with SMTP id b85so5262436pfc.3 for ; Thu, 17 Jan 2019 10:55:14 -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=DaXoYxZOZt9LMPdEZ67ge+vordS8pk2Df1e97OLw/ic=; b=SrwJzjaU0Qcf6+Km/2vhY8t9ecu99JBbzzwOXoMHkCJ9DiiJmB4Tt+56TaD8oymlje /vPnIgsEWOD5J2A3yVvUhygXsfKp20JEJ5tD2k9E3R8o+hPmp81orz/95wqsxOpRUX/n l6Z4AHrQG/uszyuCzJh0+9mhbzQxDL+VpyAQA= 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=DaXoYxZOZt9LMPdEZ67ge+vordS8pk2Df1e97OLw/ic=; b=ahoGKGWq+km0rlq/SVW1iBLB+gm+okEUopCtJLh75KQVUYLBttB1pwxSzvX6758/CQ eUsNCsEDY2pvmZCdJzbs9Ru8QIlBcOysu1z03Gr2btmIWjHmzWdMsOVDns1RBLBPzet8 n1h89K9Eu+xGRkV1qBHQIIWDqFMMXEoGs8Y9inUQx7RuivhSRC9lJ3UQVsmlqeM1cmB/ wIbSEz7Y7WNECEcUL15QCRcY8xh+YLqim8IsNI/2pmZuldZ9Uxak+LqSgtBYk5PuZbq+ h2e6gAfb3X90GppRQodlb8UI0CKrWl4D9qo61XMPVsztQgqMBHYd0HLZwE3j9m/tBZJ2 FfUg== X-Gm-Message-State: AJcUukfDLUH7guyQfwUOKh3RD5HJ3DgMAhU7CNJBP5oU5RD2Mo9GYpMI dxbz9qfzhlWG33gt7yOXxz5FuZG8yF0rz8c4dJMeIUWLRcoouTVqkIvPkNvbfUhozXYWsh7rzKU J0zG2ZSsN/3LQNhxthLMBRAxkwBxWsWep2WNFXRg7/MguzKwzGqCUE1bA6NaN71HdshEnMKZKfv sz+3Y= X-Google-Smtp-Source: ALg8bN4d+6aBayhcD9QsIoMDLaOU0JVdtSyS7iVZ3/Ezz+UKI6NkKDnOhy6v3f9peAF+XS2nsA0O4Q== X-Received: by 2002:a63:374e:: with SMTP id g14mr14834169pgn.59.1547751314253; Thu, 17 Jan 2019 10:55:14 -0800 (PST) Received: from neo00-el73.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y191sm5882258pfg.56.2019.01.17.10.55.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 10:55:13 -0800 (PST) From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, jgg@mellanox.com, Devesh Sharma Subject: [for-next V3 0/7] Add support for Broadcom's 57500 series of adapters Date: Thu, 17 Jan 2019 13:54:53 -0500 Message-Id: <1547751300-23887-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: V2->V3 Patch 0006: - Implemented the comp_mask approach instead of changing the ABI version number. 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 | 11 ++ 14 files changed, 538 insertions(+), 229 deletions(-)