Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 1999 17:46:52 -0400
From:      "John R. LoVerso" <john@loverso.southborough.ma.us>
To:        stable@freebsd.org
Subject:   Kingston 10/100 enet (3.2-BETA)
Message-ID:  <373C99CC.FEC14AE0@loverso.southborough.ma.us>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------65E9E53CD4825308BF8B37F5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I'm trying to get a Kingston 10/100 ethernet card working in a Pentium II box.
This card uses a 21140-AF, so I expected it should work.  As it is, the system
successfully probes the card, but never attaches it.  I tracked this down by
adding code in tulip_pci_attach() in all the places where it just returns on an
error without printing a message.  I found that it is the call to pci_map_port()
that is falling, although I don't know why.

The driver claims to "mostly" support any other PCI board with a 21140.  Am I in
the "mostly" grey zone?  Any help would be appreciated.

Anyway, FWIW, I include my minor changes to pci/if_de.c to print out several
attach error messages.  These would be useful to find out why the device is
probed but not attached.

I also include my boot messages, incase this is somehow a PCI or motherboard
issue.  This is basically a 3.2-BETA GENERIC kernel with "option TULIP_DEBUG"
added.

John
--------------65E9E53CD4825308BF8B37F5
Content-Type: text/plain; charset=us-ascii;
 name="if_de.c.diffs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="if_de.c.diffs"

--- if_de.c_orig	Thu Mar 18 13:47:28 1999
+++ if_de.c	Fri May 14 17:28:26 1999
@@ -5652,8 +5652,14 @@
 	else if (PCI_CHIPID(id) == CHIPID_21142)
 		chipid = (revinfo >= 0x20) ? TULIP_21143 : TULIP_21142;
     }
-    if (chipid == TULIP_CHIPID_UNKNOWN)
+    if (chipid == TULIP_CHIPID_UNKNOWN) {
+#ifdef __FreeBSD__
+	printf("de%d", unit);
+#endif
+	printf(": unknown; vendorid=%d chipid=%d\n",
+		PCI_VENDORID(id), PCI_CHIPID(id));
 	return;
+    }
 
     if ((chipid == TULIP_21040 || chipid == TULIP_DE425) && revinfo < 0x20) {
 #ifdef __FreeBSD__
@@ -5673,8 +5679,13 @@
 
 #if defined(__FreeBSD__)
     sc = (tulip_softc_t *) malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT);
-    if (sc == NULL)
+    if (sc == NULL) {
+#ifdef __FreeBSD__
+	printf("de%d", unit);
+#endif
+	printf(": can't malloc softc\n");
 	return;
+    }
     bzero(sc, sizeof(*sc));				/* Zero out the softc*/
 #endif
 
@@ -5747,6 +5758,10 @@
 #endif
     if (!retval) {
 	free((caddr_t) sc, M_DEVBUF);
+#ifdef __FreeBSD__
+	printf("de%d", unit);
+#endif
+	printf(": couldn't map mem/port; csr_base=0x%x retval=%d\n", csr_base, retval);
 	return;
     }
     tulips[unit] = sc;
@@ -5805,6 +5820,10 @@
 	if (sc->tulip_txdescs)
 	    free((caddr_t) sc->tulip_txdescs, M_DEVBUF);
 	free((caddr_t) sc, M_DEVBUF);
+#ifdef __FreeBSD__
+	printf("de%d", unit);
+#endif
+	printf(": couldn't alloc rx/tx descs\n");
 	return;
     }
 #else

--------------65E9E53CD4825308BF8B37F5
Content-Type: text/plain; charset=us-ascii;
 name="dmesg"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="dmesg"

May 14 17:34:05 fin /kernel: Copyright (c) 1992-1999 FreeBSD Inc.
May 14 17:34:05 fin /kernel: Copyright (c) 1982, 1986, 1989, 1991, 1993
May 14 17:34:05 fin /kernel: The Regents of the University of California. All rights reserved.
May 14 17:34:05 fin /kernel: FreeBSD 3.2-19990512-BETA #5: Fri May 14 17:28:30 EDT 1999
May 14 17:34:05 fin /kernel: root@fin.sitaranetworks.com:/usr/src/sys/compile/TULIP
May 14 17:34:05 fin /kernel: Timecounter "i8254"  frequency 1193182 Hz
May 14 17:34:05 fin /kernel: CPU: Pentium II/Xeon/Celeron (333.05-MHz 686-class CPU)
May 14 17:34:05 fin /kernel: Origin = "GenuineIntel"  Id = 0x650  Stepping=0
May 14 17:34:05 fin /kernel: Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,<b24>>
May 14 17:34:05 fin /kernel: real memory  = 134217728 (131072K bytes)
May 14 17:34:05 fin /kernel: avail memory = 127180800 (124200K bytes)
May 14 17:34:05 fin /kernel: Preloaded elf kernel "kernel" at 0xc033d000.
May 14 17:34:05 fin /kernel: Probing for devices on PCI bus 0:
May 14 17:34:05 fin /kernel: chip0: <Host to PCI bridge (vendor=8086 device=7180)> rev 0x03 on pci0.0.0
May 14 17:34:05 fin /kernel: chip1: <PCI to PCI bridge (vendor=8086 device=7181)> rev 0x03 on pci0.1.0
May 14 17:34:05 fin /kernel: chip2: <Intel 82371AB PCI to ISA bridge> rev 0x02 on pci0.7.0
May 14 17:34:05 fin /kernel: ide_pci0: <Intel PIIX4 Bus-master IDE controller> rev 0x01 on pci0.7.1
May 14 17:34:05 fin /kernel: chip3: <Intel 82371AB Power management controller> rev 0x02 on pci0.7.3
May 14 17:34:05 fin /kernel: fxp0: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x02 int a irq 10 on pci0.13.0
May 14 17:34:05 fin /kernel: fxp0: Ethernet address 00:a0:c9:97:d8:69
May 14 17:34:05 fin /kernel: de0: <Digital 21140A Fast Ethernet> rev 0x22 int a irq 9 on pci0.16.0
May 14 17:34:05 fin /kernel: de0: couldn't map mem/port; csr_base=0xc034 retval=0
May 14 17:34:05 fin /kernel: Probing for devices on PCI bus 1:
May 14 17:34:05 fin /kernel: vga0: <Trident model 9750 VGA-compatible display device> rev 0xf3 int a irq 11 on pci1.0.0
May 14 17:34:05 fin /kernel: Probing for devices on the ISA bus:
May 14 17:34:06 fin /kernel: sc0 on isa
May 14 17:34:06 fin /kernel: sc0: VGA color <16 virtual consoles, flags=0x0>
May 14 17:34:06 fin /kernel: ed0 not found at 0x280
May 14 17:34:06 fin /kernel: fe0 not found at 0x300
May 14 17:34:06 fin /kernel: atkbdc0 at 0x60-0x6f on motherboard
May 14 17:34:06 fin /kernel: atkbd0 irq 1 on isa
May 14 17:34:06 fin /kernel: psm0 irq 12 on isa
May 14 17:34:06 fin /kernel: psm0: model Generic PS/2 mouse, device ID 0
May 14 17:34:06 fin /kernel: sio0: configured irq 4 not in bitmap of probed irqs 0
May 14 17:34:06 fin /kernel: sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
May 14 17:34:06 fin /kernel: sio0: type 8250
May 14 17:34:06 fin /kernel: sio1: configured irq 3 not in bitmap of probed irqs 0
May 14 17:34:06 fin /kernel: sio1 not found at 0x2f8
May 14 17:34:06 fin /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
May 14 17:34:06 fin /kernel: fdc0: FIFO enabled, 8 bytes threshold
May 14 17:34:06 fin /kernel: fd0: 1.44MB 3.5in
May 14 17:34:06 fin /kernel: wdc0 at 0x1f0-0x1f7 irq 14 on isa
May 14 17:34:06 fin /kernel: wdc0: unit 0 (wd0): <WDC AC33100H>
May 14 17:34:06 fin /kernel: wd0: 3020MB (6185088 sectors), 6136 cyls, 16 heads, 63 S/T, 512 B/S
May 14 17:34:06 fin /kernel: wdc0: unit 1 (wd1): <SAMSUNG VA34323A>
May 14 17:34:06 fin /kernel: wd1: 4124MB (8446410 sectors), 8938 cyls, 15 heads, 63 S/T, 512 B/S
May 14 17:34:06 fin /kernel: wdc1 at 0x170-0x177 irq 15 on isa
May 14 17:34:06 fin /kernel: wdc1: unit 0 (atapi): <FX320M/m02>, removable, intr, dma, iordis
May 14 17:34:06 fin /kernel: acd0: drive speed 5512KB/sec, 256KB cache
May 14 17:34:06 fin /kernel: acd0: supported read types: CD-R, CD-RW, CD-DA, packet track
May 14 17:34:06 fin /kernel: acd0: Audio: play, 255 volume levels
May 14 17:34:06 fin /kernel: acd0: Mechanism: ejectable tray
May 14 17:34:06 fin /kernel: acd0: Medium: no/blank disc inside, unlocked
May 14 17:34:06 fin /kernel: ppc0 not found
May 14 17:34:06 fin /kernel: ie0: unknown board_id: f000
May 14 17:34:06 fin /kernel: ie0 not found at 0x300
May 14 17:34:06 fin /kernel: ep0 not found at 0x300
May 14 17:34:06 fin /kernel: ex0 not found
May 14 17:34:06 fin /kernel: le0 not found at 0x300
May 14 17:34:06 fin /kernel: lnc0 not found at 0x280
May 14 17:34:06 fin /kernel: ze0 not found at 0x300
May 14 17:34:06 fin /kernel: zp0 not found at 0x300
May 14 17:34:06 fin /kernel: cs0 not found at 0x300
May 14 17:34:06 fin /kernel: vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
May 14 17:34:06 fin /kernel: npx0 on motherboard
May 14 17:34:07 fin /kernel: npx0: INT 16 interface
May 14 17:34:07 fin /kernel: changing root device to wd0s1a

--------------65E9E53CD4825308BF8B37F5--



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?373C99CC.FEC14AE0>