From owner-freebsd-current Sat Sep 4 5: 4:33 1999 Delivered-To: freebsd-current@freebsd.org Received: from server.amis.net (server.amis.net [212.18.32.10]) by hub.freebsd.org (Postfix) with ESMTP id 646AB15277 for ; Sat, 4 Sep 1999 05:04:18 -0700 (PDT) (envelope-from blaz@gold.amis.net) Received: by server.amis.net (Postfix, from userid 66) id 39544D5E34; Sat, 4 Sep 1999 14:01:58 +0200 (CEST) Received: by gold.amis.net (Postfix, from userid 1000) id BAEC0925C; Sat, 4 Sep 1999 14:01:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by gold.amis.net (Postfix) with ESMTP id AFA2157F7 for ; Sat, 4 Sep 1999 14:01:18 +0200 (CEST) Date: Sat, 4 Sep 1999 14:01:18 +0200 (CEST) From: Blaz Zupan To: freebsd-current@freebsd.org Subject: ed driver problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to configure my new Compex NE2000 PCI card under 4.0-current. Just before the latest PnP changes, the card was just recognized like this: ed0: irq 10 at device 13.0 on pci0 It did not display the MAC, and "ifconfig -a" did not show ed0/ed1 as configured. I even tried booting a generic 2.2.1 and 3.2 kernel, with the same symptoms. After the PnP changes, I get this: ed0: irq 10 at device 13.0 on pci0 device_probe_and_attach: ed0 attach returned 2 I sprinkeled a couple of printf's through if_ed.c and found out, that bus_alloc_resource() fails in ed_alloc_port() in if_ed.c, thus ed_alloc_port() returns ENOENT (== 2). Why could allocating an I/O port address fail? Ok, so I have somehow misconfigured my BIOS settings, I thought. Booting Windows 98 (eeek!), my card is recognized and works perfectly. I'm looking at what I could have done wrong in the BIOS, but there is nothing I can find (there are actually no settings concerning PCI devices). The motherboard is an AN430TX from Intel and the machine is pretty crowded with cards (Teles S0/16.3 ISDN card, Courier internal modem, Adaptec 2940 and the network card, onboard audio). Here is the dmesg output: 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 #0: Sat Sep 4 11:28:56 CEST 1999 root@gold.amis.net:/home/blaz/FreeBSD/src/sys/compile/GOLD Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P55C (232.88-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x543 Stepping = 3 Features=0x8001bf real memory = 67108864 (65536K bytes) avail memory = 62140416 (60684K bytes) Preloaded elf kernel "kernel" at 0xc02d8000. Intel Pentium detected, installing workaround for F00F bug npx0: on motherboard npx0: INT 16 interface apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 pcib0: on motherboard pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 ide_pci0: at device 7.1 on pci0 chip1: irq 9 at device 7.2 on pci0 chip2: at device 7.3 on pci0 ed0: irq 10 at device 13.0 on pci0 device_probe_and_attach: ed0 attach returned 2 ahc0: irq 12 at device 14.0 on pci0 ahc0: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs vga-pci0: irq 11 at device 15.0 on pci0 fdc0: 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 flags 0xa0ffa0ff on isa0 wdc0: unit 0 (wd0): , DMA, 32-bit, multi-block-16 wd0: 13783MB (28229040 sectors), 28005 cyls, 16 heads, 63 S/T, 512 B/S atkbdc0: at port 0x60-0x6f on isa0 atkbd0: irq 1 on atkbdc0 vga0: at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio2 at port 0x3e8-0x3ef irq 5 on isa0 sio2: type 16550A isic0 at port 0xd80 irq 15 flags 0x3 on isa0 isic0: Teles S0/16.3 isic0: ISAC 2085 Version A1/A2 or 2086/2186 Version 1.1 (IOM-2) (Addr=0x960) isic0: HSCX 82525 or 21525 Version 2.1 (AddrA=0x160, AddrB=0x560) ppc0 at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: on ppbus 0 lpt0: Interrupt-driven port pcm1: at port 0x240-0x24f,0xe80-0xe87,0x388-0x38f,0x300-0x301,0x100-0x101 irq 9 drq 0,1 on isa0 unknown0: at port 0x201 on isa0 i4b: ISDN call control device attached i4bisppp: 4 ISDN SyncPPP device(s) attached i4bctl: ISDN system control port attached i4bipr: 4 IP over raw HDLC ISDN device(s) attached i4btel: 2 ISDN telephony interface device(s) attached i4brbch: 4 raw B channel access device(s) attached i4btrc: 4 ISDN trace device(s) attached changing root device to da0s1a da1 at ahc0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 10.000MB/s transfers (10.000MHz, offset 15) da1: 1547MB (3170160 512 byte sectors: 255H 63S/T 197C) cd0 at ahc0 bus 0 target 3 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled da0: 2063MB (4226725 512 byte sectors: 255H 63S/T 263C) My kernel config file contains this: device ed0 Any idea what could be wrong here? This card works under FreeBSD 3.2 on another machine just fine, and is detected like this: ed1: rev 0x0a int a irq 11 on pci0.11.0 ed1: address 00:80:48:ca:b8:40, type NE2000 (16 bit) So I guess there is something wrong with my machine, but what? I mean, PCI cards really don't have any settings and the only thing I can do in the BIOS is reserve IRQ's for ISA legacy devices, which I have done (I have reserverd IRQ 5 for the Courier). Any help will be appreciated. Blaz Zupan, blaz@amis.net, http://www.herbie.amis.net Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message