ed0 problems for PCI

1999-10-21 Thread Peter S. Housel

I've been having problems with -current not recognizing my RealTek
8029-based PCI Ethernet card.  It worked fine in my previous machine
running -current from July, but neither the late September snapshot
that I installed on the new machine nor the cvsup version from about a
week ago can configure the card.  The pciconf and dmesg output are shown below:

chip0@pci0:0:0: class=0x06 card=0x chip=0x71908086 rev=0x03 hdr=0x00
pcib1@pci0:1:0: class=0x060400 card=0x chip=0x71918086 rev=0x03 hdr=0x01
isab0@pci0:7:0: class=0x060100 card=0x chip=0x71108086 rev=0x02 hdr=0x00
ide_pci0@pci0:7:1:  class=0x010180 card=0x chip=0x71118086 rev=0x01 
hdr=0x00
chip1@pci0:7:2: class=0x0c0300 card=0x chip=0x71128086 rev=0x01 hdr=0x00
chip2@pci0:7:3: class=0x068000 card=0x chip=0x71138086 rev=0x02 hdr=0x00
none0@pci0:14:0:class=0x040100 card=0x33565053 chip=0x000212eb rev=0xfe 
hdr=0x00
ed0@pci0:17:0:  class=0x02 card=0x03001186 chip=0x802910ec rev=0x00 hdr=0x00
vga-pci0@pci1:0:0:  class=0x03 card=0x5a001092 chip=0x002810de rev=0x11 
hdr=0x00

Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #2: Tue Oct 19 21:20:08 PDT 1999
[EMAIL PROTECTED]:/usr/src/sys/compile/MONDAY
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Xeon (598.62-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,XMM
real memory  = 134217728 (131072K bytes)
avail memory = 127332352 (124348K bytes)
Preloaded elf kernel "kernel" at 0xc02bd000.
Pentium Pro MTRR support enabled
npx0: math processor on motherboard
npx0: INT 16 interface
apm0: APM BIOS on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pcib0: Intel 82443BX (440 BX) host to PCI bridge on motherboard
pci0: PCI bus on pcib0
pcib1: Intel 82443BX (440 BX) PCI-PCI (AGP) bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
vga-pci0: NVidia Riva TNT2 graphics accelerator irq 11 at device 0.0 on pci1
isab0: Intel 82371AB PCI to ISA bridge at device 7.0 on pci0
isa0: ISA bus on isab0
ide_pci0: Intel PIIX4 Bus-master IDE controller at device 7.1 on pci0
chip1: UHCI USB controller irq 9 at device 7.2 on pci0
chip2: Intel 82371AB Power management controller at device 7.3 on pci0
pci0: unknown card (vendor=0x12eb, dev=0x0002) at 14.0 irq 3
ed0: NE2000 PCI Ethernet (RealTek 8029) irq 9 at device 17.0 on pci0
device_probe_and_attach: ed0 attach returned 2
fdc0: NEC 72065B or clone at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5" drive on fdc0 drive 0
wdc0 at port 0x1f0-0x1f7 irq 14 on isa0
wdc0: unit 0 (wd0): Maxtor 91360U4
wd0: 12982MB (26588016 sectors), 26377 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 at port 0x170-0x177 irq 15 on isa0
wdc1: unit 0 (atapi): HITACHI DVD-ROM GD-5000/0212, removable, accel, dma, iordis
wcd0: drive speed 2412 - 6890KB/sec, 512KB cache
wcd0: supported read types: CD-R, CD-RW, CD-DA, packet track
wcd0: Audio: play, 256 volume levels
wcd0: Mechanism: ejectable tray
wcd0: Medium: CD-ROM 120mm data disc loaded, unlocked
wdc1: unit 1 (atapi): IOMEGA  ZIP 100   ATAPI/14.A, removable, intr, iordis
wfd0: medium type unknown (no disk)
wfd0: buggy Zip drive, 64-block transfer limit set
atkbdc0: keyboard controller (i8042) at port 0x60-0x6f on isa0
atkbd0: AT Keyboard irq 1 on atkbdc0
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
vga0: Generic ISA VGA at port 0x3b0-0x3df iomem 0xa-0xb on isa0
sc0: System console on isa0
sc0: VGA 16 virtual consoles, flags=0x200
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio2: not probed (disabled)
sio3: not probed (disabled)
ppc0 at port 0x378-0x37f irq 7 flags 0x40 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppb0: IEEE1284 device found /NIBBLE
Probing for PnP devices on ppbus0:
ppbus0: Hewlett-Packard HP LaserJet 6L/0101.01 PRINTER HP ENHANCED PCL5,PJL
plip0: PLIP network interface on ppbus 0
lpt0: generic printer on ppbus 0
lpt0: Interrupt-driven port
ppi0: generic parallel i/o on ppbus 0
changing root device to wd0s2a


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ed0 problems for PCI

1999-10-21 Thread Matthew N. Dodd

On Thu, 21 Oct 1999, Peter S. Housel wrote:
 I've been having problems with -current not recognizing my RealTek
 8029-based PCI Ethernet card.  It worked fine in my previous machine
 running -current from July, but neither the late September snapshot
 that I installed on the new machine nor the cvsup version from about a
 week ago can configure the card.  The pciconf and dmesg output are
 shown below:

Ok, I found a PCI NE2000 board and put it in a scratch box:

ed0: NE2000 PCI Ethernet (ProLAN) irq 14 at device 12.0 on pci0
ed0: address 00:20:78:11:87:8c, type NE2000 (16 bit) 

I suspect that the card is failing to to allocate an IRQ; if you could add
printf()s in the right places we'll know for sure.

I think its time to force the PCI newbus code to automatically make IRQs
RF_SHAREABLE.  I did this with the MCA code since you can't have unshared
IRQs on a PS/2 (not on the MCA bus anyways.)

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message