Date: Sat, 16 Jun 2001 10:42:30 -0700 (PDT) From: Viren Shah <viren@viren.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/28203: NEWCARD won't recognize my cardbus controllers or my Xircom Realport 10/100+56k card Message-ID: <200106161742.f5GHgUg16598@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 28203 >Category: misc >Synopsis: NEWCARD won't recognize my cardbus controllers or my Xircom Realport 10/100+56k card >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 16 10:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Viren Shah >Release: -current from 13 Jun 2001 >Organization: >Environment: slithytove# uname -a FreeBSD slithytove.cigital.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Jun 13 08:55:17 EDT 2001 root@slithytove.cigital.com:/usr/src/sys/compile/LAPTOP i386 >Description: This is a Dell C800 Latitude Laptop. I'm using the stock NEWCARD kernel config after removing the following options: cpu I486_CPU options MD_ROOT options NFS_ROOT The problem is twofold: 1a. The cardbus (newcard) drivers will not allocate the resources that the cardbus controllers (TI4451) are asking for (essentially the the memory range asked for) 1b. If I edit pci_pci.c and ignore the error check routines in the pcib_alloc_resource() function, then the card is attached to dc0 (the ethernet part) but the card still is unrecognized (or so it seems from the messages received upon card insertion). Note that dc0 will not be attached if the Xircom card is in the slot on boot, but only if (re)inserted after bootup is complete. 2. The modem part of the card does not work (but this seems to be a known problem. Here is the dmesg with editing pci_pci.c Jun 13 08:36:08 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 #3: Tue Jun 5 12:57:23 EDT 2001 root@slithytove.cigital.com:/usr/src/sys/compile/LAPTOP Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 848146936 Hz CPU: Pentium III/Pentium III Xeon/Celeron (848.15-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory = 268353536 (262064K bytes) config> di pcic1 config> di pcic0 config> q avail memory = 255283200 (249300K bytes) Preloaded elf kernel "kernel" at 0xc05c1000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc05c109c. Pentium Pro MTRR support enabled WARNING: Driver mistake: destroy_dev on 154/0 Using $PIR table, 10 entries at 0xc00fbc20 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Intel 82815 (i815 GMCH) Host To Hub bridge> at pcibus 0 on motherboard pci0: <PCI bus> on pcib0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at 0.0 (no driver attached) pcib2: <PCI-PCI bridge> at device 30.0 on pci0 pci2: <PCI bus> on pcib2 pci2: <multimedia, audio> 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 xl0: Ethernet address: 00:b0:d0:a7:a4:c1 miibus0: <MII bus> on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pccbb0: <TI4451 PCI-CardBus Bridge> irq 11 at device 15.0 on pci2 pcib2: device pccbb0 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pccbb0: Could not grab register memory device_probe_and_attach: pccbb0 attach returned 12 pccbb0: <TI4451 PCI-CardBus Bridge> irq 11 at device 15.1 on pci2 pcib2: device pccbb0 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pccbb0: Could not grab register memory device_probe_and_attach: pccbb0 attach returned 12 pci2: <serial bus, FireWire> at 15.2 (no driver attached) isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH2 ATA100 controller> port 0xbfa0-0xbfaf at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xdce0-0xdcff irq 11 at device 31.2 on pci0 usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> 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 orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd07ff,0xd0800-0xd0fff,0xd1000-0xd17ff,0xd1800-0xd1fff,0xd2000-0xd27ff,0xd2800-0xd2fff,0xd3000-0xd37ff,0xd3800-0xd3fff on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 pmtimer0 on isa0 ppc0: <Parallel port> 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 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> 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 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: <PNP0c01> can't assign resources unknown: <PNP0303> can't assign resources unknown: <PNP0f13> can't assign resources unknown: <PNP0b00> can't assign resources unknown: <PNP0501> can't assign resources unknown: <PNP0401> can't assign resources unknown: <PNP0700> can't assign resources ata0-slave: identify retries exceeded ad0: DMA limited to UDMA33, non-ATA66 compliant cable ad0: 9590MB <HITACHI_DK23BA-10> [19485/16/63] at ata0-master UDMA33 Mounting root from ufs:/dev/ad0s2a lock order reversal 1st 0xc05212c0 mntvnode @ ../../ufs/ffs/ffs_vfsops.c:1007 2nd 0xccf9538c vnode interlock @ ../../ufs/ffs/ffs_vfsops.c:1016 Here is the dmesg after editing pci_pci.c to ignore the checks in the pcib_alloc_resource() functions (basically commented out the "return NULL" statements: 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 Jun 13 08:55:17 EDT 2001 root@slithytove.cigital.com:/usr/src/sys/compile/LAPTOP Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 848147254 Hz CPU: Pentium III/Pentium III Xeon/Celeron (848.15-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory = 268353536 (262064K bytes) config> di pcic1 config> di pcic0 config> q avail memory = 255275008 (249292K bytes) Preloaded elf kernel "kernel" at 0xc05c3000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc05c309c. Pentium Pro MTRR support enabled WARNING: Driver mistake: destroy_dev on 154/0 Using $PIR table, 10 entries at 0xc00fbc20 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Intel 82815 (i815 GMCH) Host To Hub bridge> at pcibus 0 on motherboard pci0: <PCI bus> on pcib0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at 0.0 (no driver attached) pcib2: <PCI-PCI bridge> at device 30.0 on pci0 pci2: <PCI bus> on pcib2 pci2: <multimedia, audio> 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 miibus0: <MII bus> on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pccbb0: <TI4451 PCI-CardBus Bridge> irq 11 at device 15.0 on pci2 pcib2: device pccbb0 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device pccbb0 requested decoded memory range 0x44000000-0xefffffff pccbb0: PCI Memory allocated: 44000000 cardbus0: <Cardbus bus (newcard)> on pccbb0 pccard0: <16-bit PCCard bus> on pccbb0 pccbb1: <TI4451 PCI-CardBus Bridge> irq 11 at device 15.1 on pci2 pcib2: device pccbb1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device pccbb1 requested decoded memory range 0x44000000-0xefffffff pccbb1: PCI Memory allocated: 44001000 cardbus1: <Cardbus bus (newcard)> on pccbb1 pccard1: <16-bit PCCard bus> on pccbb1 pci2: <serial bus, FireWire> at 15.2 (no driver attached) isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH2 ATA100 controller> port 0xbfa0-0xbfaf at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xdce0-0xdcff irq 11 at device 31.2 on pci0 usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> 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 orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd07ff,0xd0800-0xd0fff,0xd1000-0xd17ff,0xd1800-0xd1fff,0xd2000-0xd27ff,0xd2800-0xd2fff,0xd3000-0xd37ff,0xd3800-0xd3fff on isa0 sc0: <System console> on isa0 sc0: VGA <16 virtual consoles, flags=0x200> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 pmtimer0 on isa0 ppc0: <Parallel port> 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 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 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 unknown: <PNP0c01> can't assign resources unknown: <PNP0303> can't assign resources unknown: <PNP0f13> can't assign resources unknown: <PNP0b00> can't assign resources unknown: <PNP0501> can't assign resources unknown: <PNP0401> can't assign resources unknown: <PNP0700> can't assign resources ata0-slave: identify retries exceeded ad0: DMA limited to UDMA33, non-ATA66 compliant cable ad0: 9590MB <HITACHI_DK23BA-10> [19485/16/63] at ata0-master UDMA33 Mounting root from ufs:/dev/ad0s2a pccbb0: card inserted: event=0x00000000, state=30000820 pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] pccbb0: pccbb_power: CARD_VCC_3V and CARD_VPP_VCC [11] pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] pccbb0: card activation failed cardbus1: Detaching card: no cards to detach! pccbb1: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] lock order reversal 1st 0xc0522820 mntvnode @ ../../ufs/ffs/ffs_vfsops.c:1007 2nd 0xccf994ac vnode interlock @ ../../ufs/ffs/ffs_vfsops.c:1016 Here are the messages received upon card insertion (notice that dc0 gets attached -- and works with DHCP -- but the last message is that the card is unrecognized). This might just be a matter of putting the card in teh pccard database. Jun 16 12:48:10 pccbb0: card inserted: event=0x00000000, state=30000820 pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] pccbb0: pccbb_power: CARD_VCC_3V and CARD_VPP_VCC [11] pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) pcib2: device (null)-1 requested decoded I/O range 0x3000-0xefff pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested decoded memory range 0x44000000-0xefffffff pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested decoded memory range 0x44000000-0xefffffff pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested decoded memory range 0x44000000-0xefffffff TUPLE: LINKTARGET [3]: 43 49 53 Product version: 5.0 Product name: Xircom | CardBus Ethernet 10/100 + Modem 56 | CBEM56G | 1.03 | TUPLE: Unknown(0x88) [4]: 7d 4b 9d 00 TUPLE: Unknown(0x8a) [12]: 39 30 30 33 57 47 39 44 34 42 37 44 TUPLE: Unknown(0x8b) [4]: 01 00 00 00 Manufacturer ID: 0501030181 TUPLE: DATE [4]: 0b 0f 3e 2a Functions: Network Adaptor, Multi-Functioned Function Extension: 04060010a49d4b7d Function Extension: 0102 Function Extension: 0280969800 Function Extension: 0200e1f505 Function Extension: 0301 Function Extension: 0303 Function Extension: 0501 TUPLE: DEVICE_OC [4]: 02 4f 02 ff cardbus0: Opening BAR: type=IO, bar=10, len=0080 cardbus0: Opening BAR: type=MEM, bar=14, len=0080 cardbus0: Opening BAR: type=MEM, bar=18, len=0100 cardbus0: Invalid BAR number: 27(06) TUPLE: CONFIG_CB [7]: 03 02 03 01 00 00 ff TUPLE: CFTABLE_ENTRY_CB [8]: 41 b0 b0 bc 8e 0e fb 04 TUPLE: CFTABLE_ENTRY_CB [9]: 02 b8 02 b0 bc 8e 1c fb 04 TUPLE: NO_LINK [0]: CIS reading done dc0: <Xircom X3201 10/100BaseTX> port 0x3000-0x307f mem 0x44004000-0x44007fff,0x44002800-0x44002fff,0x44002000-0x440027ff irq 11 at device 0.0 on cardbus0 dc0: chip is in D6 power mode -- setting to D0 dc0: Ethernet address: 3e:2a:21:02:06:00 miibus1: <MII bus> on dc0 tdkphy0: <TDK 78Q2120 media interface> on miibus1 tdkphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) pcib2: device (null)-1 requested decoded I/O range 0x3000-0xefff pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested decoded memory range 0x44000000-0xefffffff pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested decoded memory range 0x44000000-0xefffffff pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested decoded memory range 0x44000000-0xefffffff TUPLE: LINKTARGET [3]: 43 49 53 Product version: 5.0 Product name: Xircom | CardBus Ethernet 10/100 + Modem 56 | CBEM56G | 1.03 | TUPLE: Unknown(0x88) [4]: 7d 4b 9d 00 TUPLE: Unknown(0x8a) [12]: 00 00 00 00 00 00 00 00 00 00 00 00 TUPLE: Unknown(0x8b) [4]: 01 00 00 00 Manufacturer ID: 0501001081 TUPLE: DATE [4]: 0b 0f 3e 2a Functions: Serial Port, Multi-Functioned Function Extension: 00020f5c Function Extension: 0206003f1c03030f070001b5 Function Extension: 1306000b000200b5 TUPLE: DEVICE_OC [4]: 02 4f 02 ff cardbus0: Opening BAR: type=IO, bar=10, len=0002 cardbus0: Opening BAR: type=MEM, bar=14, len=0002 cardbus0: Opening BAR: type=MEM, bar=18, len=0100 cardbus0: Invalid BAR number: 27(06) TUPLE: CONFIG_CB [7]: 03 02 f3 00 00 00 ff TUPLE: CFTABLE_ENTRY_CB [9]: 41 b8 02 b0 bc 8e 0e fb 04 TUPLE: CFTABLE_ENTRY_CB [8]: 02 b0 b0 bc 8e 0e fb 04 TUPLE: NO_LINK [0]: CIS reading done cardbus0: <unknown card> (vendor=0x115d, dev=0x0103) at 0.1 irq 0 >How-To-Repeat: Obtain a Dell C800 Latitude notebook, and a Xircom Realport 10/100 + 56k card. Boot FreeBSD -current on it. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106161742.f5GHgUg16598>