Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2001 09:32:31 -0400
From:      "Viren R. Shah" <viren@cigital.com>
To:        Warner Losh <imp@village.org>
Cc:        Erick Kinnee <erick@kinnee.net>, Shizuka Kudo <shizukakudo_99@yahoo.com>, freebsd-mobile@FreeBSD.ORG
Subject:   Re: Xircom RealPort Cardbus Ethernet 10/100+Modem 56 
Message-ID:  <15143.27503.434784.964758@aop.cigital.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "WL" == Warner Losh <imp@village.org> 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<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 0xccf9938c vnode interlock @ ../../ufs/ffs/ffs_vfsops.c:1016



Then I logged in and ejected the Xircom card from the laptop



ROOT LOGIN (root) ON ttyv0
cardbus0: Detaching card: no cards to detach!


And I reinserted the Xircom card



pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44]
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





 WL> Warner


Viren
-- 
"I sat around during the design phase going "this is going to suck so badly
 that we're going to have to hold onto desks to stop us from being drawn into
 the vortex"." -- Chris "Saundo" Saunderson in the scary devil monastery

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15143.27503.434784.964758>