Re: Crashes with ixgbe on FreeBSD 8

2010-05-26 Thread Robin Sommer

On Tue, May 25, 2010 at 12:03 -0700, I wrote:

 /usr/src/sys/dev/ixgbe/ixgbe.c:833: warning: implicit declaration of function 
 'drbr_needs_enqueue'

So, I've now simply copied that function over and, indeed, that not
only compiles but gives me a working 2.2.0 driver, enabling me to
capture traffic in a stable fashion as far as I can tell so far ...

My question: is simply pasting this function into RELEASE a
reasonable fix, or am I missing out on further changes and am thus
getting myself into trouble in some form?

Robin

-- 
Robin Sommer * Phone +1 (510) 666-2886 * ro...@icir.org 
ICSI/LBNL* Fax   +1 (510) 666-2956 *   www.icir.org
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Crashes with ixgbe on FreeBSD 8

2010-05-26 Thread Jack Vogel
Well, its one way to do it, and no, its not a problem, what I was planning
on doing was copying the macro into my header file.

Jack

On Wed, May 26, 2010 at 1:00 PM, Robin Sommer ro...@icir.org wrote:


 On Tue, May 25, 2010 at 12:03 -0700, I wrote:

  /usr/src/sys/dev/ixgbe/ixgbe.c:833: warning: implicit declaration of
 function 'drbr_needs_enqueue'

 So, I've now simply copied that function over and, indeed, that not
 only compiles but gives me a working 2.2.0 driver, enabling me to
 capture traffic in a stable fashion as far as I can tell so far ...

 My question: is simply pasting this function into RELEASE a
 reasonable fix, or am I missing out on further changes and am thus
 getting myself into trouble in some form?

 Robin

 --
 Robin Sommer * Phone +1 (510) 666-2886 * ro...@icir.org
 ICSI/LBNL* Fax   +1 (510) 666-2956 *   www.icir.org

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Crashes with ixgbe on FreeBSD 8

2010-05-25 Thread Robin Sommer

On Wed, May 19, 2010 at 09:47 -0700, you wrote:

 issue this morning but I will try and check the change into HEAD
 this afternoon then you will able to just pull that and the driver
 will drop into 8 REL with no problem.

I'm trying to compile 2.2.0 with RELEASE, but I get the following
error:

/usr/src/sys/dev/ixgbe/ixgbe.c: In function 'ixgbe_mq_start_locked':
/usr/src/sys/dev/ixgbe/ixgbe.c:833: warning: implicit declaration of function 
'drbr_needs_enqueue'
/usr/src/sys/dev/ixgbe/ixgbe.c:833: warning: nested extern declaration of 
'drbr_needs_enqueue'

Is there an easy way to get around this?

Thanks,

Robin

-- 
Robin Sommer * Phone +1 (510) 666-2886 * ro...@icir.org 
ICSI/LBNL* Fax   +1 (510) 666-2956 *   www.icir.org
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Crashes with ixgbe on FreeBSD 8

2010-05-19 Thread Robin Sommer

On Tue, May 18, 2010 at 22:28 -0700, you wrote:

 Yes, download the latest code, oh hmmm, can  you install STABLE,
 because there's one small issue that will cause a problem on 8 REL,
 but if that's a big problem I can also give you a patch so it will work.

Jack, thanks for the reply. I could upgrade to STABLE but I as I
have quite a number of machines in my setup (and not not all of them
need the driver) I would prefer to stay with RELEASE if that is an
option. So if you could send me a patch, that would be very helpful.

 What I'd like to see you try is the newest code that I checked into
 HEAD today, that's what I am planning for 8.1 and I want as much
 testing as I can get anyway.

Sure, I'd be happy to try that. Can this be back-ported to RELEASE
as well or does it need HEAD?

Thanks!

Robin

-- 
Robin Sommer * Phone +1 (510) 666-2886 * ro...@icir.org 
ICSI/LBNL* Fax   +1 (510) 666-2956 *   www.icir.org
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Crashes with ixgbe on FreeBSD 8

2010-05-19 Thread Jack Vogel
It will work on 8 RELEASE just fine except for a macro define that ALTQ
required that's not in RELEASE, what I did was stick the define into the
header
and all was well. I was thinking that I would not check that change in but I
now
see it will probably be useful to have it in the mainstream. I have another
hot
issue this morning but I will try and check the change into HEAD this
afternoon
then you will able to just pull that and the driver will drop into 8 REL
with no
problem.

Jack


On Wed, May 19, 2010 at 9:20 AM, Robin Sommer ro...@icir.org wrote:


 On Tue, May 18, 2010 at 22:28 -0700, you wrote:

  Yes, download the latest code, oh hmmm, can  you install STABLE,
  because there's one small issue that will cause a problem on 8 REL,
  but if that's a big problem I can also give you a patch so it will work.

 Jack, thanks for the reply. I could upgrade to STABLE but I as I
 have quite a number of machines in my setup (and not not all of them
 need the driver) I would prefer to stay with RELEASE if that is an
 option. So if you could send me a patch, that would be very helpful.

  What I'd like to see you try is the newest code that I checked into
  HEAD today, that's what I am planning for 8.1 and I want as much
  testing as I can get anyway.

 Sure, I'd be happy to try that. Can this be back-ported to RELEASE
 as well or does it need HEAD?

 Thanks!

 Robin

 --
 Robin Sommer * Phone +1 (510) 666-2886 * ro...@icir.org
 ICSI/LBNL* Fax   +1 (510) 666-2956 *   www.icir.org

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Crashes with ixgbe on FreeBSD 8

2010-05-18 Thread Jack Vogel
Hi Robin,

Yes, download the latest code, oh hmmm, can  you install STABLE,
because there's one small issue that will cause a problem on 8 REL,
but if that's a big problem I can also give you a patch so it will work.

What I'd like to see you try is the newest code that I checked into
HEAD today, that's what I am planning for 8.1 and I want as much
testing as I can get anyway.

I believe that the version on our external page has problems when
you exceed 32 vectors, the new code will reduce that by going to
queues rather than individual rx and tx vectors, it also fixes the
problem underlying it anyway.

Regards,

Jack


On Tue, May 18, 2010 at 9:21 PM, Robin Sommer ro...@icir.org wrote:

 Hi all,

 I'm running into crashes with the ixgbe driver on a FreeBSD
 8.0-RELEASE system equipped with an Intel X520-SR2 (and using a
 Supermicro X8DTU-F motherboard). I was wondering whether somebody
 might have seen this before.

 I updated the driver to the latest version I found on Intel's
 download page, which is 2.0.1. However, the moment I run tcpdump on
 my ix1 interface (which is connected to a switch's monitor port), I
 see almost immediate crashes of the kind below. Sometimes tcpdump
 outputs a few 10s of packets before the system crashes, but most of
 the time it doesn't even get that far.

 I saw that 8.0-STABLE comes with a more recent version of the
 driver. Any chance that that might fix the problem? Any other
 thoughts?

 Thanks,

 Robin

 - cut ---

 syslog from crash:

 May 14 16:42:24 bart kernel: ix1: link state changed to UP
 May 14 16:43:34 bart kernel: ix1: promiscuous mode enabled
 May 14 16:43:35 bart kernel:
 May 14 16:43:35 bart kernel:
 May 14 16:43:35 bart kernel: Fatal trap 12: page fault while in kernel mode
 May 14 16:43:35 bart kernel: cpuid = 5; apic id = 05
 May 14 16:43:35 bart kernel: fault virtual address  =
 0x80403d38d3b8
 May 14 16:43:35 bart kernel: fault code = supervisor read data,
 page not present
 May 14 16:43:35 bart kernel: instruction pointer=
 0x20:0x808437fe
 May 14 16:43:35 bart kernel:
 May 14 16:43:35 bart kernel: stack pointer  =
 0x28:0xff82b34d5970
 May 14 16:43:35 bart kernel: frame pointer  =
 0x28:0xff82b34d5980
 May 14 16:43:35 bart kernel: code segment   = base 0x0, limit
 0xf, type 0x1b
 May 14 16:43:35 bart kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
 May 14 16:43:35 bart kernel: processor eflags   = interrupt enabled,

 Driver initalization:

 ix0: Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.0.1 port
 0xec00-0xec1f mem 0xf8f8-0xf8ff,0xf8f7c006
 ix0: Using MSIX interrupts with 33 vectors
 ix0: [ITHREAD]
 [...]
 ix0: Ethernet address: 00:1b:21:55:7f:d8
 ix0: PCI Express Bus: Speed 5.0Gb/s Width x8
 ix1: Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.0.1 port
 0xe880-0xe89f mem 0xf8e8-0xf8ef,0xf8e7c006
 ix1: Using MSIX interrupts with 33 vectors
 ix1: [ITHREAD]
 [...]
 ix1: Ethernet address: 00:1b:21:55:7f:d9
 ix1: PCI Express Bus: Speed 5.0Gb/s Width x8

 ifconfig ix1

 ix1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

  
 options=5bbRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,LRO
ether 00:1b:21:55:7f:d9
media: Ethernet autoselect (10Gbase-SR full-duplex)
status: active



 --
 Robin Sommer * Phone +1 (510) 666-2886 * ro...@icir.org
 ICSI/LBNL* Fax   +1 (510) 666-2956 *   www.icir.org
 ___
 freebsd-net@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org