Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2014 11:36:15 +0300
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        hackers@freebsd.org
Subject:   Re: Mellanox 10gb driver?
Message-ID:  <8FD6967F-E130-4FBC-B93B-D5D508279E11@cs.huji.ac.il>
In-Reply-To: <53EF09DC.60601@selasky.org>
References:  <5FA0CF8C-2C93-4639-AA6C-40D3C278FE0F@cs.huji.ac.il> <53EDF13D.5050206@selasky.org> <0E7861FF-AB45-421F-8BA0-0EAD02B85AF0@cs.huji.ac.il> <3E7F3970-0541-402F-B855-EDA299B5BBC1@cs.huji.ac.il> <53EF0260.9030806@selasky.org> <7D49FD54-AA37-4F04-952E-5A07754762E5@cs.huji.ac.il> <53EF09DC.60601@selasky.org>

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

On Aug 16, 2014, at 10:35 AM, Hans Petter Selasky <hps@selasky.org> =
wrote:

> On 08/16/14 09:32, Daniel Braniss wrote:
>>=20
>> On Aug 16, 2014, at 10:04 AM, Hans Petter Selasky <hps@selasky.org> =
wrote:
>>=20
>>> On 08/16/14 09:02, Daniel Braniss wrote:
>>>>=20
>>>> On Aug 16, 2014, at 9:53 AM, Daniel Braniss <danny@cs.huji.ac.il> =
wrote:
>>>>=20
>>>>>=20
>>>>> On Aug 15, 2014, at 2:38 PM, Hans Petter Selasky <hps@selasky.org> =
wrote:
>>>>>=20
>>>>>> On 08/15/14 12:55, Daniel Braniss wrote:
>>>>>>> hi all,
>>>>>>> any idea if there is/will be a driver for:
>>>>>>>=20
>>>>>>> none3@pci0:5:0:0:       class=3D0x020000 card=3D0x005515b3 =
chip=3D0x100315b3 rev=3D0x00 hdr=3D0x00
>>>>>>>    vendor     =3D 'Mellanox Technologies'
>>>>>>>    device     =3D 'MT27500 Family [ConnectX-3]'
>>>>>>>    class      =3D network
>>>>>>>    subclass   =3D ethernet
>>>>>>>=20
>>>>>>=20
>>>>>> Hi,
>>>>>>=20
>>>>>> If you build the kernel using MK_OFED=3Dyes, your hardware is =
supported by the following modules:
>>>>>>=20
>>>>>> .if ${MK_OFED} !=3D "no" || defined(ALL_MODULES)
>>>>>> _mlx4=3D          mlx4
>>>>>> _mlx4ib=3D        mlx4ib
>>>>>> _mlxen=3D         mlxen
>>>>>> _mthca=3D         mthca
>>>>>> .endif
>>>>>>=20
>>>>>> You need to run latest -stable due to some compile issues which =
have been fixed.
>>>>>>=20
>>>>>> =97HPS
>>>>>=20
>>>>> hi,
>>>>>=20
>>>>> I added WITH_MK_OFED=3Dyes to the latest stable but no joy,  it=92s =
sill reported as none.
>>>>> is there some magic that i=92m missing?
>>>>> thanks,
>>>>> 	danny
>>>>=20
>>>> some more info, if it helps:
>>>>=20
>>>> pcib5: <ACPI PCI-PCI bridge> at device 6.0 on pci0
>>>> pcib0: allocated type 3 (0xdf200000-0xdf3fffff) for rid 20 of pcib5
>>>> pcib0: allocated type 3 (0xd5000000-0xd57fffff) for rid 24 of pcib5
>>>> pcib5:   domain            0
>>>> pcib5:   secondary bus     5
>>>> pcib5:   subordinate bus   5
>>>> pcib5:   memory decode     0xdf200000-0xdf3fffff
>>>> pcib5:   prefetched decode 0xd5000000-0xd57fffff
>>>> pcib5:   special decode    ISA
>>>> pci5: <ACPI PCI bus> on pcib5
>>>> pci5: domain=3D0, physical bus=3D5
>>>> found-> vendor=3D0x15b3, dev=3D0x1003, revid=3D0x00
>>>>         domain=3D0, bus=3D5, slot=3D0, func=3D0
>>>>         class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0
>>>>         cmdreg=3D0x0006, statreg=3D0x0010, cachelnsz=3D16 (dwords)
>>>>         lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 =
(0 ns)
>>>>         intpin=3Da, irq=3D15
>>>>         powerspec 3  supports D0 D3  current D0
>>>>         MSI-X supports 128 messages in map 0x10
>>>>         map[10]: type Memory, range 64, base 0xdf300000, size 20, =
enabled
>>>> pcib5: allocated memory range (0xdf300000-0xdf3fffff) for rid 10 of =
pci0:5:0:0
>>>>         map[18]: type Prefetchable Memory, range 64, base =
0xd5000000, size 23, enabled
>>>> pcib5: allocated prefetch range (0xd5000000-0xd57fffff) for rid 18 =
of pci0:5:0:0
>>>> pcib5: matched entry for 5.0.INTA
>>>> pcib5: slot 0 INTA hardwired to IRQ 35
>>>> pci5: <network, ethernet> at device 0.0 (no driver attached)
>>>=20
>>> Hi,
>>>=20
>>> Did you "kldload mlxen" ?
>>>=20
>>> --HPS
>>>=20
>>=20
>> im running 9.3 stable, is this for 10?
>=20
> No, look in:
>=20
> sys/modules/mlxen
>=20

I solved the puzzle!
added
	options OFED
	device mlxen
	device mlx4ib
	device mthca
to my kernel config and that did it - not sure the last 2 are needed.
now to connect and check, but that will have to wait till tomorrow.

thanks,
	danny

> --HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8FD6967F-E130-4FBC-B93B-D5D508279E11>