Date: Fri, 3 Aug 2001 13:24:44 -0400 From: Viren R.Shah <viren@cigital.com> To: jon@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: misc/28203: NEWCARD won't recognize my cardbus controllers or my Xircom Realport 10/100+56k card Message-ID: <15210.56924.536714.812107@aop.cigital.com>
next in thread | raw e-mail | index | archive | help
--Aw164p6quk Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Hi, I tried out the patch you sent and it didn't work. Here's the dmesg: --Aw164p6quk Content-Type: text/plain Content-Description: dmesg Content-Disposition: inline; filename="dmesg.aug03" 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 #1: Fri Aug 3 13:00:29 EDT 2001 root@slithytove.cigital.com:/usr/src/sys/i386/compile/LAPTOP Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 848147015 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) avail memory = 255594496 (249604K bytes) Preloaded elf kernel "kernel" at 0xc057a000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc057a09c. 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: can't decode default resource id 16 for pccbb0, bypassing 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: can't decode default resource id 16 for pccbb0, bypassing 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 link_elf: symbol vm_mtx undefined vmnet1: promiscuous mode enabled --Aw164p6quk Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit So far, I've been getting my Cardbus card and controllers to work fine with the following 2 patches: --Aw164p6quk Content-Type: text/plain Content-Description: pci_pci.c patch Content-Disposition: inline; filename="pci_pci.patch" Content-Transfer-Encoding: 7bit --- pci_pci.c.orig Wed Jun 13 08:39:56 2001 +++ pci_pci.c Sat Jun 16 13:58:35 2001 @@ -286,9 +286,9 @@ " (decoding 0x%x-0x%x)\n", device_get_name(child), device_get_unit(child), start, end, sc->iobase, sc->iolimit); - return(NULL); + /* HACK VRS return(NULL); */ } - if (bootverbose) + if (1) device_printf(sc->dev, "device %s%d requested decoded I/O range 0x%lx-0x%lx\n", device_get_name(child), device_get_unit(child), start, end); break; @@ -306,9 +306,9 @@ " (decoding 0x%x-0x%x, 0x%x-0x%x)\n", device_get_name(child), device_get_unit(child), start, end, sc->membase, sc->memlimit, sc->pmembase, sc->pmemlimit); - return(NULL); + /* HACK VRS return(NULL); */ } - if (bootverbose) + if (1) device_printf(sc->dev, "device %s%d requested decoded memory range 0x%lx-0x%lx\n", device_get_name(child), device_get_unit(child), start, end); break; --Aw164p6quk Content-Type: text/plain Content-Description: sio.c patch Content-Disposition: inline; filename="sio.patch" Content-Transfer-Encoding: 7bit --- sio.c.orig Tue Jun 5 09:10:38 2001 +++ sio.c Sat Jun 16 13:53:14 2001 @@ -579,8 +579,9 @@ static struct pci_ids pci_ids[] = { { 0x100812b9, "3COM PCI FaxModem", 0x10 }, { 0x048011c1, "Lucent kermit based PCI Modem", 0x14 }, - { 0x0000151f, "SmartLink 5634PCV SurfRider", 0x10 }, - /* { 0xXXXXXXXX, "Xircom Cardbus modem", 0x10 }, */ + /* { 0x0000151f, "SmartLink 5634PCV SurfRider", 0x10 }, */ + { 0x0103115d, "Xircom Cardbus modem", 0x10 }, + /* { 0xac42104c, "Xircom Cardbus modem", 0x10 }, */ { 0x00000000, NULL, 0 } }; @@ -928,6 +929,13 @@ */ /* EXTRA DELAY? */ sio_setreg(com, com_mcr, mcr_image); + + /* + * It seems my Xircom CBEM56G Cardbus modem wants to be reset + * to 8 bits *again*, or else probe test 0 will fail. + * gwk@sgi.com, 4/19/2001 + */ + sio_setreg(com, com_cfcr, CFCR_8BITS); /* * Some pcmcia cards have the "TXRDY bug", so we check everyone --Aw164p6quk Content-Type: text/plain; charset=us-ascii Content-Description: message body and .signature Content-Transfer-Encoding: 7bit What else can I do to help resolve this? Thanks Viren -- Viren Shah | "You can't trust code that you did not totally Research Associate, Cigital Inc. | create yourself. (Especially code from viren@cigital.com | companies that employ people like me.)" http://www.cigital.com/~vshah | - Ken Thompson "Reflections on Trusting Trust" --Aw164p6quk-- 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?15210.56924.536714.812107>