Skip site navigation (1)Skip section navigation (2)
Date:      23 Mar 2001 14:29:13 -0800
From:      psglenn@uswestmail.net
To:        mckay@thehub.com.au
Cc:        stable@FreeBSD.org
Subject:   Re: Problem with 4.2-STABLE and dc0
Message-ID:  <20010323222913.17220.cpmta@c000.sfo.cp.net>

next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
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: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <AcerLabs M5247 PCI-PCI(AGP Supported) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 5046 graphics accelerator> at 0.0 irq 10
isab0: <AcerLabs M1533 portable PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AcerLabs Aladdin ATA33 controller> port 0xffa0-0xffaf irq 0 at device 15.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
atapci1: <Promise ATA100 controller> 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: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fdc0: <NEC 72065B or clone> 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: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> 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: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pcm0: <CMI8330> at port 0x530-0x537,0x388-0x38f irq 11 drq 0 on isa0
ad0: 8223MB <ST38410A> [16708/16/63] at ata0-master UDMA33
ad4: 19092MB <WDC WD200BB-00AUA1> [38792/16/63] at ata2-master UDMA100
acd0: CDROM <ATAPI CDROM RH5.10> 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




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