From patchwork Fri Mar 29 22:37:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 10877871 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 931C113B5 for ; Fri, 29 Mar 2019 22:38:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D44029082 for ; Fri, 29 Mar 2019 22:38:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 701B5291C5; Fri, 29 Mar 2019 22:38:31 +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 75D1029082 for ; Fri, 29 Mar 2019 22:38:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730384AbfC2Wi1 (ORCPT ); Fri, 29 Mar 2019 18:38:27 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:50405 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730473AbfC2Wi0 (ORCPT ); Fri, 29 Mar 2019 18:38:26 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from saeedm@mellanox.com) with ESMTPS (AES256-SHA encrypted); 30 Mar 2019 01:38:21 +0300 Received: from sx1.mtl.com ([172.16.5.10]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x2TMcJ3g012644; Sat, 30 Mar 2019 01:38:19 +0300 From: Saeed Mahameed To: saeed@mellanox.com, Leon Romanovsky Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, Saeed Mahameed Subject: [PATCH mlx5-next 00/14] Mellanox, mlx5 next updates 2019-03-29 Date: Fri, 29 Mar 2019 15:37:50 -0700 Message-Id: <20190329223804.8954-1-saeedm@mellanox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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 Hi, This series includes some misc shared code updates for mlx5-next branch. From Maxim, Remove un-used macros and spinlock from mlx5 code. From Aya, Expose Management PCIE info register layout and add rate limit print macros. From Tariq, Compilation warning fix in fs_core.c From Vu, Huy and Saeed, Improve mlx5 initialization flow: The goal is to provide a better logical separation of mlx5 core device initialization flow and will help to seamlessly support creating different mlx5 device types such as PF, VF and SF mlx5 sub-function virtual devices. Mlx5_core driver needs to separate HCA resources from pci resources. Its initialize/load/unload will be broken into stages: 1. Initialize common data structures 2. Setup function which initializes pci resources (for PF/VF) or some other specific resources for virtual device 3. Initialize software objects according to hardware capabilities 4. Load all mlx5_core components It is also necessary to detach mlx5_core mdev name/message from pci device mdev->pdev name/message for a clearer report/debug of different mlx5 device types. Thanks, Saeed. --- Aya Levin (2): net/mlx5: Add rate limit print macros net/mlx5: Expose MPEIN (Management PCIE INfo) register layout Huy Nguyen (4): net/mlx5: Make mlx5_core messages independent from mdev->pdev net/mlx5: Use dev->priv.name instead of dev_name net/mlx5: Replace dev_err/warn/info by mlx5_core_err/warn/info net/mlx5: Add explicit bar address field Maxim Mikityanskiy (2): net/mlx5: Remove unused MLX5_*_DOORBELL_LOCK macros net/mlx5: Remove spinlock support from mlx5_write64 Saeed Mahameed (5): net/mlx5: Remove redundant init functions parameter net/mlx5: Split mdev init and pci init net/mlx5: Move health and page alloc init to mdev_init net/mlx5: Function setup/teardown procedures net/mlx5: Break load_one into three stages Tariq Toukan (1): net/mlx5: Fix false compilation warning drivers/infiniband/hw/mlx5/cmd.c | 4 +- drivers/infiniband/hw/mlx5/main.c | 8 +- drivers/infiniband/hw/mlx5/mr.c | 3 +- drivers/infiniband/hw/mlx5/qp.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 22 +- .../mlx5/core/diag/fw_tracer_tracepoint.h | 4 +- drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 +- .../ethernet/mellanox/mlx5/core/fpga/conn.c | 2 +- .../ethernet/mellanox/mlx5/core/fpga/core.h | 21 +- .../net/ethernet/mellanox/mlx5/core/fs_core.c | 2 +- .../net/ethernet/mellanox/mlx5/core/health.c | 44 +- .../net/ethernet/mellanox/mlx5/core/main.c | 473 ++++++++++-------- .../ethernet/mellanox/mlx5/core/mlx5_core.h | 29 +- drivers/net/ethernet/mellanox/mlx5/core/uar.c | 2 +- include/linux/mlx5/cq.h | 2 +- include/linux/mlx5/doorbell.h | 39 +- include/linux/mlx5/driver.h | 3 + include/linux/mlx5/mlx5_ifc.h | 51 +- 18 files changed, 398 insertions(+), 315 deletions(-)