Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2000 12:30:51 +0200
From:      Wilko Bulte <wkb@chello.nl>
To:        Bill Paul <wpaul@FreeBSD.ORG>
Cc:        Bernd Walter <ticso@cicely.de>, current@FreeBSD.ORG, alpha@FreeBSD.ORG
Subject:   Re: Looking for testers for if_dc patches
Message-ID:  <20000531123051.A86871@freebie.wbnet>
In-Reply-To: <20000530162946.C81A937B892@hub.freebsd.org>; from wpaul@FreeBSD.ORG on Tue, May 30, 2000 at 09:29:46AM -0700
References:  <20000530175945.A20508@cicely7.cicely.de> <20000530162946.C81A937B892@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 30, 2000 at 09:29:46AM -0700, Bill Paul wrote:
> > On Tue, May 30, 2000 at 12:28:25AM -0700, Bill Paul wrote:
> > > Several people have reported problems with if_dc botching autonegotiation
> > > on 21143 NICs with non-MII media, such as the DEC/Compaq DE500-BA and
> > > the built-in 10/100 ethernet on some alphas. As my first official act
> > > as a BSDi/WC employee, I sat down and tried to fix this. I produced
> > > some patches for if_dc.c/if_dcreg.h and dcphy.c, which are sitting at
> > > http://people.freebsd.org/~wpaul/dc_test. To apply them, do the following:
> > 
> > [...]
> > cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing -prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -ffixed-8 -Wa,-mev56  ../../pci/if_dc.c
> > ../../pci/if_dc.c: In function `dc_init':
> > ../../pci/if_dc.c:2697: structure has no member named `dc_flgs'
> > *** Error code 1
> > 
> > Stop in /var/d7/src-2000-05-28/src/sys/compile/CICELY9.
> > 
> > This is on 5.0-CURRENT as of 28th May on alpha
> 
> Grrr. Typo on my part, sorry. It should be flags, not flgs. I just fixed
> the patch file. You can download it again, or just correct the typo manually.

Hi Bill,

I applied your patches to -current without incidents. 

I have a testbox (Digital dual P6) that gives:

May 31 10:56:38 p6 /kernel: dc0: <Intel 21143 10/100BaseTX> port
0xec00-0xec7f m
em 0xfdfffc00-0xfdfffc7f irq 9 at device 3.0 on pci0
May 31 10:56:38 p6 /kernel: dc0: Ethernet address: 00:00:f8:75:3c:6a 
May 31 10:56:38 p6 /kernel: miibus0: <MII bus> on dc0
May 31 10:56:38 p6 /kernel: dcphy0: <Intel 21143 NWAY media interface> on
miibus
0
May 31 10:56:38 p6 /kernel: dcphy0:  10baseT, 10baseT-FDX, 100baseTX,
100baseTX-
FDX, auto
May 31 10:56:38 p6 /kernel: dc0: supplying EUI64: 00:00:f8:ff:fe:75:3c:6a
May 31 10:56:38 p6 /kernel: isab0: <Intel 82371SB PCI to ISA bridge> at
device 7
...
May 31 10:56:39 p6 /kernel: dc0: starting DAD for
fe80:0001::0200:f8ff:fe75:3c6a
May 31 10:56:39 p6 /kernel: dc0: DAD complete for
fe80:0001::0200:f8ff:fe75:3c6a
 - no duplicates found
May 31 10:56:43 p6 /kernel: dc0: watchdog timeout
May 31 10:57:18 p6 last message repeated 3 times
May 31 10:57:58 p6 /kernel: dc0: watchdog timeout
May 31 10:58:53 p6 login: ROOT LOGIN (root) ON ttyv0
May 31 10:58:56 p6 login: ROOT LOGIN (root) ON ttyv0
May 31 10:59:57 p6 /kernel: dc0: watchdog timeout
May 31 11:03:27 p6 /kernel: dc0: watchdog timeout

This box can also house an Alpha Miata MX5 mainboard, the Intel & Alpha
boards use the same PCI riser card that also contains the 21143 chip. 
The patches don't seem to help on this particular hardware. I will try
to give the Alpha a spin too, later today. BTW: ifconfig-ing to use
10baseT/UTP does not help either. The media bulkhead is a 10baseT/10base2
one. if_de has no problems:

May 31 11:12:21 p6 /kernel: de0: <Digital 21142 Fast Ethernet> port
0xec00-0xec7
f mem 0xfdfffc00-0xfdfffc7f irq 9 at device 3.0 on pci0
May 31 11:12:21 p6 /kernel: de0: DEC 21142 [10-100Mb/s] pass 1.1
May 31 11:12:21 p6 /kernel: de0: address 00:00:f8:75:3c:6a
May 31 11:12:21 p6 /kernel: de0: supplying EUI64: 00:00:f8:ff:fe:75:3c:6a
May 31 11:12:21 p6 /kernel: isab0: <Intel 82371SB PCI to ISA bridge> at
device 
...
May 31 11:12:21 p6 /kernel: de0: enabling 10baseT port

Rather than repeating please see also:

To: FreeBSD-alpha mailing list <freebsd-alpha@FreeBSD.ORG>
Subject: dc driver for embedded ethernet on Miata MX5 problems
Message-ID: <20000406212804.A1731@yedi.wbnet>

and PR:

alpha/17833: dc driver for embedded ethernet on Miata MX5 problems

Thanks for your efforts, please let me know if you want me to try something
particular. 

-- 
Wilko Bulte 	FreeBSD, the power to serve  	http://www.freebsd.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000531123051.A86871>