From patchwork Wed Apr 4 08:26:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Morey-Chaisemartin X-Patchwork-Id: 10322205 X-Patchwork-Delegate: leon@leon.nu Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A5BB460390 for ; Wed, 4 Apr 2018 08:26:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A26A28DEC for ; Wed, 4 Apr 2018 08:26:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E55728DF0; Wed, 4 Apr 2018 08:26:52 +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=-6.9 required=2.0 tests=BAYES_00,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 F179A28DEC for ; Wed, 4 Apr 2018 08:26:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751219AbeDDI0v (ORCPT ); Wed, 4 Apr 2018 04:26:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:59640 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbeDDI0u (ORCPT ); Wed, 4 Apr 2018 04:26:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DBF4CADFF for ; Wed, 4 Apr 2018 08:26:48 +0000 (UTC) From: Nicolas Morey-Chaisemartin Subject: [PATCH rdma-core] kernel-boot: modules: Load ib_umad for RoCE hardware To: linux-rdma@vger.kernel.org Openpgp: preference=signencrypt Message-ID: <792b6447-1efb-a977-5d9b-22b4351c5bcb@suse.de> Date: Wed, 4 Apr 2018 10:26:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Language: fr-xx-classique+reforme1990 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 ib_umad is required to get ibstat working. Auto-load it for RoCE hardware so it works out of the box $ ibstat ibwarn: [4638] umad_init: can't read ABI version from /sys/class/infiniband_mad/abi_version (No such file or directory): is ib_umad module loaded? ibpanic: [4638] main: can't init UMAD library: No such file or directory $ modprobe ib_umad $ ibstat CA 'bnxt_re0' CA type: Broadcom NetXtreme-C/E RoCE Driver HCA Number of ports: 1 Firmware version: 20.8.29.0 Hardware version: 0x14e4 Node GUID: 0x9edc71fffeb69930 System image GUID: 0x9edc71fffeb69930 Port 1: State: Down Physical state: Disabled Rate: 100 Base lid: 0 LMC: 0 SM lid: 0 Capability mask: 0x041d0000 Port GUID: 0x9edc71fffeb69930 Link layer: Ethernet Signed-off-by: Nicolas Morey-Chaisemartin --- kernel-boot/modules/roce.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel-boot/modules/roce.conf b/kernel-boot/modules/roce.conf index 8e4927ce26f0..982b929f429a 100644 --- a/kernel-boot/modules/roce.conf +++ b/kernel-boot/modules/roce.conf @@ -1,2 +1,5 @@ # These modules are loaded by the system if any RDMA over Converged Ethernet # device is installed + +# Access to fabric management SMPs and GMPs from userspace. +ib_umad