From owner-freebsd-infiniband@freebsd.org Sat Apr 16 22:33:54 2016 Return-Path: Delivered-To: freebsd-infiniband@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 0D78FAED859 for ; Sat, 16 Apr 2016 22:33:54 +0000 (UTC) (envelope-from justin@postgresql.org) Received: from meldrar.postgresql.org (meldrar.postgresql.org [IPv6:2a02:c0:301:0:ffff::31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.postgresql.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5D6316EE for ; Sat, 16 Apr 2016 22:33:53 +0000 (UTC) (envelope-from justin@postgresql.org) Received: from 82-69-92-196.dsl.in-addr.zen.co.uk ([82.69.92.196] helo=[172.16.1.14]) by meldrar.postgresql.org with esmtpsa (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1arYmi-0002S6-Oq; Sat, 16 Apr 2016 22:33:51 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: How to force IB cards to come up in IB mode? From: Justin Clift In-Reply-To: Date: Sat, 16 Apr 2016 23:33:45 +0100 Cc: "freebsd-infiniband@freebsd.org" , Hans Petter Selasky , Yuval Bason Content-Transfer-Encoding: 7bit Message-Id: <0DE8164F-FB16-40E0-A512-F233658C52A0@postgresql.org> References: <9C08621D-AAE9-42D0-8079-716CDD9BC5E0@postgresql.org> <223ee8f3dd5240779d39bf78c383c50c@AMSPR05MB0580.eurprd05.prod.outlook.com> To: Meny Yossefi X-Mailer: Apple Mail (2.1878.6) X-Pg-Spam-Score: -2.9 (--) X-BeenThere: freebsd-infiniband@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Infiniband on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2016 22:33:54 -0000 On 16 Apr 2016, at 15:55, Meny Yossefi wrote: > Hi Justin, > > It seems as the pre-boot configuration didn't work. > > loader.conf doesn't work on all sysctl params AFAIK. The solution in this case turned out to be super simple... I was just using the wrong file. :D It should have been /etc/sysctl.conf for the settings. Adding this in there worked for the initial port mode setup: # Ensure the IB card is in IB mode sys.device.mlx4_core0.mlx4_port1="ib" sys.device.mlx4_core0.mlx4_port2="ib" Apologies for the noise. ;) Regards and best wishes, Justin Clift -- "My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there." - Indira Gandhi