From owner-freebsd-current@freebsd.org Sat Feb 17 14:22:26 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5039CF12683; Sat, 17 Feb 2018 14:22:26 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 E6A7A80C92; Sat, 17 Feb 2018 14:22:25 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (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 7B8CD26027E; Sat, 17 Feb 2018 15:22:24 +0100 (CET) Subject: Re: mlx4 weird error "Failed to map EQ context memory" after update To: Greg V , freebsd-net@freebsd.org, freebsd-current@freebsd.org References: <48f48a42-9115-8d97-5093-0e7173b36533@unrelenting.technology> <90712e46-15a9-6107-b0f8-c64ac333c7e1@unrelenting.technology> From: Hans Petter Selasky Message-ID: <1ab033e3-114f-eeed-47e5-3b144240f2cc@selasky.org> Date: Sat, 17 Feb 2018 15:19:28 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <90712e46-15a9-6107-b0f8-c64ac333c7e1@unrelenting.technology> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2018 14:22:26 -0000 On 02/17/18 14:51, Greg V wrote: > On 01/20/2018 12:18, Hans Petter Selasky wrote: >> On 01/20/18 00:17, Greg V via freebsd-net wrote: >>> >>> On 01/19/2018 12:54, Hans Petter Selasky wrote: >>>> On 01/18/18 14:11, Greg V wrote: >>>>> Hi. I've upgraded CURRENT from December 19 >>>>> (https://github.com/freebsd/freebsd/commit/fd53ccf393f4f8ac1948e97eca108) >>>>> to today >>>>> (https://github.com/freebsd/freebsd/commit/391a83c86bb91ae3840cf37b7de478f42cc97e2a) >>>>> and my Mellanox ConnectX-2 network card stopped working: >>>>> >>>>> mlx4_core0: mem >>>>> 0xfe100000-0xfe1fffff,0xf0800000-0xf0ffffff irq 32 at device 0.0 on >>>>> pci7 >>>>> mlx4_core: Mellanox ConnectX core driver v3.4.1 (October 2017) >>>>> mlx4_core: Initializing mlx4_core >>>>> mlx4_core0: command 0xffa failed: fw status = 0x1 >>>>> mlx4_core0: Failed to map EQ context memory, aborting >>>>> device_attach: mlx4_core0 attach returned 12 >>>>> >>>>> >>>>> Loading the OLD mlx4.ko and mlx4en.ko on the NEW kernel actually >>>>> does work fine! >>>>> >>>>> Reverting all mlx4 changes between then and now (no big changes, >>>>> mostly just the 1 << 31 thing from D13858) and rebuilding the mlx4 >>>>> module with CC=clang50 does not help. >>>>> >>>>> What happened?! > Upgraded CURRENT again today, the problem went away :) OK, nice to know. --HPS