From owner-freebsd-bugs Wed Aug 8 11: 0:40 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from relay.cigital.com (relay.cigital.com [64.80.176.5]) by hub.freebsd.org (Postfix) with ESMTP id 48D8937B409 for ; Wed, 8 Aug 2001 11:00:21 -0700 (PDT) (envelope-from vshah@cigital.com) Received: from exchange.cigital.com (exchange.cigital.com [10.1.20.3]) by relay.cigital.com (Postfix) with ESMTP id 85FB95B112; Wed, 8 Aug 2001 14:00:20 -0400 (EDT) Received: from aop (aop.cigital.com [10.1.30.8]) by exchange.cigital.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id P7TPNMZ8; Wed, 8 Aug 2001 13:51:53 -0400 Received: by aop (Postfix, from userid 5019) id 71DDF26C02; Wed, 8 Aug 2001 13:59:13 -0400 (EDT) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="PcsUB3SU19" Content-Transfer-Encoding: 7bit Message-ID: <15217.32241.186089.799930@aop.cigital.com> Date: Wed, 8 Aug 2001 13:59:13 -0400 From: "Viren R. Shah" To: Jonathan Chen Cc: freebsd-bugs@FreeBSD.org Subject: Re: misc/28203: NEWCARD won't recognize my cardbus controllers or my Xircom Realport 10/100+56k card In-Reply-To: <20010808110415.A37018@enterprise.spock.org> References: <15210.56924.536714.812107@aop.cigital.com> <20010804032632.A25279@enterprise.spock.org> <15216.9560.513790.149857@aop.cigital.com> <20010807142823.A70032@enterprise.spock.org> <15216.22809.812694.468954@aop.cigital.com> <20010808110415.A37018@enterprise.spock.org> X-Mailer: VM 6.92 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: "Viren R. Shah" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --PcsUB3SU19 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit >>>>> "JC" == Jonathan Chen writes: JC> I think I may have found the problem which causes panic on reinsert -- it JC> was a stupid error on my part. The following patch fixes this problem. It JC> also includes some printf's which may help debugging. This patch does not JC> address the issue where booting up with the card already insertde doesn't JC> work -- it may be caused by having device pcic and card in your kernel JC> config. Please try it out and tell me if it works. I'd also appreciate JC> new dmesg from a boot -v. Thanks. JC> -Jon I applied it, and built a new kernel. I booted without the card in the slot. The cardbus controllers were found. Upon inserting the card, a lot of messages flew by, neither the NIC part nor the modem part of the card were detected/attached. So I ejected the card, and re-inserted it. This time, the dc driver attached to the NIC part of the card. However, the sio driver wasn't attached to the modem part of the card. You can see this in the /var/log/messages attachment below, where the first insertion occurred at 13:14, and at 13:23 I ejected and re-inserted the card. So that is a partial success. Do you want me to try adding in the sio patch that I had used previously, and seeing whether that will work? or would you rather I wait for a patch from you? Here's the dmesg: --PcsUB3SU19 Content-Type: text/plain Content-Description: dmesg after 3rd patch Content-Disposition: inline; filename="dmesg.08082001" Content-Transfer-Encoding: 7bit Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #0: Wed Aug 8 11:32:59 EDT 2001 root@slithytove.cigital.com:/usr/src/sys/i386/compile/LAPTOP Calibrating clock(s) ... TSC clock: 848119821 Hz, i8254 clock: 1193151 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method Timecounter "TSC" frequency 848146544 Hz CPU: Pentium III/Pentium III Xeon/Celeron (848.15-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383f9ff real memory = 268353536 (262064K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x00557000 - 0x0ffe3fff, 262721536 bytes (64141 pages) avail memory = 255889408 (249892K bytes) bios32: Found BIOS32 Service Directory header at 0xc00ffe80 bios32: Entry = 0xffe90 (c00ffe90) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xf0000+0xc06e pnpbios: Found PnP BIOS data at 0xc00fe2d0 pnpbios: Entry = f0000:e2f4 Rev = 1.0 pnpbios: Event flag at 4b4 Other BIOS signatures found: Preloaded elf kernel "kernel" at 0xc0531000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc05310a8. null: random: mem: Pentium Pro MTRR support enabled WARNING: Driver mistake: destroy_dev on 154/0 Math emulator present Using $PIR table, 10 entries at 0xc00fbc20 npx0: on motherboard npx0: INT 16 interface pcib0: at pcibus 0 on motherboard pci0: physical bus=0 map[10]: type 3, range 32, base e4000000, size 26, enabled found-> vendor=0x8086, dev=0x1130, revid=0x02 bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 found-> vendor=0x8086, dev=0x1131, revid=0x02 bus=0, slot=1, func=0 class=06-04-00, hdrtype=0x01, mfdev=0 found-> vendor=0x8086, dev=0x2448, revid=0x02 bus=0, slot=30, func=0 class=06-04-00, hdrtype=0x01, mfdev=0 found-> vendor=0x8086, dev=0x244c, revid=0x02 bus=0, slot=31, func=0 class=06-01-00, hdrtype=0x00, mfdev=1 map[20]: type 4, range 32, base 0000bfa0, size 4, enabled found-> vendor=0x8086, dev=0x244a, revid=0x02 bus=0, slot=31, func=1 class=01-01-80, hdrtype=0x00, mfdev=0 map[20]: type 4, range 32, base 0000dce0, size 5, enabled found-> vendor=0x8086, dev=0x2442, revid=0x02 bus=0, slot=31, func=2 class=0c-03-00, hdrtype=0x00, mfdev=0 intpin=d, irq=11 pci0: on pcib0 pcib1: at device 1.0 on pci0 pcib1: secondary bus 1 pcib1: subordinate bus 1 pcib1: I/O decode 0xc000-0xcfff pcib1: memory decode 0xfc000000-0xfdffffff pcib1: prefetched decode 0xe8000000-0xebffffff pci1: physical bus=1 map[10]: type 3, range 32, base e8000000, size 26, enabled map[14]: type 4, range 32, base 0000cc00, size 8, enabled map[18]: type 1, range 32, base fcffc000, size 14, enabled found-> vendor=0x1002, dev=0x4d46, revid=0x00 bus=1, slot=0, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 intpin=a, irq=11 powerspec 2 supports D0 D1 D2 D3 current D0 pci1: on pcib1 pci1: at 0.0 (no driver attached) pcib2: at device 30.0 on pci0 pcib2: secondary bus 2 pcib2: subordinate bus 2 pcib2: I/O decode 0xe000-0xffff pcib2: memory decode 0xf4000000-0xfbffffff pcib2: prefetched decode 0xfff00000-0xfffff pci2: physical bus=2 map[10]: type 4, range 32, base 0000ec00, size 8, enabled map[14]: type 1, range 32, base f8ffe000, size 13, enabled found-> vendor=0x125d, dev=0x1998, revid=0x10 bus=2, slot=3, func=0 class=04-01-00, hdrtype=0x00, mfdev=0 intpin=a, irq=5 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type 4, range 32, base 0000e880, size 7, enabled map[14]: type 1, range 32, base f8ffdc00, size 7, enabled found-> vendor=0x10b7, dev=0x9200, revid=0x78 bus=2, slot=8, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 intpin=a, irq=10 powerspec 2 supports D0 D1 D2 D3 current D0 found-> vendor=0x104c, dev=0xac42, revid=0x00 bus=2, slot=15, func=0 class=06-07-00, hdrtype=0x02, mfdev=1 intpin=a, irq=11 powerspec 2 supports D0 D1 D2 D3 current D0 found-> vendor=0x104c, dev=0xac42, revid=0x00 bus=2, slot=15, func=1 class=06-07-00, hdrtype=0x02, mfdev=1 intpin=a, irq=11 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type 1, range 32, base f8ffd000, size 11, enabled map[14]: type 1, range 32, base f8ff8000, size 14, enabled found-> vendor=0x104c, dev=0x8027, revid=0x00 bus=2, slot=15, func=2 class=0c-00-10, hdrtype=0x00, mfdev=1 intpin=a, irq=11 powerspec 2 supports D0 D2 D3 current D0 pci2: on pcib2 pci2: at 3.0 (no driver attached) xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xe880-0xe8ff mem 0xf8ffdc00-0xf8ffdc7f irq 10 at device 8.0 on pci2 pcib2: device xl0 requested decoded I/O range 0xe880-0xe8ff xl0: Ethernet address: 00:b0:d0:a7:a4:c1 xl0: media options word: a xl0: found MII/AUTO miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: xl0 attached pccbb0: irq 11 at device 15.0 on pci2 pcib2: device pccbb0 requested unsupported memory range 0x0-0xffffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device pccbb0 requested decoded memory range 0xf4000000-0xffffffff pccbb0: PCI Memory allocated: f4000000 cardbus0: on pccbb0 pccard0: <16-bit PCCard bus> on pccbb0 pccbb1: irq 11 at device 15.1 on pci2 pcib2: device pccbb1 requested unsupported memory range 0x0-0xffffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device pccbb1 requested decoded memory range 0xf4000000-0xffffffff pccbb1: PCI Memory allocated: f4001000 cardbus1: on pccbb1 pccard1: <16-bit PCCard bus> on pccbb1 pci2: at 15.2 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xbfa0-0xbfaf at device 31.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xbfa0 ata0: mask=03 ostat0=52 ostat2=50 ata0-slave: ATAPI probe d4 fb ata0-master: ATAPI probe 00 00 ata0: mask=03 stat0=50 stat1=00 ata0-master: ATA probe 01 a5 ata0-slave: ATA probe 01 a5 ata0: devices=03 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xbfa8 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xdce0-0xdcff irq 11 at device 31.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ata-: ata0 already exists, using ata2 instead ata-: ata1 already exists, using ata3 instead Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 ex_isa_identify() pnpbios: 14 devices, largest 248 bytes PNP0a03: adding io range 0xcf8-0xcff, size=0x8, align=0x2 PNP0a03: end config pnpbios: handle 0 device ID PNP0a03 (030ad041) PNP0c01: adding fixed memory32 range 0-0x9ffff, size=0xa0000 PNP0c01: adding fixed memory32 range 0x100000-0xfffffff, size=0xff00000 PNP0c01: adding fixed memory32 range 0xe0000-0xfffff, size=0x20000 PNP0c01: adding fixed memory32 range 0xffb80000-0xffbfffff, size=0x80000 PNP0c01: adding fixed memory32 range 0xfff80000-0xffffffff, size=0x80000 PNP0c01: adding fixed memory32 range 0xfeea0000-0xfeefffff, size=0x60000 PNP0c01: adding io range 0x800-0x87f, size=0x80, align=0x1 PNP0c01: adding io range 0x860-0x87f, size=0x20, align=0x1 PNP0c01: adding io range 0x880-0x8bf, size=0x40, align=0x1 PNP0c01: adding io range 0x8c0-0x8ff, size=0x40, align=0x1 PNP0c01: adding io range 0x600-0x67f, size=0x80, align=0x1 PNP0c01: adding io range 0x680-0x6ff, size=0x80, align=0x1 PNP0c01: adding io range 0x3f0-0x3f1, size=0x2, align=0x1 PNP0c01: adding io range 0x900-0x90f, size=0x10, align=0x1 PNP0c01: adding io range 0x910-0x91f, size=0x10, align=0x1 PNP0c01: end config pnpbios: handle 1 device ID PNP0c01 (010cd041) PNP0000: adding irq mask 0x4 PNP0000: adding io range 0x20-0x3f, size=0x20, align=0x1 PNP0000: adding io range 0xa0-0xbf, size=0x20, align=0x1 PNP0000: adding io range 0x4d0-0x4d1, size=0x2, align=0x1 PNP0000: end config pnpbios: handle 3 device ID PNP0000 (0000d041) PNP0100: adding irq mask 0x1 PNP0100: adding io range 0x40-0x5f, size=0x20, align=0x1 PNP0100: end config pnpbios: handle 4 device ID PNP0100 (0001d041) PNP0200: adding io range 0x80-0x9f, size=0x20, align=0x1 PNP0200: adding io range 0-0x1f, size=0x20, align=0x1 PNP0200: adding io range 0xc0-0xdf, size=0x20, align=0x1 PNP0200: adding dma mask 0x10 PNP0200: end config pnpbios: handle 5 device ID PNP0200 (0002d041) PNP0303: adding irq mask 0x2 PNP0303: adding io range 0x60-0x60, size=0x1, align=0x1 PNP0303: adding io range 0x64-0x64, size=0x1, align=0x1 PNP0303: end config pnpbios: handle 6 device ID PNP0303 (0303d041) PNP0f13: adding irq mask 0x1000 PNP0f13: end config pnpbios: handle 7 device ID PNP0f13 (130fd041) PNP0800: adding io range 0x61-0x61, size=0x1, align=0x1 PNP0800: end config pnpbios: handle 8 device ID PNP0800 (0008d041) PNP0b00: adding irq mask 0x100 PNP0b00: adding io range 0x70-0x7f, size=0x10, align=0x1 PNP0b00: end config pnpbios: handle 9 device ID PNP0b00 (000bd041) PNP0c04: adding irq mask 0x2000 PNP0c04: adding io range 0xf0-0xff, size=0x10, align=0x1 PNP0c04: end config pnpbios: handle 10 device ID PNP0c04 (040cd041) PNP0e03: adding irq mask 0x20 PNP0e03: adding io range 0x3e0-0x3e1, size=0x2, align=0x1 PNP0e03: end config pnpbios: handle 11 device ID PNP0e03 (030ed041) PNP0501: adding irq mask 0x10 PNP0501: adding io range 0x3f8-0x3ff, size=0x8, align=0x8 PNP0501: end config pnpbios: handle 12 device ID PNP0501 (0105d041) PNP0401: adding dma mask 0x8 PNP0401: adding irq mask 0x80 PNP0401: adding io range 0x378-0x37f, size=0x8, align=0x8 PNP0401: adding io range 0x778-0x77b, size=0x4, align=0x8 PNP0401: end config pnpbios: handle 14 device ID PNP0401 (0104d041) PNP0700: adding irq mask 0x40 PNP0700: adding io range 0x3f2-0x3f5, size=0x4, align=0x2 PNP0700: adding io range 0x3f7-0x3f7, size=0x1, align=0x8 PNP0700: adding dma mask 0x4 PNP0700: end config pnpbios: handle 15 device ID PNP0700 (0007d041) sc-: sc0 already exists, using sc1 instead vga-: vga0 already exists, using vga1 instead isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: