From owner-freebsd-stable Fri Mar 23 14:29:30 2001 Delivered-To: freebsd-stable@freebsd.org Received: from c000.sfo.cp.net (c004-h007.c004.snv.cp.net [209.228.33.71]) by hub.freebsd.org (Postfix) with SMTP id 686D337B718 for ; Fri, 23 Mar 2001 14:29:19 -0800 (PST) (envelope-from psglenn@uswestmail.net) Received: (cpmta 17221 invoked from network); 23 Mar 2001 14:29:13 -0800 Date: 23 Mar 2001 14:29:13 -0800 Message-ID: <20010323222913.17220.cpmta@c000.sfo.cp.net> X-Sent: 23 Mar 2001 22:29:13 GMT Received: from [64.40.46.6] by mail.uswestmail.net with HTTP; 23 Mar 2001 14:29:13 PST Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: mckay@thehub.com.au From: psglenn@uswestmail.net Cc: stable@FreeBSD.org X-Mailer: Web Mail 3.7.1.9 Subject: Re: Problem with 4.2-STABLE and dc0 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, the below patch did not work for some reason, but I inserted and deleted manually and that seemed to work. I have an FA310TX which has been working well except for the dc0: failed to force tx and rx to idle state messages. I'd like to help with this problem so let me know what else might help. My new dmesg is: Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.3-RC #1: Fri Mar 23 13:40:54 PST 2001 root@big.psf.his.org:/usr/src/sys/compile/BIG Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (367.50-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x665 Stepping = 5 Features=0x183f9ff real memory = 201326592 (196608K bytes) avail memory = 192372736 (187864K bytes) Preloaded elf kernel "kernel" at 0xc037a000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 10 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf irq 0 at device 15.0 on pci0 ata0: at 0x1f0 irq 14 on atapci0 atapci1: port 0xdc80-0xdcbf,0xddc8-0xddcb,0xddd0-0xddd7,0xddf8-0xddfb,0xdde0-0xdde7 mem 0xdffc0000-0xdffdffff irq 9 at device 16.0 on pci0 ata2: at 0xdde0 on atapci1 ata3: at 0xddd0 on atapci1 dc0: <82c169 PNIC 10/100BaseTX> port 0xde00-0xdeff mem 0xdfffff00-0xdfffffff irq 9 at device 18.0 on pci0 dc0: Ethernet address: 00:a0:cc:60:08:b6 miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pcm0: at port 0x530-0x537,0x388-0x38f irq 11 drq 0 on isa0 ad0: 8223MB [16708/16/63] at ata0-master UDMA33 ad4: 19092MB [38792/16/63] at ata2-master UDMA100 acd0: CDROM at ata3-slave using PIO4 Mounting root from ufs:/dev/ad0s1a dc0 i=0 isr=0x2211104 dc0 i=0 isr=0x2211104 dc0 i=0 isr=0x2201100 Perry >I'd like anyone who is testing for the 4.3 release, who uses any of the >cards supported by the dc driver, and who has a bit of spare time, to >try this patch, and send me the results. When you get bored with the >diag output, just delete the obvious printf. >Stephen. --- if_dc.c.orig Tue Mar 6 22:41:17 2001 +++ if_dc.c Sun Mar 18 20:16:30 2001 @@ -1204,11 +1204,12 @@ for (i = 0; i < DC_TIMEOUT; i++) { isr = CSR_READ_4(sc, DC_ISR); - if (isr & DC_ISR_TX_IDLE && + if ((isr & DC_ISR_TX_IDLE || DC_IS_PNIC(sc)) && (isr & DC_ISR_RX_STATE) == DC_RXSTATE_STOPPED) break; DELAY(10); } + printf("dc%d: i=%d isr=0x%x\n", sc->dc_unit, i, isr); if (i == DC_TIMEOUT) printf("dc%d: failed to force tx and " To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message That's all for now. Signup for your free USWEST.mail Email account http://www.uswestmail.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message