Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2016 21:59:27 +0100
From:      Justin Clift <justin@postgresql.org>
To:        Meny Yossefi <menyy@mellanox.com>
Cc:        "freebsd-infiniband@freebsd.org" <freebsd-infiniband@freebsd.org>, Hans Petter Selasky <hanss@mellanox.com>, Yuval Bason <yuvalba@mellanox.com>
Subject:   Re: How to force IB cards to come up in IB mode?
Message-ID:  <037CBF0B-10E4-47FB-97A1-B281E8BE5151@postgresql.org>
In-Reply-To: <DB5PR05MB1765AAD188E07C726CE5C005C3690@DB5PR05MB1765.eurprd05.prod.outlook.com>
References:  <9C08621D-AAE9-42D0-8079-716CDD9BC5E0@postgresql.org> <223ee8f3dd5240779d39bf78c383c50c@AMSPR05MB0580.eurprd05.prod.outlook.com> <DB5PR05MB1765AAD188E07C726CE5C005C3690@DB5PR05MB1765.eurprd05.prod.outlook.com>

index | next in thread | previous in thread | raw e-mail

On 16 Apr 2016, at 15:55, Meny Yossefi <menyy@mellanox.com> wrote:
> Hi Justin,
> 
> 
> It seems as the pre-boot configuration didn't work.
> 
> loader.conf doesn't work on all sysctl params AFAIK.
> 
> 
> Is it a pre-boot only issue?
> 
> What is the current sysctl output for those ports?
> 
> Have you tried switching to IB after system was loaded?
> 
> 
> If I remember correctly, the driver was set for Eth configuration by default.
> 
> Of course, this is reversible..

Looking at the 10.3 code, this seems to be the port selection clause:

  https://github.com/freebsd/freebsd/blob/master/sys/ofed/drivers/net/mlx4/main.c#L706-L736

In the comments inside that clause, it says:

  "If IB and ETH are supported, we set the port type according to user
   selection of port type; if there is no user selection, take the FW hint"

  https://github.com/freebsd/freebsd/blob/master/sys/ofed/drivers/net/mlx4/main.c#L716-L718

There is no man page for mlx4, so I'm a bit stumped for how to select
the port type for "user selection" as mentioned there.

Any hints? :)

(And sure, things could be forced in the code with something like:

  dev->caps.port_type[i] = MLX4_PORT_TYPE_IB;

... for each of the ports.  But that's a temporary only solution and we
probably find the proper one instead. ;D

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



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?037CBF0B-10E4-47FB-97A1-B281E8BE5151>