Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - BCM5708: (12 Items)
   
BCM5708  
The M8 bge driver does seem to detect the NetXtreme II BCM5708 ( the doc says it supports 57xx).

I tried forcing the did and vid but apparently devnp-bge doesn't support any option, that confirmed use devnp-bge.

- Mario
RE: BCM5708  
Hi Mario:

	What are the did, vid for that card?  It's quite possible that
support for that card wasn't in the NetBSD 4 branch when we took it.

	Robert.


-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Friday, October 03, 2008 4:48 PM
To: drivers-networking
Subject: BCM5708

The M8 bge driver does seem to detect the NetXtreme II BCM5708 ( the doc
says it supports 57xx).

I tried forcing the did and vid but apparently devnp-bge doesn't support
any option, that confirmed use devnp-bge.

- Mario

_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post14457
RE: BCM5708  
Hi Mario:
	I did some quick searching around and 57xx!=5708.  For whatever
reason, it appears that those chips actually require a completely
different driver:

http://netbsd.gw.com/cgi-bin/man-cgi?bnx++NetBSD-current

Care to take a shot at porting a NetBSD driver?

	Robert.

-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Friday, October 03, 2008 4:48 PM
To: drivers-networking
Subject: BCM5708

The M8 bge driver does seem to detect the NetXtreme II BCM5708 ( the doc
says it supports 57xx).

I tried forcing the did and vid but apparently devnp-bge doesn't support
any option, that confirmed use devnp-bge.

- Mario

_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post14457
Re: RE: BCM5708  
> Hi Mario:
> 	I did some quick searching around and 57xx!=5708.  For whatever
> reason, it appears that those chips actually require a completely
> different driver:
> 
> http://netbsd.gw.com/cgi-bin/man-cgi?bnx++NetBSD-current
> 
> Care to take a shot at porting a NetBSD driver?

I'll give it a shot and will keep you posted.

> 
> 	Robert.
> 
> -----Original Message-----
> From: Mario Charest [mailto:community-noreply@qnx.com] 
> Sent: Friday, October 03, 2008 4:48 PM
> To: drivers-networking
> Subject: BCM5708
> 
> The M8 bge driver does seem to detect the NetXtreme II BCM5708 ( the doc
> says it supports 57xx).
> 
> I tried forcing the did and vid but apparently devnp-bge doesn't support
> any option, that confirmed use devnp-bge.
> 
> - Mario
> 
> _______________________________________________
> Networking Drivers
> http://community.qnx.com/sf/go/post14457


RE: RE: BCM5708  
Good luck!  There's the "porting technote" in trunk/sys/dev/docs.  I
don't think it's gotten TOO stale since it was last updated.  Let us
know if you hit any problems and we'll make sure that the pain stops
with you by adding the info into the doc :->>.

	Robert.

-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Monday, October 06, 2008 4:28 PM
To: drivers-networking
Subject: Re: RE: BCM5708

> Hi Mario:
> 	I did some quick searching around and 57xx!=5708.  For whatever
> reason, it appears that those chips actually require a completely
> different driver:
> 
> http://netbsd.gw.com/cgi-bin/man-cgi?bnx++NetBSD-current
> 
> Care to take a shot at porting a NetBSD driver?

I'll give it a shot and will keep you posted.

> 
> 	Robert.
> 
> -----Original Message-----
> From: Mario Charest [mailto:community-noreply@qnx.com] 
> Sent: Friday, October 03, 2008 4:48 PM
> To: drivers-networking
> Subject: BCM5708
> 
> The M8 bge driver does seem to detect the NetXtreme II BCM5708 ( the
doc
> says it supports 57xx).
> 
> I tried forcing the did and vid but apparently devnp-bge doesn't
support
> any option, that confirmed use devnp-bge.
> 
> - Mario
> 
> _______________________________________________
> Networking Drivers
> http://community.qnx.com/sf/go/post14457




_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post14545
Re: RE: RE: BCM5708  
> Good luck!  There's the "porting technote" in trunk/sys/dev/docs.  I
> don't think it's gotten TOO stale since it was last updated.  Let us
> know if you hit any problems and we'll make sure that the pain stops
> with you by adding the info into the doc :->>.
> 
> 	Robert.

I was able to compile it.  When trying to mount it the symbol bnx_pci_ca is undefined. I see it's defined extern in init
.c but I can't find where it's declared.  I looked at other drivers (bge) and I can't find where bge_pci_ca either.


> 
> -----Original Message-----
> From: Mario Charest [mailto:community-noreply@qnx.com] 
> Sent: Monday, October 06, 2008 4:28 PM
> To: drivers-networking
> Subject: Re: RE: BCM5708
> 
> > Hi Mario:
> > 	I did some quick searching around and 57xx!=5708.  For whatever
> > reason, it appears that those chips actually require a completely
> > different driver:
> > 
> > http://netbsd.gw.com/cgi-bin/man-cgi?bnx++NetBSD-current
> > 
> > Care to take a shot at porting a NetBSD driver?
> 
> I'll give it a shot and will keep you posted.
> 
> > 
> > 	Robert.
> > 
> > -----Original Message-----
> > From: Mario Charest [mailto:community-noreply@qnx.com] 
> > Sent: Friday, October 03, 2008 4:48 PM
> > To: drivers-networking
> > Subject: BCM5708
> > 
> > The M8 bge driver does seem to detect the NetXtreme II BCM5708 ( the
> doc
> > says it supports 57xx).
> > 
> > I tried forcing the did and vid but apparently devnp-bge doesn't
> support
> > any option, that confirmed use devnp-bge.
> > 
> > - Mario
> > 
> > _______________________________________________
> > Networking Drivers
> > http://community.qnx.com/sf/go/post14457
> 
> 
> 
> 
> _______________________________________________
> Networking Drivers
> http://community.qnx.com/sf/go/post14545


RE: RE: RE: BCM5708  
> bnx_pci_ca is undefined. 

pre-processor magic - grep for
___CONCAT likely in init.c

--
aboyd
Re: RE: RE: RE: BCM5708  
> 
> > bnx_pci_ca is undefined. 
> 
> pre-processor magic - grep for
> ___CONCAT likely in init.c

I figured it out. I forgot to change bnx to bnx_pci in if_bnx.c/CFATTACH_DECL

To my utter amazement on the first try it worked, holy God of drivers!  I would have NEVER bet on that ( I don't bet 
anyway ).

All is not perfect thought, the machine crashed when I slayed io-pkt-v4, I'm not worry about that one. 

It only works at 100Mbits though.  I tried speed=1000,duplex=1 but no change. I can see in syslog that it detected 
support for 1G though.  I'll keep on digging.

If I run ifconfig -m on my target, I get a sigsegv.  If I run ifconfig -m on M8 system (i82544), I don't get any info on
 supported media?


> 
> --
> aboyd


RE: RE: RE: RE: BCM5708  
Another (mostly happy) customer :->>.  Believe me... I was just as
surprised as you were when I did my first BSD driver port.

Anyway.  In terms of slaying io-pkt, I suspect that you need to add a
shutdown hook which will quiesce the hardware and prevent it from
DMA-ing data into buffers which it no longer owns.

You might have to add your own routine.  For the bge, this was
/*
 * Stop all chip I/O so that the kernel's probe routines don't
 * get confused by errant DMAs when rebooting.
 */
static void
bge_shutdown(void *xsc)
{
	struct bge_softc *sc = (struct bge_softc *)xsc;

	bge_stop(sc);
	bge_reset(sc);
}

At the end of the attach routine, you will see in the bge driver

#ifdef __QNXNTO__
	shutdownhook_establish(bge_shutdown, sc);
    return EOK;
#endif


Make sure that you have a if_stop routine registered (see if_bge, rev
456).

static void
bge_stop_if(struct ifnet *ifp, int disable)
{
	struct bge_softc *sc = ifp->if_softc;

	bge_stop(sc);
}


	Robert.


-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Tuesday, October 07, 2008 3:51 PM
To: drivers-networking
Subject: Re: RE: RE: RE: BCM5708

> 
> > bnx_pci_ca is undefined. 
> 
> pre-processor magic - grep for
> ___CONCAT likely in init.c

I figured it out. I forgot to change bnx to bnx_pci in
if_bnx.c/CFATTACH_DECL

To my utter amazement on the first try it worked, holy God of drivers!
I would have NEVER bet on that ( I don't bet anyway ).

All is not perfect thought, the machine crashed when I slayed io-pkt-v4,
I'm not worry about that one. 

It only works at 100Mbits though.  I tried speed=1000,duplex=1 but no
change. I can see in syslog that it detected support for 1G though.
I'll keep on digging.

If I run ifconfig -m on my target, I get a sigsegv.  If I run ifconfig
-m on M8 system (i82544), I don't get any info on supported media?


> 
> --
> aboyd




_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post14631
RE: RE: RE: RE: BCM5708  
In terms of the ifconfig, I wonder if there's some sort of
incompatibility with the NetBSD phy library built into libnbdrvr?  Did
you take the code directly from the NetBSD 4 code base?  It's possible
that there's a PHY being detected that isn't supported (I remember
having to add in a new phy module for the wm driver).

	Robert.

-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Tuesday, October 07, 2008 3:51 PM
To: drivers-networking
Subject: Re: RE: RE: RE: BCM5708

> 
> > bnx_pci_ca is undefined. 
> 
> pre-processor magic - grep for
> ___CONCAT likely in init.c

I figured it out. I forgot to change bnx to bnx_pci in
if_bnx.c/CFATTACH_DECL

To my utter amazement on the first try it worked, holy God of drivers!
I would have NEVER bet on that ( I don't bet anyway ).

All is not perfect thought, the machine crashed when I slayed io-pkt-v4,
I'm not worry about that one. 

It only works at 100Mbits though.  I tried speed=1000,duplex=1 but no
change. I can see in syslog that it detected support for 1G though.
I'll keep on digging.

If I run ifconfig -m on my target, I get a sigsegv.  If I run ifconfig
-m on M8 system (i82544), I don't get any info on supported media?


> 
> --
> aboyd




_______________________________________________
Networking Drivers
http://community.qnx.com/sf/go/post14631
Re: RE: RE: RE: BCM5708  
> 
> It only works at 100Mbits though.  I tried speed=1000,duplex=1 but no change. 
> I can see in syslog that it detected support for 1G though.  I'll keep on 
> digging.

It just won't work at 1000Mbits.  I'll investigate in the MII stuff but without the specs that is going to be hard.  
Maybe an update to MII code is required.  




RE: RE: RE: BCM5708  
If you look in the dev/bge directory at the init.c file, you'll see

#define DRVR bge


#define PCI_CFATTACH_STRUCT	___CONCAT(DRVR, _pci_ca) /* eg:
ath_pci_ca */
#define DRVR_ENTRY		___CONCAT(DRVR, _entry)  /* eg:
ath_entry */


So all you should have to do is to change that first #define DRVR to bnx
and away you go.

	Robert.

 -----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Tuesday, October 07, 2008 2:56 PM
To: drivers-networking
Subject: Re: RE: RE: BCM5708

> Good luck!  There's the "porting technote" in trunk/sys/dev/docs.  I
> don't think it's gotten TOO stale since it was last updated.  Let us
> know if you hit any problems and we'll make sure that the pain stops
> with you by adding the info into the doc :->>.
> 
> 	Robert.

I was able to compile it.  When trying to mount it the symbol bnx_pci_ca
is undefined. I see it's defined extern in init.c but I can't find where
it's declared.  I looked at other drivers (bge) and I can't find where
bge_pci_ca either.


> 
> -----Original Message-----
> From: Mario Charest [mailto:community-noreply@qnx.com] 
> Sent: Monday, October 06, 2008 4:28 PM
> To: drivers-networking
> Subject: Re: RE: BCM5708
> 
> > Hi Mario:
> > 	I did some quick searching around and 57xx!=5708.  For whatever
> > reason, it appears that those chips actually require a completely
> > different driver:
> > 
> > http://netbsd.gw.com/cgi-bin/man-cgi?bnx++NetBSD-current
> > 
> > Care to take a shot at porting a NetBSD driver?
> 
> I'll give it a shot and will keep you posted.
> 
> > 
> > 	Robert.
> > 
> > -----Original Message-----
> > From: Mario Charest [mailto:community-noreply@qnx.com] 
> > Sent: Friday, October 03, 2008 4:48 PM
> > To: drivers-networking
> > Subject: BCM5708
> > 
> > The M8 bge driver does seem to detect the NetXtreme II BCM5708 ( the
> doc
> > says it supports 57xx).
> > 
> > I tried forcing the did and vid but apparently devnp-bge doesn't
> support
> > any option, that confirmed use devnp-bge.
> > 
> > - Mario
> > 
> > _______________________________________________
> > Networking Drivers
> > http://community.qnx.com/sf/go/post14457
> 
> 
> 
> 
> _______________________________________________
> Networking Drivers
> http://community.qnx.com/sf/go/post14545




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