From owner-freebsd-current Wed May 31 3:31: 5 2000 Delivered-To: freebsd-current@freebsd.org Received: from relay02.chello.nl (relay02.chello.nl [212.83.68.146]) by hub.freebsd.org (Postfix) with ESMTP id 0767D37B816; Wed, 31 May 2000 03:30:55 -0700 (PDT) (envelope-from wkb@chello.nl) Received: from chello.nl ([213.46.78.184]) by relay02.chello.nl (InterMail vK.4.02.00.00 201-232-116 license 2ee4e7c625482f2f2a1950a80f6c8d58) with ESMTP id <20000531103041.BGSG13476.relay02@chello.nl>; Wed, 31 May 2000 12:30:41 +0200 Received: (from wkb@localhost) by chello.nl (8.9.3/8.9.3) id MAA86941; Wed, 31 May 2000 12:30:52 +0200 (CEST) (envelope-from wkb) Date: Wed, 31 May 2000 12:30:51 +0200 From: Wilko Bulte To: Bill Paul Cc: Bernd Walter , current@FreeBSD.ORG, alpha@FreeBSD.ORG Subject: Re: Looking for testers for if_dc patches Message-ID: <20000531123051.A86871@freebie.wbnet> Reply-To: wc.bulte@chello.nl References: <20000530175945.A20508@cicely7.cicely.de> <20000530162946.C81A937B892@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000530162946.C81A937B892@hub.freebsd.org>; from wpaul@FreeBSD.ORG on Tue, May 30, 2000 at 09:29:46AM -0700 X-OS: FreeBSD 4.0-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: 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: on dc0 May 31 10:56:38 p6 /kernel: dcphy0: 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: 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: 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: at device ... May 31 11:12:21 p6 /kernel: de0: enabling 10baseT port Rather than repeating please see also: To: FreeBSD-alpha mailing list 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