From owner-freebsd-mobile Wed Jun 13 6:32:54 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from relay.cigital.com (relay.cigital.com [64.80.176.5]) by hub.freebsd.org (Postfix) with ESMTP id 0FB8937B405 for ; Wed, 13 Jun 2001 06:32:34 -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 00D699B08; Wed, 13 Jun 2001 09:33:38 -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.2650.21) id MXQWR9L6; Wed, 13 Jun 2001 09:26:32 -0400 Received: by aop (Postfix, from userid 5019) id 97C2A26C1C; Wed, 13 Jun 2001 09:32:31 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15143.27503.434784.964758@aop.cigital.com> Date: Wed, 13 Jun 2001 09:32:31 -0400 From: "Viren R. Shah" To: Warner Losh Cc: Erick Kinnee , Shizuka Kudo , freebsd-mobile@FreeBSD.ORG Subject: Re: Xircom RealPort Cardbus Ethernet 10/100+Modem 56 In-Reply-To: <200106061641.f56Gf0l00343@billy-club.village.org> References: <15133.26918.163784.848462@aop.cigital.com> <20010603132529.D15071@www.kinnee.net> <20010603211238.C19167@www.kinnee.net> <200106061641.f56Gf0l00343@billy-club.village.org> X-Mailer: VM 6.92 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: "Viren R. Shah" Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >>>>> "WL" == Warner Losh writes: WL> In message <15133.26918.163784.848462@aop.cigital.com> "Viren R.Shah" writes: WL> : EK> pcib2: device pccbb0 requested unsupported memory range WL> : EK> 0x44000000-0xeffffff (decoding 0xf4000000-0xfbffffff, WL> : EK> 0xfff00000-0xfffff) WL> : EK> pccbb0: Could not grab register memory WL> : EK> device_probe_and_attach: pccbb0 attach returned 12 WL> One work around that I've heard about, but haven't seen, is to go into WL> where the unsupported memory range message is generated in the pcib.c WL> code and ripping out the return error part and just ignoring it. I finally got time to try this out (I had tried it a few weeks ago, but I figured there was no harm in trying it again): I basically commented out the "return NULL" statements in pcib_alloc_resource in pci_pci.c. Here's what I got: (I'm confused as to whether this was a success or not, and if it worked, why isn't the card recognized?) 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 848147126 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) 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: on motherboard npx0: INT 16 interface pcib0: at pcibus 0 on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 (no driver attached) pcib2: at device 30.0 on pci0 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 miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pccbb0: 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: 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 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device pccbb1 requested decoded memory range 0x44000000-0xefffffff pccbb1: PCI Memory allocated: 44001000 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: at 0x1f0 irq 14 on atapci0 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 orm0: