Re: bge driver not recognising BCM 5705M

2003-08-01 Thread David Gilbert
> "Bill" == Bill Paul <[EMAIL PROTECTED]> writes:

Bill> Actually, boot -v gives you much more, like the date when the
Bill> kernel image was compiled. Too bad you decided not to show
Bill> everything to us.
>>  I didn't want to spam,

Bill> *sigh* No. Spam is when you try to sell me viagra or bestiality
Bill> porn.  Providing detailed problem reports is not spam. It saves
Bill> me from having to _ask_ you for more information, thereby
Bill> prolonging what might otherwise be a simple one shot
Bill> exchange. It also can save time and wear and tear on developers,
Bill> since, in the process of collecting detailed information, you
Bill> might stumble upon possible solutions to your problem on your
Bill> own, to wit:

>> ...but my recent current is:
>> 
>> FreeBSD canoe.velocet.net 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue
>> Jul 15 17:54:29 EDT 2003
>> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CANOE i386


Bill> [/u/wpaul/xl/src/sys/dev/bge]:zim.wrs.com{58}% cvs log if_bge.c

Bill> [...]   revision 1.44 date:
Bill> 2003/07/16 00:09:56; author: wpaul; state: Exp; lines: +226 -103
Bill> ^^ Add support for the BCM5705 and its ilk. Changes:

Ah... well ... must apologise.  I normally follow -current and
associated lists, but that was the week I was screwed out of my
company, fired, and tossed out on the street.

I'm feeling much better now.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: bge driver not recognising BCM 5705M

2003-08-01 Thread Bill Paul
> > "Bill" == Bill Paul <[EMAIL PROTECTED]> writes:
> 
> >> I'm somewhat confused.
> Bill> So am I: where were you when I asked sent e-mail to this list
> Bill> asking for people to test the 5705 changes before I committed
> Bill> them?
> 
> I very well might not have had this machine.  When did you commit
> them?
>
> >> On a recent 5.1-CURRENT, boot -v gives me:
> 
> Bill> Actually, boot -v gives you much more, like the date when the
> Bill> kernel image was compiled. Too bad you decided not to show
> Bill> everything to us.
> 
> I didn't want to spam,

*sigh* No. Spam is when you try to sell me viagra or bestiality porn.
Providing detailed problem reports is not spam. It saves me from having
to _ask_ you for more information, thereby prolonging what might otherwise
be a simple one shot exchange. It also can save time and wear and tear
on developers, since, in the process of collecting detailed information,
you might stumble upon possible solutions to your problem on your own,
to wit:

> ...but my recent current is:
> 
> FreeBSD canoe.velocet.net 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Jul 15 17:54:29 
> EDT 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CANOE  i386


[/u/wpaul/xl/src/sys/dev/bge]:zim.wrs.com{58}% cvs log if_bge.c

[...]

revision 1.44
date: 2003/07/16 00:09:56;  author: wpaul;  state: Exp;  lines: +226 -103
  ^^
Add support for the BCM5705 and its ilk. Changes:

- 5705 doesn't support jumbo frames
- Statistics must be read from registers
- RX return ring must be capped at 512 entries
- Omit initialization of certain device blocks
- Acknowledge link change interrupts by setting the 'link changed'
  bit in the status register (used to have no effect)
- Remember to toggle the MI completion bit too
- Set the mbuf low watermark differently (on-chip memory buffers,
  not BSD mbufs)
- Don't enable [EMAIL PROTECTED] feature for certain 5705 chip revs
- Add additional PCI IDs for 5705 and 5782 parts
- Add a forgotten 5704 PCI ID

Most changes ripped kicking and screaming from the Broadcom linux driver.
Thanks to Paul Saab for sanity testing. (My lack of sanity has been
confirmed.)


Your kernel image on July 15th. The changes were committed on July 16th.
You missed by one day.

-Bill

--
=
-Bill Paul(510) 749-2329 | Senior Engineer, Master of Unix-Fu
 [EMAIL PROTECTED] | Wind River Systems
=
  "If stupidity were a handicap, you'd have the best parking spot."
=
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: bge driver not recognising BCM 5705M

2003-08-01 Thread David Gilbert
> "Bill" == Bill Paul <[EMAIL PROTECTED]> writes:

>> I'm somewhat confused.
Bill> So am I: where were you when I asked sent e-mail to this list
Bill> asking for people to test the 5705 changes before I committed
Bill> them?

I very well might not have had this machine.  When did you commit
them?

>> On a recent 5.1-CURRENT, boot -v gives me:

Bill> Actually, boot -v gives you much more, like the date when the
Bill> kernel image was compiled. Too bad you decided not to show
Bill> everything to us.

I didn't want to spam, but my recent current is:

FreeBSD canoe.velocet.net 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Jul 15 17:54:29 EDT 
2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CANOE  i386

Bill> You'll need to investigate this one for yourself. Make *SURE*
Bill> you booted from the right kernel image (strings -a
Bill> /boot/kernel/kernel | grep 5705).  A good way to experiment is
Bill> compile your kernel _WITHOUT_ bge support, and then build
Bill> if_bge.ko as a module:

Bill> # cd /sys/modules/bge # make; make load

I will do that presently.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: bge driver not recognising BCM 5705M

2003-08-01 Thread Bill Paul
> I'm somewhat confused.

So am I: where were you when I asked sent e-mail to this list asking
for people to test the 5705 changes before I committed them?

> On a recent 5.1-CURRENT, boot -v gives me:

Actually, boot -v gives you much more, like the date when the kernel
image was compiled. Too bad you decided not to show everything to us.
 
> found-> vendor=0x14e4, dev=0x165d, revid=0x01
> bus=2, slot=0, func=0
> class=02-00-00, hdrtype=0x00, mfdev=0
> cmdreg=0x0116, statreg=0x02b0, cachelnsz=8 (dwords)
> lattimer=0x20 (960 ns), mingnt=0x40 (16000 ns), maxlat=0x00 (0 ns)
> intpin=a, irq=11
> powerspec 2  supports D0 D3  current D0
> 
> followed by:
> 
> pci2:  at device 0.0 (no driver attached)
> 
> This is the internal Gigabit ethernet on my Dell D800 laptop... but
> it's not recognised, even though...
> 
> static struct bge_type bge_devs[] = {
> 
> ...
> 
> { BCOM_VENDORID, BCOM_DEVICEID_BCM5705,
> "Broadcom BCM5705 Gigabit Ethernet" },
> 
> ...
> 
> };
> 
> and ...
> 
> #define BCOM_VENDORID   0x14E4
> #define BCOM_DEVICEID_BCM5705M  0x165D
> 
> ... so why doesn't the bge driver kick in?

You'll need to investigate this one for yourself. Make *SURE* you booted
from the right kernel image (strings -a /boot/kernel/kernel | grep 5705).
A good way to experiment is compile your kernel _WITHOUT_ bge support,
and then build if_bge.ko as a module:

# cd /sys/modules/bge
# make; make load

-Bill

--
=
-Bill Paul(510) 749-2329 | Senior Engineer, Master of Unix-Fu
 [EMAIL PROTECTED] | Wind River Systems
=
  "If stupidity were a handicap, you'd have the best parking spot."
=
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


bge driver not recognising BCM 5705M

2003-07-31 Thread David Gilbert
I'm somewhat confused.  On a recent 5.1-CURRENT, boot -v gives me:

found-> vendor=0x14e4, dev=0x165d, revid=0x01
bus=2, slot=0, func=0
class=02-00-00, hdrtype=0x00, mfdev=0
cmdreg=0x0116, statreg=0x02b0, cachelnsz=8 (dwords)
lattimer=0x20 (960 ns), mingnt=0x40 (16000 ns), maxlat=0x00 (0 ns)
intpin=a, irq=11
powerspec 2  supports D0 D3  current D0

followed by:

pci2:  at device 0.0 (no driver attached)

This is the internal Gigabit ethernet on my Dell D800 laptop... but
it's not recognised, even though...

static struct bge_type bge_devs[] = {

...

{ BCOM_VENDORID, BCOM_DEVICEID_BCM5705,
"Broadcom BCM5705 Gigabit Ethernet" },

...

};

and ...

#define BCOM_VENDORID   0x14E4
#define BCOM_DEVICEID_BCM5705M  0x165D

... so why doesn't the bge driver kick in?

[3:5:[EMAIL PROTECTED]:/usr/home/dgilbert> kldstat -v | grep bge
29 pci/bge
30 bge/miibus

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"