From owner-freebsd-drivers@freebsd.org Mon Aug 29 17:07:40 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5A14BC7B98 for ; Mon, 29 Aug 2016 17:07:40 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AFEF03B9 for ; Mon, 29 Aug 2016 17:07:40 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5C74D1FE022; Mon, 29 Aug 2016 19:07:38 +0200 (CEST) Subject: Re: Issues with mlx5en ? To: George Neville-Neil , freebsd-drivers@freebsd.org References: <27D0515C-6567-447E-9B6C-8885538CDFD8@neville-neil.com> From: Hans Petter Selasky Message-ID: <11ee453b-1d4e-744c-65f5-7961f6cb61c7@selasky.org> Date: Mon, 29 Aug 2016 19:12:14 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <27D0515C-6567-447E-9B6C-8885538CDFD8@neville-neil.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 17:07:41 -0000 On 08/29/16 18:35, George Neville-Neil wrote: > Howdy, > > I'm trying to do some testing on the mlx5 cards at Sentex. WIth both > HEAD and stable11 I get this: > > root@mercat1:~ # kldload mlx5en > mlx5_core0: mem 0xf8000000-0xf9ffffff irq 32 at device 0.0 > on pci3 > mlx5_core0: INFO: firmware version: 12.100.6440 > mlx5_core: WARN: command failed, status bad parameter(0x3), syndrome > 0x5add95 > mlx5_core: WARN: mlx5_core0:mlx5_core_get_caps:305:(pid 763): > QUERY_HCA_CAP : type(9) opmode(1) Failed(-22) > mlx5_core0: ERR: query hca failed > mlx5_core0: ERR: mlx5_dev_init failed -22 > device_attach: mlx5_core0 attach returned 22 > mlx5_core0: mem 0xf6000000-0xf7ffffff irq 32 at device 0.1 > on pci3 > mlx5_core0: INFO: firmware version: 12.100.6440 > mlx5_core: WARN: command failed, status bad parameter(0x3), syndrome > 0x5add95 > mlx5_core: WARN: mlx5_core0:mlx5_core_get_caps:305:(pid 763): > QUERY_HCA_CAP : type(9) opmode(1) Failed(-22) > mlx5_core0: ERR: query hca failed > mlx5_core0: ERR: mlx5_dev_init failed -22 > device_attach: mlx5_core0 attach returned 22 > > this is the output of pciconf -lv > > none72@pci0:2:0:0: class=0x020700 card=0x000815b3 chip=0x101315b3 > rev=0x00 > hdr=0x00 > vendor = 'Mellanox Technologies' > device = 'MT27700 Family [ConnectX-4]' > class = network > none73@pci0:2:0:1: class=0x020700 card=0x000815b3 chip=0x101315b3 > rev=0x00 > hdr=0x00 > vendor = 'Mellanox Technologies' > device = 'MT27700 Family [ConnectX-4]' > class = network > > Thouhgts? Hi George, Did you try to upgrade the firmware? The latest official is 12.16.xxx? Also, did you try to set the port mode to ETH using: mlxconfig -d PCI_ID set LINK_TYPE_P1=2 mlxconfig -d PCI_ID set LINK_TYPE_P2=2 Links: http://www.mellanox.com/page/management_tools http://www.mellanox.com/page/firmware_NIC_FW_update --HPS