Discussion:
ixg(4) and Intel X540?
(too old to reply)
Hauke Fath
2015-02-20 12:14:27 UTC
Permalink
Hi,

I have a batch of servers here with an Intel X540-T1 10GbE card that I
had hoped would be recognized as ixg(4) by NetBSD, but no...

pci1 at ppb0 bus 1
vendor 0x8086 product 0x1528 (ethernet network, revision 0x01) at pci1
dev 0 function 0 not configured

OpenBSD 5.6 probes it as

ix0 at pci1 dev 0 function 0 "Intel X540T" rev. 0x01: msi, address
a0:36:9f:23:21:fc

but then fails to detect a carrier.

FreeBSD 10.1 probes it as

ix0: <Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.5.15>
mem 0xf6000000-0xf61fffff,0xf6200000-0xf6203fff irq 16 at device 0.0 on
pci1
ix0: Using MSIX interrupts with 5 vectors
ix0: Ethernet address: a0:36:9f:23:21:fc
ix0: PCI Express Bus: Speed 5.0GT/s Width x8

and then fails to recognize the cd drive it just booted from, so I
couldn't run ifconfig.

I understand that the NetBSD ixg(4) was ported from FreeBSD
<http://comments.gmane.org/gmane.os.netbsd.devel.network/12284>. What
would it take to support the X540?

Cheerio,
hauke
--
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-3281

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Hisashi T Fujinaka
2015-02-20 15:38:16 UTC
Permalink
I would suggest suggest sending the card to someone who volunteered to
look at the driver (like msaitoh) but doesn't have the hardware.
Post by Hauke Fath
Hi,
I have a batch of servers here with an Intel X540-T1 10GbE card that I
had hoped would be recognized as ixg(4) by NetBSD, but no...
pci1 at ppb0 bus 1
vendor 0x8086 product 0x1528 (ethernet network, revision 0x01) at pci1
dev 0 function 0 not configured
OpenBSD 5.6 probes it as
ix0 at pci1 dev 0 function 0 "Intel X540T" rev. 0x01: msi, address
a0:36:9f:23:21:fc
but then fails to detect a carrier.
FreeBSD 10.1 probes it as
ix0: <Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.5.15>
mem 0xf6000000-0xf61fffff,0xf6200000-0xf6203fff irq 16 at device 0.0 on
pci1
ix0: Using MSIX interrupts with 5 vectors
ix0: Ethernet address: a0:36:9f:23:21:fc
ix0: PCI Express Bus: Speed 5.0GT/s Width x8
and then fails to recognize the cd drive it just booted from, so I
couldn't run ifconfig.
I understand that the NetBSD ixg(4) was ported from FreeBSD
<http://comments.gmane.org/gmane.os.netbsd.devel.network/12284>. What
would it take to support the X540?
Cheerio,
hauke
--
Hisashi T Fujinaka - ***@twofifty.com
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Christos Zoulas
2015-02-20 15:53:00 UTC
Permalink
Post by Hisashi T Fujinaka
I would suggest suggest sending the card to someone who volunteered to
look at the driver (like msaitoh) but doesn't have the hardware.
Or he could try to merge the diffs from FreeBSD, the code was similar
last time I checked.

christos


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Hisashi T Fujinaka
2015-02-20 16:03:21 UTC
Permalink
Post by Christos Zoulas
Post by Hisashi T Fujinaka
I would suggest suggest sending the card to someone who volunteered to
look at the driver (like msaitoh) but doesn't have the hardware.
Or he could try to merge the diffs from FreeBSD, the code was similar
last time I checked.
Really? The FreeBSD driver for 1G Intel parts is much more like the
Linux driver and ours is this one-file thing that I couldn't decipher. I
never looked at the 10G driver because I was afraid it would be similar.

At a minimum there's some PHY code you're going to copy over (PHYs are
supposed to set themselves up with no help but that's really nonsense)
and some device IDs. Then comes the validation.
--
Hisashi T Fujinaka - ***@twofifty.com
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Hauke Fath
2015-02-20 19:00:49 UTC
Permalink
Post by Christos Zoulas
Or he could try to merge the diffs from FreeBSD, the code was similar
last time I checked.
Well, if this hadn't been intimidating enough...

% ls -l
src/sys/dev/pci/ixgbe/
total 820
drwxr-xr-x 2 hf wheel 512 Feb 20 12:31 CVS
-rw-r--r-- 1 hf wheel 1885 Aug 12 2011 LICENSE
-rw-r--r-- 1 hf wheel 8252 Aug 12 2011 README
-rw-r--r-- 1 hf wheel 169689 Feb 12 12:48 ixgbe.c
-rw-r--r-- 1 hf wheel 15294 Feb 12 12:48 ixgbe.h
-rw-r--r-- 1 hf wheel 41859 Aug 12 2011 ixgbe_82598.c
-rw-r--r-- 1 hf wheel 69297 Oct 17 15:34 ixgbe_82599.c
-rw-r--r-- 1 hf wheel 33715 Oct 17 15:34 ixgbe_api.c
-rw-r--r-- 1 hf wheel 7882 Aug 12 2011 ixgbe_api.h
-rw-r--r-- 1 hf wheel 99878 Oct 17 15:34 ixgbe_common.c
-rw-r--r-- 1 hf wheel 6342 Aug 12 2011 ixgbe_common.h
-rw-r--r-- 1 hf wheel 19924 Aug 12 2011 ixgbe_mbx.c
-rw-r--r-- 1 hf wheel 5795 Aug 12 2011 ixgbe_mbx.h
-rw-r--r-- 1 hf wheel 5990 Feb 12 12:48 ixgbe_netbsd.c
-rw-r--r-- 1 hf wheel 3373 Oct 17 15:34 ixgbe_netbsd.h
-rw-r--r-- 1 hf wheel 5736 Oct 17 15:34 ixgbe_osdep.h
-rw-r--r-- 1 hf wheel 51520 Oct 17 15:34 ixgbe_phy.c
-rw-r--r-- 1 hf wheel 6537 Aug 12 2011 ixgbe_phy.h
-rw-r--r-- 1 hf wheel 123536 Oct 17 15:34 ixgbe_type.h
-rw-r--r-- 1 hf wheel 15689 Aug 12 2011 ixgbe_vf.c
-rw-r--r-- 1 hf wheel 4443 Aug 12 2011 ixgbe_vf.h
-rw-r--r-- 1 hf wheel 108801 Oct 17 15:34 ixv.c
-rw-r--r-- 1 hf wheel 11158 Dec 3 2012 ixv.h
%

... this surely would have been:

% foreach ff ( src/sys/dev/pci/ixgbe/*.[ch] )
foreach? test -f ../other/freebsd-svn/sys/dev/ixgbe/`basename $ff` ||
continue
foreach? echo -n "$ff "
foreach? diff -u $ff ../other/freebsd-svn/sys/dev/ixgbe/`basename $ff`
| wc -l
foreach? end
src/sys/dev/pci/ixgbe/ixgbe.c 7112
src/sys/dev/pci/ixgbe/ixgbe.h 492
src/sys/dev/pci/ixgbe/ixgbe_82598.c 810
src/sys/dev/pci/ixgbe/ixgbe_82599.c 2266
src/sys/dev/pci/ixgbe/ixgbe_api.c 906
src/sys/dev/pci/ixgbe/ixgbe_api.h 188
src/sys/dev/pci/ixgbe/ixgbe_common.c 3615
src/sys/dev/pci/ixgbe/ixgbe_common.h 154
src/sys/dev/pci/ixgbe/ixgbe_mbx.c 163
src/sys/dev/pci/ixgbe/ixgbe_mbx.h 145
src/sys/dev/pci/ixgbe/ixgbe_osdep.h 199
src/sys/dev/pci/ixgbe/ixgbe_phy.c 1550
src/sys/dev/pci/ixgbe/ixgbe_phy.h 210
src/sys/dev/pci/ixgbe/ixgbe_type.h 5118
src/sys/dev/pci/ixgbe/ixgbe_vf.c 500
src/sys/dev/pci/ixgbe/ixgbe_vf.h 147
src/sys/dev/pci/ixgbe/ixv.c 742
src/sys/dev/pci/ixgbe/ixv.h 166
%

Plus, there is

% wc -l ../other/freebsd-svn/sys/dev/ixgbe/ixgbe_x540.?
1000 ../other/freebsd-svn/sys/dev/ixgbe/ixgbe_x540.c
67 ../other/freebsd-svn/sys/dev/ixgbe/ixgbe_x540.h
1067 total
%

I tried porting openbsd's changes to msk(4) a while back (kern/49270),
and even got it into ifconfig(8), but never a packet on the wire. And
that's a far cry in complexity compared to the above. So I am kind of
discouraged.

Cheerio,
hauke
--
Hauke Fath <***@Espresso.Rhein-Neckar.DE>
Ernst-Ludwig-Straße 15
64625 Bensheim
Germany

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Christos Zoulas
2015-02-20 19:50:54 UTC
Permalink
On Feb 20, 8:00pm, ***@Espresso.Rhein-Neckar.DE (Hauke Fath) wrote:
-- Subject: Re: ixg(4) and Intel X540?

| On Fri, 20 Feb 2015 15:53:00 +0000 (UTC), Christos Zoulas wrote:
| > Or he could try to merge the diffs from FreeBSD, the code was similar
| > last time I checked.
|
| Well, if this hadn't been intimidating enough...

I don't think it is as bad as it looks :-)

christos

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Hisashi T Fujinaka
2015-02-20 23:38:02 UTC
Permalink
Post by Christos Zoulas
-- Subject: Re: ixg(4) and Intel X540?
| > Or he could try to merge the diffs from FreeBSD, the code was similar
| > last time I checked.
|
| Well, if this hadn't been intimidating enough...
I don't think it is as bad as it looks :-)
No, that's BETTER. That means less delta between the FreeBSD and NetBSD
driver.
--
Hisashi T Fujinaka - ***@twofifty.com
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Hauke Fath
2015-02-22 13:41:22 UTC
Permalink
Post by Hisashi T Fujinaka
I would suggest suggest sending the card to someone who volunteered to
look at the driver (like msaitoh) but doesn't have the hardware.
That might be difficult; the NICs weren't cheap, and we're talking
about state property here.

I could set up a development machine or two with root access and serial
console, though.

Cheerio,
hauke
--
Hauke Fath <***@Espresso.Rhein-Neckar.DE>
Ernst-Ludwig-Straße 15
64625 Bensheim
Germany

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Christos Zoulas
2015-02-22 15:47:00 UTC
Permalink
Post by Hauke Fath
Post by Hisashi T Fujinaka
I would suggest suggest sending the card to someone who volunteered to
look at the driver (like msaitoh) but doesn't have the hardware.
That might be difficult; the NICs weren't cheap, and we're talking
about state property here.
I could set up a development machine or two with root access and serial
console, though.
That would work.

christos


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Masanobu SAITOH
2015-02-23 02:51:36 UTC
Permalink
Hi, all.
Post by Hisashi T Fujinaka
Post by Hauke Fath
Post by Hisashi T Fujinaka
I would suggest suggest sending the card to someone who volunteered to
look at the driver (like msaitoh) but doesn't have the hardware.
That might be difficult; the NICs weren't cheap, and we're talking
about state property here.
For 1G, it's ok for me to buy by myself, but for 10G it's too expensive
as you said :)
Post by Hisashi T Fujinaka
Post by Hauke Fath
-- Subject: Re: ixg(4) and Intel X540?
| > Or he could try to merge the diffs from FreeBSD, the code was similar
| > last time I checked.
|
| Well, if this hadn't been intimidating enough...
I don't think it is as bad as it looks
No, that's BETTER. That means less delta between the FreeBSD and NetBSD
driver.
--
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee
Yes. dyoung@ ported the driver to make the delta small. It's not bad.
The problem is that no one have maintained the driver for your years...

I have no my own Intel 10G card. A few months ago, I borrowed an 82598(old!)
card.
Post by Hisashi T Fujinaka
Post by Hauke Fath
I could set up a development machine or two with root access and serial
console, though.
That would work.
christos
--
-----------------------------------------------
SAITOH Masanobu (***@execsw.org
***@netbsd.org)

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Masanobu SAITOH
2015-02-23 02:54:36 UTC
Permalink
Post by Hauke Fath
Post by Hisashi T Fujinaka
I would suggest suggest sending the card to someone who volunteered to
look at the driver (like msaitoh) but doesn't have the hardware.
That might be difficult; the NICs weren't cheap, and we're talking
about state property here.
I could set up a development machine or two with root access and serial
console, though.
Give me the accessibility.
Post by Hauke Fath
Cheerio,
hauke
--
-----------------------------------------------
SAITOH Masanobu (***@execsw.org
***@netbsd.org)

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Hauke Fath
2015-02-23 08:43:57 UTC
Permalink
Post by Masanobu SAITOH
Post by Hauke Fath
I could set up a development machine or two with root access and serial
console, though.
Give me the accessibility.
Thanks for looking into this!

Unfortunately, I am currently home with the flu. I will get back to you
as soon as I am back to work.

Do you need any particular network / machine setup?

Cheerio,
hauke
--
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-3281

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Masanobu SAITOH
2015-02-23 12:00:33 UTC
Permalink
Post by Masanobu SAITOH
The problem is that no one have maintained the driver for your years...
s/your/four/
Post by Masanobu SAITOH
Post by Masanobu SAITOH
Post by Hauke Fath
I could set up a development machine or two with root access and serial
console, though.
Give me the accessibility.
Thanks for looking into this!
Unfortunately, I am currently home with the flu. I will get back to you
as soon as I am back to work.
OK.
Post by Masanobu SAITOH
Do you need any particular network / machine setup?
At least, please connect another machine which can reply to ICMP echo
on the same L2.
Post by Masanobu SAITOH
Cheerio,
hauke
--
-----------------------------------------------
SAITOH Masanobu (***@execsw.org
***@netbsd.org)

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...