From owner-freebsd-bugs Mon Oct 19 13:41:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16771 for freebsd-bugs-outgoing; Mon, 19 Oct 1998 13:41:40 -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 NAA16762 for ; Mon, 19 Oct 1998 13:41:36 -0700 (PDT) (envelope-from jin@george.lbl.gov) Received: (from jin@localhost) by george.lbl.gov (8.8.8/8.8.8) id NAA07912; Mon, 19 Oct 1998 13:41:12 -0700 (PDT) Date: Mon, 19 Oct 1998 13:41:12 -0700 (PDT) From: Jin Guojun (FTG staff) Message-Id: <199810192041.NAA07912@george.lbl.gov> To: ken@plutotech.com Subject: Re: pciconf does not report unloaded devices under 3.x-RELEASE, as well as the kernel, which causes modload failure Cc: bugs@FreeBSD.ORG, se@mi.uni-koeln.de Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ken, The patch does fix pciconf problem, but modload still fails, any idea? Thanks, -Jin # 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 none0@pci0:9:0: class=0x020300 card=0x00000000 chip=0x03001127 rev=0x00 hdr=0x00 ncr0@pci0:10:0: class=0x010000 card=0x00000000 chip=0x000f1000 rev=0x03 hdr=0x00 fxp0@pci0:11:0: class=0x020000 card=0x00018086 chip=0x12298086 rev=0x02 hdr=0x00 none0@pci0:12:0: class=0x023000 card=0x00000000 chip=0x00011193 rev=0x0a hdr=0x00 # modload -v -ezatm_mod /lkm/znatmdrv.o modload: error initializing module: Device not configured > > FBSD3.x # pciconf -l > > > > chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x12378086 rev=0x02 hdr=0x > 00 > > chip1@pci0:1:0: class=0x060100 card=0x00000000 chip=0x70008086 rev=0x01 hdr=0x > 00 > > ide_pci0@pci0:1:1: class=0x010180 card=0x00000000 chip=0x70008086 rev=0x0 > 1 hdr=0x00 > > chip2@pci0:1:2: class=0x0c0300 card=0x00000000 chip=0x70108086 rev=0x00 hdr=0x > 00 > > ncr0@pci0:10:0: class=0x010000 card=0x00000000 chip=0x00031000 rev=0x03 hdr=0x > 00 > > fxp0@pci0:11:0: class=0x020000 card=0x00018086 chip=0x12298086 rev=0x02 hdr=0x > 00 > > > > Try the attached patch to src/usr.sbin/pciconf/pciconf.c and see if it > causes all of the devices to be printed out. > > The PCI code in 3.0 is substantially different than the PCI code in the 2.x > tree. The pciconf device listing code didn't work until I re-wrote it. > > Anyway, let me know what the patched version of pciconf prints out. > > Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message