Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - MTU on Broadcom BCM5787M: Page 1 of 2 (37 Items)
   
MTU on Broadcom BCM5787M  
Hello All,

I'm doing an application with a Nova board that has two onboard Gigabit ethernet ports and I have run into a problem. 
The network detects and works fine, however, the applicaition requires a connection to a Prosilica camera with an MTU of
 around 8000. To be safe, I set the MTU of both interfeces to 9000, but the camera software reports dropped frames. The 
driver for this card not seem to set the MTU correctly or it may be a problem with the hardware itself. 

In order to verify this, I changed the MTU setting of the camera to 1000 (causing huge sacrifices in the framerate) and 
saw that the images were arriving properly. I would likt to use this board for my application but I absouloutely need 
the MTU to be around 8000


Here is a dump of ifconfig, Pci -vv is attached.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
        inet 127.0.0.1 netmask 0xff000000
en0: flags=80008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SHIM> mtu 9000
        capabilities rx=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        capabilities tx=6<TCP4CSUM,UDP4CSUM>
        enabled=0
        address: 00:08:9b:b5:70:51
        inet 192.168.99.3 netmask 0xffffff00 broadcast 192.168.99.255
en1: flags=80008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SHIM> mtu 9000
        capabilities rx=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        capabilities tx=6<TCP4CSUM,UDP4CSUM>
        enabled=0
        address: 00:08:9b:b5:70:52
        inet 10.0.0.138 netmask 0xffffff00 broadcast 10.0.0.255

Any input or comments would be appreciated.

Thanks,
Kevin
Attachment: Text pci.txt 28.92 KB
RE: MTU on Broadcom BCM5787M  
Given that this looks like you're using the tigon driver, I'm guessing
that you're running on 6.3.2?  Jumbo packet support (larger than 1500
bytes) isn't available with that driver.  I believe that the only driver
which may have supported this under 6.3.2 (with some caveats about
memory consumption) was the i82544.  Support for Jumbo packets is far
better in io-pkt on 6.4.0.

	Robet.

-----Original Message-----
From: KEvin Raymond [mailto:community-noreply@qnx.com] 
Sent: Thursday, February 05, 2009 1:51 PM
To: drivers-networking
Subject: MTU on Broadcom BCM5787M

Hello All,

I'm doing an application with a Nova board that has two onboard Gigabit
ethernet ports and I have run into a problem. The network detects and
works fine, however, the applicaition requires a connection to a
Prosilica camera with an MTU of around 8000. To be safe, I set the MTU
of both interfeces to 9000, but the camera software reports dropped
frames. The driver for this card not seem to set the MTU correctly or it
may be a problem with the hardware itself. 

In order to verify this, I changed the MTU setting of the camera to 1000
(causing huge sacrifices in the framerate) and saw that the images were
arriving properly. I would likt to use this board for my application but
I absouloutely need the MTU to be around 8000


Here is a dump of ifconfig, Pci -vv is attached.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
        inet 127.0.0.1 netmask 0xff000000
en0: flags=80008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SHIM> mtu
9000
        capabilities rx=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        capabilities tx=6<TCP4CSUM,UDP4CSUM>
        enabled=0
        address: 00:08:9b:b5:70:51
        inet 192.168.99.3 netmask 0xffffff00 broadcast 192.168.99.255
en1: flags=80008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SHIM> mtu
9000
        capabilities rx=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        capabilities tx=6<TCP4CSUM,UDP4CSUM>
        enabled=0
        address: 00:08:9b:b5:70:52
        inet 10.0.0.138 netmask 0xffffff00 broadcast 10.0.0.255

Any input or comments would be appreciated.

Thanks,
Kevin


_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21502
Re: RE: MTU on Broadcom BCM5787M  
Hello Robert,

Thanks for the quick reply.  I completely forgot to specify the OS, but uname -a returns QNX 6.4.0 2008/10/21 (some time
, 11 am?) x86pc x86.

What made you think I was running 6.3.2? Is there any way to force the system to use the new io-pkt?

Thanks,
Kevin
RE: RE: MTU on Broadcom BCM5787M  
Hi Kevin:

	The interface names being "en?" show that they're io-net style
drivers, so I thought that you were running io-net on 6.3.2.  Being too
clever... 
 And, of course, now I remember why the tigon3 is used by default.  The
tigon3 driver had better chip support than the NetBSD ported BGE driver
that we also ship, so we made that the default.

It looks like those NICs may be supported by the bge driver so you may
be in luck.

Can you try (as root)
# slay io-pkt-v4-hc
# /sbin/io-pkt-v4 -dbge
# /sbin/ifconfig

And see if the interfaces appear?  If that works then we can change the
enumerator file so that on start up, it uses the bge driver rather than
tigon3 and that should get your MTU setting to work.

	Robert.

-----Original Message-----
From: KEvin Raymond [mailto:community-noreply@qnx.com] 
Sent: Thursday, February 05, 2009 2:13 PM
To: drivers-networking
Subject: Re: RE: MTU on Broadcom BCM5787M

Hello Robert,

Thanks for the quick reply.  I completely forgot to specify the OS, but
uname -a returns QNX 6.4.0 2008/10/21 (some time, 11 am?) x86pc x86.

What made you think I was running 6.3.2? Is there any way to force the
system to use the new io-pkt?

Thanks,
Kevin

_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21510
Re: RE: RE: MTU on Broadcom BCM5787M  
Hello Robert,

Bad news, no network interfaces appeared after I restarted the io-pkt to use the BGE driver.

Are there any other drivers that could be compatible for this hardware?

Also, I was starting to think that the MTU may be set correctly, however the 1 Gigabit nic may only be transferring at 
100 megabit. Could this be possible with the tigon3 driver?

Thanks,
Kevin 
RE: RE: RE: MTU on Broadcom BCM5787M  
Unfortunately not...  The bge driver would be the only other candidate.
I just checked the NetBSD source and I can see that they added in
support for that particular card after we'd already shipped.  That was
one of the cards that is supported by tigon3 and not supported by the
bge driver. What this means is that we'll have to do a merge of the
NetBSD changes into our source tree but this could take some time to
happen, unfortunately.

In terms of checking out the link speed, type "usr/sbin/nicinfo" and see
what the link state is that's reported.  That'll tell you if you're
connected with a 100 or Gig link.

The only other thing that I can suggest is to try picking up an Intel
Pro 1000 NIC.  Those should be well supported with the devnp-i82544
driver (especially the newest one in the source tree).

Let me know how things go...

	Robert.
 

-----Original Message-----
From: KEvin Raymond [mailto:community-noreply@qnx.com] 
Sent: Thursday, February 05, 2009 4:24 PM
To: drivers-networking
Subject: Re: RE: RE: MTU on Broadcom BCM5787M

Hello Robert,

Bad news, no network interfaces appeared after I restarted the io-pkt to
use the BGE driver.

Are there any other drivers that could be compatible for this hardware?

Also, I was starting to think that the MTU may be set correctly, however
the 1 Gigabit nic may only be transferring at 100 megabit. Could this be
possible with the tigon3 driver?

Thanks,
Kevin 

_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21542
Re: RE: RE: RE: MTU on Broadcom BCM5787M  
Hey Robert,

It turns out that the gigabit network card is only running at 100 MBPS, and this is a huge problem for us. We have a 
programmer that has some time to look at this, but we are having a hard time tracking down the source for the QNX 
drivers. We would like to try to do the merge ourselves since we desperately need it.

Could you point us to where we could find the source for the QNX driver and what version of the NetBSD driver the 
current QNX one is based off of?

Thanks,
Kevin
RE: RE: RE: RE: MTU on Broadcom BCM5787M  
Hi Kevin:

   I actually took a look at the diffs already and they were much more straight forward than I thought they would be.  
I'll give you a driver to try out tomorrow (I think I'd better do at least SOME testing on it first, even if it DOES 
compile cleanly).

That being said, there's something very strange about that driver not auto-negotiating to Gig.  It's plugged into a Gig 
switch of course (?) (I had to ask).  You may also be able to force the link to Gig using the "speed=1000,duplex=1" 
options if they're supported by the driver.

  Robert.

-----Original Message-----
From: KEvin Raymond [mailto:community-noreply@qnx.com]
Sent: Thu 2/5/2009 5:33 PM
To: drivers-networking
Subject: Re: RE: RE: RE: MTU on Broadcom BCM5787M
 
Hey Robert,

It turns out that the gigabit network card is only running at 100 MBPS, and this is a huge problem for us. We have a 
programmer that has some time to look at this, but we are having a hard time tracking down the source for the QNX 
drivers. We would like to try to do the merge ourselves since we desperately need it.

Could you point us to where we could find the source for the QNX driver and what version of the NetBSD driver the 
current QNX one is based off of?

Thanks,
Kevin

_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21552


Attachment: Text winmail.dat 3.2 KB
Re: RE: RE: RE: RE: MTU on Broadcom BCM5787M  
Hello Robert,

Thanks for the good news. One of our guys was pushing ahead with the merge as well, and I will be testing your version 
as soon as we get it. If we have something useful that differs from yours I'll post that so you can have a look. I 
believe that the Tigon driver was having trouble with the broadcom's gigabit functionality, and as you stated before 
there is no way to change the MTU (although it does change in ifconfig, netinfo shows it has been unchanged).

I tested the network in two conditions: The first was connecting to a prosilica GigE camera (which can auto-negociate 
down to 100 megabit and cut it's framerate by 3) and the second was with a linksys gigabit switch. In both situations 
netinfo showed it was down to 100 megabit.

I'll set up some tests to stress the driver and the card with lots of packets, but please let me know tomorrow if there 
are any specific tests you recommend. This is a pretty high priority for me so I don't mind investing some time to test 
it.

Thanks for all your help and quick replies,
Kevin
 
MTU on Broadcom BCM5787M  
Hi Kevin:
	x86 Driver is attached.  It's got basic sanity testing on it
with the card that I have in house, but I don't have a 5787, so you'll
be our test case for that card.   The new code has also been checked
into the repository (trunk/sys/dev/pci/if_bge.c and if_bgereg.h.  Builds
from trunk/sys/dev/bge ).

On another note, it looks like we've potentially identified the link
problem with the tigon3 driver as well, so that may well be another
option for you if this doesn't work out.

	Let me know how it goes...

		Robert.

-----Original Message-----
From: KEvin Raymond [mailto:community-noreply@qnx.com] 
Sent: Thursday, February 05, 2009 9:43 PM
To: drivers-networking
Subject: Re: RE: RE: RE: RE: MTU on Broadcom BCM5787M

Hello Robert,

Thanks for the good news. One of our guys was pushing ahead with the
merge as well, and I will be testing your version as soon as we get it.
If we have something useful that differs from yours I'll post that so
you can have a look. I believe that the Tigon driver was having trouble
with the broadcom's gigabit functionality, and as you stated before
there is no way to change the MTU (although it does change in ifconfig,
netinfo shows it has been unchanged).

I tested the network in two conditions: The first was connecting to a
prosilica GigE camera (which can auto-negociate down to 100 megabit and
cut it's framerate by 3) and the second was with a linksys gigabit
switch. In both situations netinfo showed it was down to 100 megabit.

I'll set up some tests to stress the driver and the card with lots of
packets, but please let me know tomorrow if there are any specific tests
you recommend. This is a pretty high priority for me so I don't mind
investing some time to test it.

Thanks for all your help and quick replies, Kevin
 

_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21563

Attachment: Text devnp-bge.so 84.55 KB
Re: MTU on Broadcom BCM5787M  
> x86 Driver is attached.  It's got basic sanity testing on it
> with the card that I have in house, but I don't have a 5787, so you'll
> be our test case for that card.

We replaced /lib/dll/devnp-bge.so with the one you sent. Restarting the
driver with

  $ slay io-pkt-v4-hc
  $ /sbin/io-pkt-v4 -dbge

slows the machine down to a crawl. After a few seconds, 

  Unable to init devnp-bge.so: No such device or address

is printed and, after a few more seconds, the whole machine hangs and
needs a hard reset.

Trying the same thing with the original bge driver gives the same message
but does not hang the machine.
  
We tried changing /etc/system/enum/devices by removing dev=1693 from
the tigon3 driver and added:

 device(pci, ven=$(PCI_VEND_BROADCOM), dev=1693)  #Broadcom 5787M Gigabit
    tag(devn)
    append(legacy, ",nonet")
    requires($(IOPKT_CMD),)
    waitfor (/dev/socket)
    mount(-Tio-pkt "-opci=$(index),vid=0x$(ven),did=0x$(dev)" /lib/dll/devnp-bge.so, )
    use(symbolic=netmgr)

However, that prevented the network card from being recognized after
restarting the computer. sloginfo gives:

  mount: Can't mount / (type io-pkt)
  mount: Possible reason: Unknown error

We get the same thing when running 

  $ mount -Tio-pkt "-opci=$(index),vid=0x$(ven),did=0x$(dev)" /lib/dll/devnp-bge.so
  
directly.

As for me, I'm the programmer trying to recompile the driver. I'm having
issues (of course, I've got no experience in this), but I'm attaching the
files I modified just in case it might help you. I merged most of the stuff
from the head of netbsd in if_bge.c/h and some associated files. Although
it compiles and links fine, I'm getting some unresolved names, obviously
because I need to recompile and install much more stuff than I initially
thought. Anyways, I'll keep trying.

> On another note, it looks like we've potentially identified the link
> problem with the tigon3 driver as well, so that may well be another
> option for you if this doesn't work out.

Can we get an update on this?

--
Jonathan Mcdougall
Attachment: Compressed file changes.tar 265 KB
RE: MTU on Broadcom BCM5787M  
Hi Johnathan:

Hmmm.... That's the problem with not having the hardware on hand to try
out.  Are the NICs built into the motherboard or are they separate
cards?  Any way that you could get the hardware to us to try out?

I don't see the root # prompt there.  Are you running these commands as
root?

After the slay io-pkt-v4-hc, do a pidin and make sure that it isn't
running.  I've occasionally seen cases where the driver faults during
shutdown and this results in the stack doing "funny things" (and you end
up having to "slay -s SIGKILL io-pkt-v4-hc" to make sure that it's gone.

Can you also post the output to "sloginfo" after running the commands.

In terms of the source for the driver, it's already been checked into
our source tree (the last post has the location).  This is the latest
source on the netbsd-4 branch which is where our stack originated from.
The head branch would be for the latest NetBSD incarnation which may
have compatibility problems with out source.

	Robert.



-----Original Message-----
From: Jonathan Mcdougall [mailto:community-noreply@qnx.com] 
Sent: Friday, February 06, 2009 2:07 PM
To: drivers-networking
Subject: Re: MTU on Broadcom BCM5787M

> x86 Driver is attached.  It's got basic sanity testing on it with the 
> card that I have in house, but I don't have a 5787, so you'll be our 
> test case for that card.

We replaced /lib/dll/devnp-bge.so with the one you sent. Restarting the
driver with

  $ slay io-pkt-v4-hc
  $ /sbin/io-pkt-v4 -dbge

slows the machine down to a crawl. After a few seconds, 

  Unable to init devnp-bge.so: No such device or address

is printed and, after a few more seconds, the whole machine hangs and
needs a hard reset.

Trying the same thing with the original bge driver gives the same
message but does not hang the machine.
  
We tried changing /etc/system/enum/devices by removing dev=1693 from the
tigon3 driver and added:

 device(pci, ven=$(PCI_VEND_BROADCOM), dev=1693)  #Broadcom 5787M
Gigabit
    tag(devn)
    append(legacy, ",nonet")
    requires($(IOPKT_CMD),)
    waitfor (/dev/socket)
    mount(-Tio-pkt "-opci=$(index),vid=0x$(ven),did=0x$(dev)"
/lib/dll/devnp-bge.so, )
    use(symbolic=netmgr)

However, that prevented the network card from being recognized after
restarting the computer. sloginfo gives:

  mount: Can't mount / (type io-pkt)
  mount: Possible reason: Unknown error

We get the same thing when running 

  $ mount -Tio-pkt "-opci=$(index),vid=0x$(ven),did=0x$(dev)"
/lib/dll/devnp-bge.so
  
directly.

As for me, I'm the programmer trying to recompile the driver. I'm having
issues (of course, I've got no experience in this), but I'm attaching
the files I modified just in case it might help you. I merged most of
the stuff from the head of netbsd in if_bge.c/h and some associated
files. Although it compiles and links fine, I'm getting some unresolved
names, obviously because I need to recompile and install much more stuff
than I initially thought. Anyways, I'll keep trying.

> On another note, it looks like we've potentially identified the link 
> problem with the tigon3 driver as well, so that may well be another 
> option for you if this doesn't work out.

Can we get an update on this?

--
Jonathan Mcdougall


_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21641
RE: MTU on Broadcom BCM5787M  
Hi Johnathan:
	Good news / bad news.  Good news is that we have a box in house
that has those cards in it.   The bad news is that I've reproduced your
problem(well... Not the machine slowing wdown to a crawl, but the "No
such device or address), so the driver doesn't work.  I'm looking into
it now. 

	Robert.

-----Original Message-----
From: Jonathan Mcdougall [mailto:community-noreply@qnx.com] 
Sent: Friday, February 06, 2009 2:07 PM
To: drivers-networking
Subject: Re: MTU on Broadcom BCM5787M

> x86 Driver is attached.  It's got basic sanity testing on it with the 
> card that I have in house, but I don't have a 5787, so you'll be our 
> test case for that card.

We replaced /lib/dll/devnp-bge.so with the one you sent. Restarting the
driver with

  $ slay io-pkt-v4-hc
  $ /sbin/io-pkt-v4 -dbge

slows the machine down to a crawl. After a few seconds, 

  Unable to init devnp-bge.so: No such device or address

is printed and, after a few more seconds, the whole machine hangs and
needs a hard reset.

Trying the same thing with the original bge driver gives the same
message but does not hang the machine.
  
We tried changing /etc/system/enum/devices by removing dev=1693 from the
tigon3 driver and added:

 device(pci, ven=$(PCI_VEND_BROADCOM), dev=1693)  #Broadcom 5787M
Gigabit
    tag(devn)
    append(legacy, ",nonet")
    requires($(IOPKT_CMD),)
    waitfor (/dev/socket)
    mount(-Tio-pkt "-opci=$(index),vid=0x$(ven),did=0x$(dev)"
/lib/dll/devnp-bge.so, )
    use(symbolic=netmgr)

However, that prevented the network card from being recognized after
restarting the computer. sloginfo gives:

  mount: Can't mount / (type io-pkt)
  mount: Possible reason: Unknown error

We get the same thing when running 

  $ mount -Tio-pkt "-opci=$(index),vid=0x$(ven),did=0x$(dev)"
/lib/dll/devnp-bge.so
  
directly.

As for me, I'm the programmer trying to recompile the driver. I'm having
issues (of course, I've got no experience in this), but I'm attaching
the files I modified just in case it might help you. I merged most of
the stuff from the head of netbsd in if_bge.c/h and some associated
files. Although it compiles and links fine, I'm getting some unresolved
names, obviously because I need to recompile and install much more stuff
than I initially thought. Anyways, I'll keep trying.

> On another note, it looks like we've potentially identified the link 
> problem with the tigon3 driver as well, so that may well be another 
> option for you if this doesn't work out.

Can we get an update on this?

--
Jonathan Mcdougall


_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21641
Re: RE: MTU on Broadcom BCM5787M  
> Good news is that we have a box in house that has those cards in it. 
> The bad news is that I've reproduced your problem

I consider both being good news actually :)

> I'm looking into it now. 

Thanks.

The following is from your previous post:

> Are the NICs built into the motherboard or are they separate
> cards?

Both are onboard.

> Any way that you could get the hardware to us to try out?

Next week, most probably. However, we were hoping to solve this issue
by the end of the day since we need to order more of these boards as
soon as possible.

> I don't see the root # prompt there.  Are you running these commands
> as root?

Yes I am.

> After the slay io-pkt-v4-hc, do a pidin and make sure that it isn't
> running. 

It is not running.

> Can you also post the output to "sloginfo" after running the commands.

QNX hangs too quickly. Running sloginfo after io-pkt-v4 never returns or
outputs anything.

Again, thanks for the lightning fast answers. We appreciate it a lot.

--
Jonathan Mcdougall
Re: RE: MTU on Broadcom BCM5787M  
> after a few more seconds, the whole machine hangs and
> needs a hard reset.

I left the computer on and I just realized that it doesn't hang
indefinitely. I'm not sure for how long it does, but it is for less
than an hour (more likely only for a few minutes). sloginfo gives
in particular:

tcpip starting
Using pseudo random generator.  See "random" option
bge0 at pci1 dev 0 function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at irq 5
bge0: firmware handshake timed out, val = 0
bge0: RX CPU self-diagnostics failed!
bge0: chip initialization failed
bge0 at pci2 dev 0 function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at irq 7
bge0: firmware handshake timed out, val = 0
bge0: RX CPU self-diagnostics failed!
bge0: chip initialization failed
Unable to init devnp-bge.so: No such device or address
eide_command: INTR_WAIT cmd ea, status 50, error 0

--
Jonathan Mcdougall
RE: RE: MTU on Broadcom BCM5787M  
> it doesn't hang indefinitely

Next time, you can determine what's actually
happening, by running this in a window:

  # top -p 255

Also, you can create a high priority shell,
then grab a snapshot of the running program
with

  # dumper -p XYZ

which creates a core file which you can look
at with gdb.

--
aboyd
Re: RE: RE: MTU on Broadcom BCM5787M  
> Next time, you can determine what's actually
> happening, by running this in a window:
> 
>   # top -p 255

It just stops updating. Keyboard and mouse are functional, but as soon
as I try starting phlip or ifconfig (or any program for that matter), that
particular terminal hangs. Ctrl-c doesn't do anything. Playing with photon a
bit eventually hangs it too and, after a while, the mouse also stops moving.

The last update of top gave kernel at 0.14%, io-graphics at 0.14% and
devb-eide at 0.04%. The few others were <= 0.01%.

The machine slowly comes back to life after around 5 minutes, but any
operation puts it back into hanging (such as opening a terminal).

--
Jonathan Mcdougall
RE: RE: MTU on Broadcom BCM5787M  
Okkkk....  This actually required properly implementing a function in
the NetBSD porting library.  It was a "temporary" workaround that got
turned out to be not temporary.  In any case, can you give this driver a
try?   The required code change was checked in here:

http://community.qnx.com/integration/viewcvs/viewcvs.cgi/trunk/sys/lib/l
ibnbdrvr/pci/pci_conv_bsd.c?root=core_networking&rev=799&system=exsy1001
&view=markup

	Robert. 

-----Original Message-----
From: Jonathan Mcdougall [mailto:community-noreply@qnx.com] 
Sent: Friday, February 06, 2009 3:37 PM
To: drivers-networking
Subject: Re: RE: MTU on Broadcom BCM5787M

> after a few more seconds, the whole machine hangs and needs a hard 
> reset.

I left the computer on and I just realized that it doesn't hang
indefinitely. I'm not sure for how long it does, but it is for less than
an hour (more likely only for a few minutes). sloginfo gives in
particular:

tcpip starting
Using pseudo random generator.  See "random" option bge0 at pci1 dev 0
function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at irq 5
bge0: firmware handshake timed out, val = 0
bge0: RX CPU self-diagnostics failed!
bge0: chip initialization failed
bge0 at pci2 dev 0 function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at irq 7
bge0: firmware handshake timed out, val = 0
bge0: RX CPU self-diagnostics failed!
bge0: chip initialization failed
Unable to init devnp-bge.so: No such device or address
eide_command: INTR_WAIT cmd ea, status 50, error 0

--
Jonathan Mcdougall


_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21670

Attachment: Text devnp-bge.so 84.55 KB
Re: RE: RE: MTU on Broadcom BCM5787M  
> Okkkk....  This actually required properly implementing a function in
> the NetBSD porting library.  It was a "temporary" workaround that got
> turned out to be not temporary.  In any case, can you give this driver a
> try?

It will be tried tomorrow during the day, sorry for the delay and thanks
again for following up so quickly. Your support is amazing.

--
Jonathan Mcdougall
RE: RE: MTU on Broadcom BCM5787M  
Just to let you know, while this works, my testing is showing it to be
slow, so there might be some work involved in speeding it up.

Let me know how it goes.

   Robert.

-----Original Message-----
From: Robert Craig 
Sent: Friday, February 06, 2009 5:42 PM
To: 'post21670@community.qnx.com'
Subject: RE: RE: MTU on Broadcom BCM5787M

Okkkk....  This actually required properly implementing a function in
the NetBSD porting library.  It was a "temporary" workaround that got
turned out to be not temporary.  In any case, can you give this driver a
try?   The required code change was checked in here:

http://community.qnx.com/integration/viewcvs/viewcvs.cgi/trunk/sys/lib/l
ibnbdrvr/pci/pci_conv_bsd.c?root=core_networking&rev=799&system=exsy1001
&view=markup

	Robert. 

-----Original Message-----
From: Jonathan Mcdougall [mailto:community-noreply@qnx.com]
Sent: Friday, February 06, 2009 3:37 PM
To: drivers-networking
Subject: Re: RE: MTU on Broadcom BCM5787M

> after a few more seconds, the whole machine hangs and needs a hard 
> reset.

I left the computer on and I just realized that it doesn't hang
indefinitely. I'm not sure for how long it does, but it is for less than
an hour (more likely only for a few minutes). sloginfo gives in
particular:

tcpip starting
Using pseudo random generator.  See "random" option bge0 at pci1 dev 0
function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at irq 5
bge0: firmware handshake timed out, val = 0
bge0: RX CPU self-diagnostics failed!
bge0: chip initialization failed
bge0 at pci2 dev 0 function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at irq 7
bge0: firmware handshake timed out, val = 0
bge0: RX CPU self-diagnostics failed!
bge0: chip initialization failed
Unable to init devnp-bge.so: No such device or address
eide_command: INTR_WAIT cmd ea, status 50, error 0

--
Jonathan Mcdougall


_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21670
RE: RE: MTU on Broadcom BCM5787M  
 I take it back.  Turns out there was an errant process running ready on
my system.  This driver appears to be working OK.


-----Original Message-----
From: Robert Craig 
Sent: Friday, February 06, 2009 5:55 PM
To: 'post21670@community.qnx.com'
Subject: RE: RE: MTU on Broadcom BCM5787M

Just to let you know, while this works, my testing is showing it to be
slow, so there might be some work involved in speeding it up.

Let me know how it goes.

   Robert.

-----Original Message-----
From: Robert Craig
Sent: Friday, February 06, 2009 5:42 PM
To: 'post21670@community.qnx.com'
Subject: RE: RE: MTU on Broadcom BCM5787M

Okkkk....  This actually required properly implementing a function in
the NetBSD porting library.  It was a "temporary" workaround that got
turned out to be not temporary.  In any case, can you give this driver a
try?   The required code change was checked in here:

http://community.qnx.com/integration/viewcvs/viewcvs.cgi/trunk/sys/lib/l
ibnbdrvr/pci/pci_conv_bsd.c?root=core_networking&rev=799&system=exsy1001
&view=markup

	Robert. 

-----Original Message-----
From: Jonathan Mcdougall [mailto:community-noreply@qnx.com]
Sent: Friday, February 06, 2009 3:37 PM
To: drivers-networking
Subject: Re: RE: MTU on Broadcom BCM5787M

> after a few more seconds, the whole machine hangs and needs a hard 
> reset.

I left the computer on and I just realized that it doesn't hang
indefinitely. I'm not sure for how long it does, but it is for less than
an hour (more likely only for a few minutes). sloginfo gives in
particular:

tcpip starting
Using pseudo random generator.  See "random" option bge0 at pci1 dev 0
function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at irq 5
bge0: firmware handshake timed out, val = 0
bge0: RX CPU self-diagnostics failed!
bge0: chip initialization failed
bge0 at pci2 dev 0 function 0: Broadcom BCM5787M Gigabit Ethernet
bge0: interrupting at irq 7
bge0: firmware handshake timed out, val = 0
bge0: RX CPU self-diagnostics failed!
bge0: chip initialization failed
Unable to init devnp-bge.so: No such device or address
eide_command: INTR_WAIT cmd ea, status 50, error 0

--
Jonathan Mcdougall


_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post21670
Success (Almost)  
Hello Robert,

Thanks for all your suport so far. I was testing the driver this morning and can confirm that it did work, however I saw
 a coule of things which you will probably want to know about.

1st. The MTU canot be changed to a value larger than 1500. I was hoping to use ~8000 for the camera I will need to 
interact with. No the end of the world, but it would be nice to get working.

2nd. There is still a large hang on bootup or starting the driver, but it only occurs if there is noactive network cable
 connected to the broadcom nic. We saw this because only one of the dual onboard nics was connected. Again this is not 
the end of the world, we can diable in the bios the nic that we son't be using. Please refer to the attached ssloginfo 
dumps to see exactly why there is a delay. I added in some comments to help identify exactly where they are.

3rd. Some of the info displayed by nicinfo was incorrect. the MTU seems to be correct with 1500, bu the MRU should be 
greater than 0.

Please take a look 

bge0: 
  Broadcom Gigabit Ethernet Controller

  Physical Node ID ........................... 00187D 03F4D4
  Current Physical Node ID ................... 00187D 03F4D4
  Current Operation Rate ..................... 1000.00 Mb/s full-duplex
  Active Interface Type ...................... MII
    Active PHY address ....................... 0
  Maximum Transmittable data Unit ............ 1500
  Maximum Receivable data Unit ............... 0
  Promiscuous Mode ........................... Off
  Multicast Support .......................... Enabled

  Packets Transmitted OK ..................... 878
  Bytes Transmitted OK ....................... 124790
  Multicast Packets Transmitted OK ........... 0

  Packets Received OK ........................ 4475
  Bytes Received OK .......................... 491499
  Multicast Packets Received OK .............. 3847


bge1: 
  Broadcom Gigabit Ethernet Controller

  Physical Node ID ........................... 00187D 03F4D5
  Current Physical Node ID ................... 00187D 03F4D5
  Current Operation Rate ..................... 0 kb/s
  Active Interface Type ...................... Unknown
  Maximum Transmittable data Unit ............ 1500
  Maximum Receivable data Unit ............... 0
  Promiscuous Mode ........................... Off
  Multicast Support .......................... Enabled

  Packets Transmitted OK ..................... 35
  Bytes Transmitted OK ....................... 5530
  Multicast Packets Transmitted OK ........... 0

  Packets Received OK ........................ 0
  Bytes Received OK .......................... 0
  Multicast Packets Received OK .............. 0

I will be testing the NICs soon when they have a lot of traffic on them and give you feedback on that.

Again, thanks for all your help, your support has been amazing.

Kevin
Attachment: Text sloginfo.txt 12.85 KB
Re: Success (Almost)  
On Mon, Feb 09, 2009 at 10:27:25AM -0500, KEvin Raymond wrote:
> Hello Robert,
> 
> Thanks for all your suport so far. I was testing the driver this morning and can confirm that it did work, however I 
saw a coule of things which you will probably want to know about.
> 
> 1st. The MTU canot be changed to a value larger than 1500. I was hoping to use ~8000 for the camera I will need to 
interact with. No the end of the world, but it would be nice to get working.

Can you be more specific WRT the symptoms to 1 above?

Thanks,

-seanb
Re: Success (Almost)  
Hey Sean,

When I try to change the MTU with ifconfig it compains about SOICSIFIMTU invalid argument.  I can set it to anything 
less than 1500 and it does not complain.

I'm stating to remember that I may have to specify the max MTU in the net enum file so it loads the driver with the 
proper max MTU.

Is this correct?

Thanks,
Kevin
RE: Success (Almost)  
Hi Kevin:
	I've looked through the source and there's bad news on the
Jumnbo packet front.  It looks like Jumbo packet usage is restricted to
only a certain variety of BCM chip IDs due to some sort of "chip set
quirks". I'll take a closer look into the NetBSD source to see why this
would be the case, but the behaviour that you're seeing is expected...

In terms of nicinfo, this is also expected.  We hooked in some plumbing
to nicinfo to provide basic feedback for NetBSD style drivers (packet
counts essentially), but the output is by no means complete.  "ifconfig"
(or ifconfig -v) for these drivers generally provides equivalent (and in
some cases better) output.

I'm not sure about the initial timeouts (I'll take a look).  The second
timeout (with netmanager) I THINK makes sense since it will try and
bring up the interface and wait for DHCP to fail before it continues.  I
belive that you can get around this by marking the interface as disabled
in the network configuration manager.


	R.

-----Original Message-----
From: KEvin Raymond [mailto:community-noreply@qnx.com] 
Sent: Monday, February 09, 2009 10:27 AM
To: drivers-networking
Subject: Success (Almost)

Hello Robert,

Thanks for all your suport so far. I was testing the driver this morning
and can confirm that it did work, however I saw a coule of things which
you will probably want to know about.

1st. The MTU canot be changed to a value larger than 1500. I was hoping
to use ~8000 for the camera I will need to interact with. No the end of
the world, but it would be nice to get working.

2nd. There is still a large hang on bootup or starting the driver, but
it only occurs if there is noactive network cable connected to the
broadcom nic. We saw this because only one of the dual onboard nics was
connected. Again this is not the end of the world, we can diable in the
bios the nic that we son't be using. Please refer to the attached
ssloginfo dumps to see exactly why there is a delay. I added in some
comments to help identify exactly where they are.

3rd. Some of the info displayed by nicinfo was incorrect. the MTU seems
to be correct with 1500, bu the MRU should be greater than 0.

Please take a look 

bge0: 
  Broadcom Gigabit Ethernet Controller

  Physical Node ID ........................... 00187D 03F4D4
  Current Physical Node ID ................... 00187D 03F4D4
  Current Operation Rate ..................... 1000.00 Mb/s full-duplex
  Active Interface Type ...................... MII
    Active PHY address ....................... 0
  Maximum Transmittable data Unit ............ 1500
  Maximum Receivable data Unit ............... 0
  Promiscuous Mode ........................... Off
  Multicast Support .......................... Enabled

  Packets Transmitted OK ..................... 878
  Bytes Transmitted OK ....................... 124790
  Multicast Packets Transmitted OK ........... 0

  Packets Received OK ........................ 4475
  Bytes Received OK .......................... 491499
  Multicast Packets Received OK .............. 3847


bge1: 
  Broadcom Gigabit Ethernet Controller

  Physical Node ID ........................... 00187D 03F4D5
  Current Physical Node ID ................... 00187D 03F4D5
  Current Operation Rate ..................... 0 kb/s
  Active Interface Type ...................... Unknown
  Maximum Transmittable data Unit ............ 1500
  Maximum Receivable data Unit ............... 0
  Promiscuous Mode ........................... Off
  Multicast Support .......................... Enabled

  Packets Transmitted OK ..................... 35
  Bytes Transmitted OK ....................... 5530
  Multicast Packets Transmitted OK ........... 0

  Packets Received OK ........................ 0
  Bytes Received OK .......................... 0
  Multicast Packets Received OK .............. 0

I will be testing the NICs soon when they have a lot of traffic...
View Full Message