From owner-freebsd-bugs Mon Oct 19 12:55:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA12828 for freebsd-bugs-outgoing; Mon, 19 Oct 1998 12:55:16 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from george.lbl.gov (george.lbl.gov [131.243.2.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA12820 for ; Mon, 19 Oct 1998 12:55:14 -0700 (PDT) (envelope-from jin@george.lbl.gov) Received: (from jin@localhost) by george.lbl.gov (8.8.8/8.8.8) id MAA07044; Mon, 19 Oct 1998 12:54:49 -0700 (PDT) Date: Mon, 19 Oct 1998 12:54:49 -0700 (PDT) From: Jin Guojun (FTG staff) Message-Id: <199810191954.MAA07044@george.lbl.gov> To: se@mi.uni-koeln.de Subject: pciconf does not report unloaded devices under 3.x-RELEASE, as well as the kernel, which causes modload failure Cc: bugs@FreeBSD.ORG Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org STefan, Under 3.0 RELEASE, the pciconf does not report these devices if there is no driver is loaded into the kernel for them. This causes the modload fails: # modload -v -ezatm_mod /lkm/znatmdrv.o modload: error initializing module: Device not configured The 2.2.7 and 3.0 dmesg and pciconf output are appened at the end of this mail. The unused ISA devices are reported by dmesg on both systems, but not unused PCI devices are not reported under 3.0. I do not know if this is kernel issue or PCI probe issue. -Jin Appendix: dmesg and pciconf output FBSD2.2.7 # dmesg ... Probing for devices on PCI bus 0: chip0 rev 2 on pci0:0:0 chip1 rev 1 on pci0:1:0 chip2 rev 0 on pci0:1:1 ncr0 rev 19 int a irq 12 on pci0:10:0 ncr0 waiting for scsi devices to settle (ncr0:1:0): "CDC 94181-15 5466" type 0 fixed SCSI 1 sd0(ncr0:1:0): Direct-Access 573MB (1173930 512 byte sectors) fxp0 rev 2 int a irq 10 on pci0:11:0 fxp0: Ethernet address 00:a0:c9:9b:88:18 vga0 rev 1 int a irq 11 on pci0:12:0 pci0:13: vendor=0x1193, device=0x0001, class=network (unknown subclass 0x30) int a irq 9 [no driver assigned] Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> fe0 not found at 0x300 ... wd0: 2441MB (4999680 sectors), 4960 cyls, 16 heads, 63 S/T, 512 B/S wdc0: unit 1 (atapi): , removable, intr, dma, iordis 1 3C5x9 board(s) on ISA found at 0x300 ep0 at 0x300-0x30f irq 15 on isa ep0: aui/utp[*UTP*] address 00:20:af:ec:32:3c ex0 not found at 0xffffffff ... FBSD2.2.7 # pciconf -l pci0:0:0: class=0x060000 card=0x00000000 chip=0x12378086 rev=0x02 hdr=0x00 pci0:1:0: class=0x060100 card=0x00000000 chip=0x70008086 rev=0x01 hdr=0x80 pci0:1:1: class=0x010180 card=0x00000000 chip=0x70108086 rev=0x00 hdr=0x00 pci0:10:0: class=0x010000 card=0x00000000 chip=0x00031000 rev=0x13 hdr=0x00 pci0:11:0: class=0x020000 card=0x00018086 chip=0x12298086 rev=0x02 hdr=0x00 pci0:12:0: class=0x030000 card=0x8a015333 chip=0x8a015333 rev=0x01 hdr=0x00 pci0:13:0: class=0x023000 card=0x00000000 chip=0x00011193 rev=0x0a hdr=0x00 ------------ FBSD3.x # dmesg ... Probing for devices on PCI bus 0: chip0: rev 0x02 on pci0.0.0 chip1: rev 0x01 on pci0.1.0 ide_pci0: rev 0x01 on pci0.1.1 fxp0: rev 0x02 int a irq 10 on pci0.11.0 fxp0: Ethernet address 00:a0:c9:9b:88:18 ncr0: rev 0x13 int a irq 12 on pci0.10.0 Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> fe0 not found at 0x300 ... wdc0 not found at 0x1f0 1 3C5x9 board(s) on ISA found at 0x300 ep0 at 0x300-0x30f irq 15 on isa ep0: aui/utp[*UTP*] address 00:20:af:ec:32:3c ex0 not found at 0xffffffff ... FBSD3.x # pciconf -l chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x12378086 rev=0x02 hdr=0x00 chip1@pci0:1:0: class=0x060100 card=0x00000000 chip=0x70008086 rev=0x01 hdr=0x00 ide_pci0@pci0:1:1: class=0x010180 card=0x00000000 chip=0x70008086 rev=0x01 hdr=0x00 chip2@pci0:1:2: class=0x0c0300 card=0x00000000 chip=0x70108086 rev=0x00 hdr=0x00 ncr0@pci0:10:0: class=0x010000 card=0x00000000 chip=0x00031000 rev=0x03 hdr=0x00 fxp0@pci0:11:0: class=0x020000 card=0x00018086 chip=0x12298086 rev=0x02 hdr=0x00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message