Date: Wed, 18 Apr 2001 15:04:02 -0400 (EDT) From: Viren R.Shah <viren@cigital.com> To: Warner Losh <imp@FreeBSD.org> Cc: freebsd-mobile@FreeBSD.org Subject: Re:cvs commit: src/sys/dev/pccbb pccbb.c pccbbreg.h Message-ID: <15069.58658.970402.903412@jabberwock.cigital.com> In-Reply-To: <200104180545.f3I5jGC08595@freefall.freebsd.org> References: <200104180545.f3I5jGC08595@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Warner" == Warner Losh <imp@FreeBSD.org> writes: Warner> imp 2001/04/17 22:45:16 PDT Warner> Modified files: Warner> sys/dev/pccbb pccbb.c pccbbreg.h Warner> Log: Warner> Add TI4451 as well. Warner> These are untested since I don't have the hardware to test against. Well, I tried it out. Here's what I get: 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 I did try the following experiment(and if you want me to do more, I'd be glad to help): I went to pci/pci_pci.c and commented out the "return NULL;" statement in pcib_alloc_resource in 'case SYS_REQ_MEMORY'. This causes the following messages: pccbb0: <VIREN PCI-CardBus Bridge> irq 11 at device 15.0 on pci2 pcib2: pcib_alloc_resource: ENTER pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: device pccbb0 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: bypassing safety: return(NULL) pccbb0: PCI Memory allocated: 44000000 pcib2: pcib_alloc_resource: ENTER cardbus0: <Cardbus bus (newcard)> on pccbb0 pccard0: <16-bit PCCard bus> on pccbb0 pccbb1: <VIREN PCI-CardBus Bridge> irq 11 at device 15.1 on pci2 pcib2: pcib_alloc_resource: ENTER pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: device pccbb1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: bypassing safety: return(NULL) pccbb1: PCI Memory allocated: 44001000 pcib2: pcib_alloc_resource: ENTER cardbus1: <Cardbus bus (newcard)> on pccbb1 pccard1: <16-bit PCCard bus> on pccbb1 And that enabled me to get debug messages from the CARDBUS driver for the Xircom Realport modem + nic: On bootup: 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] On removing the Xircom card (which was inserted before bootup): cardbus0: Detaching card: no cards to detach! cardbus0: Detaching card: no cards to detach! pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] upon re-insertion: (sorry some of the messages are mine from trying to trace what the heck was happenning) pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] pccbb0: card inserted: event=0x00000000, state=30000820 pccbb0: card inserted: event=0x00000000, state=30000820 pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] 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_3V and CARD_VPP_VCC [11] pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) unknown: Unable to add map 10 unknown: Unable to add map 10 pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: bypassing safety: return(NULL) pcib2: bypassing safety: return(NULL) pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: bypassing safety: return(NULL) pcib2: bypassing safety: return(NULL) pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: bypassing safety: return(NULL) pcib2: bypassing safety: return(NULL) pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER TUPLE: LINKTARGET [3]: 43 49 53 TUPLE: LINKTARGET [3]: 43 49 53 Product version: 5.0 Product version: 5.0 Product name: Xircom | CardBus Ethernet 10/100 + Modem 56 | CBEM56G | 1.03 | Product name: Xircom | CardBus Ethernet 10/100 + Modem 56 | CBEM56G | 1.03 | TUPLE: Unknown(0x88) [4]: 7d 4b 9d 00 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(0x8a) [12]: 39 30 30 33 57 47 39 44 34 42 37 44 TUPLE: Unknown(0x8b) [4]: 01 00 00 00 TUPLE: Unknown(0x8b) [4]: 01 00 00 00 Manufacturer ID: 0501030181 Manufacturer ID: 0501030181 TUPLE: DATE [4]: 0b 0f 3e 2aApr 18 14:54:23 slithytove /boot/kernel.old/kernel: TUPLE: DATE [4]: 0b 0f 3e 2aApr 18 14:54:23 slithytove /boot/kernel.old/kernel: Functions: Network Adaptor, Multi-Functioned Functions: Network Adaptor, Multi-Functioned Function Extension: 04060010a49d4b7d Function Extension: 04060010a49d4b7d Function Extension: 0102 Function Extension: 0102 Function Extension: 0280969800 Function Extension: 0280969800 Function Extension: 0200e1f505 Function Extension: 0200e1f505 Function Extension: 0301 Function Extension: 0301 Function Extension: 0303 Function Extension: 0303 Function Extension: 0501 Function Extension: 0501 TUPLE: DEVICE_OC [4]: 02 4f 02 ff TUPLE: DEVICE_OC [4]: 02 4f 02 ff cardbus0: Opening BAR: type=IO, bar=10, len=0080 cardbus0: Opening BAR: type=IO, bar=10, len=0080 pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) cardbus0: Resource Allocation Failed! cardbus0: Resource Allocation Failed! cardbus0: Cannot allocate BAR 10 cardbus0: Cannot allocate BAR 10 cardbus0: Opening BAR: type=MEM, bar=14, len=0080 cardbus0: Opening BAR: type=MEM, bar=14, len=0080 cardbus0: Opening BAR: type=MEM, bar=18, len=0100 cardbus0: Opening BAR: type=MEM, bar=18, len=0100 cardbus0: Invalid BAR number: 27(06) cardbus0: Invalid BAR number: 27(06) TUPLE: CONFIG_CB [7]: 03 02 03 01 00 00 ff 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 [8]: 41 b0 b0 bc 8e 0e fb 04 TUPLE: CFTABLE_ENTRY_CB [9]: 02 b8 02 b0 bc 8e 1c fb 04 TUPLE: CFTABLE_ENTRY_CB [9]: 02 b8 02 b0 bc 8e 1c fb 04 TUPLE: NO_LINK [0]: TUPLE: NO_LINK [0]: CIS reading done CIS reading done dc0: <Xircom X3201 10/100BaseTX> mem 0x44004000-0x44007fff,0x44002800-0x44002fff,0x44002000-0x440027ff irq 11 at device 0.0 on cardbus0 dc0: <Xircom X3201 10/100BaseTX> 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: chip is in D6 power mode -- setting to D0 dc0: failed to enable I/O ports! dc0: failed to enable I/O ports! device_probe_and_attach: dc0 attach returned 6 device_probe_and_attach: dc0 attach returned 6 pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) unknown: Unable to add map 10 unknown: Unable to add map 10 pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: bypassing safety: return(NULL) pcib2: bypassing safety: return(NULL) pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: bypassing safety: return(NULL) pcib2: bypassing safety: return(NULL) pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: SYS_RES_MEMORY start = 0x44000000 end = 0xefffffff pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: pcib_a_r: SYS_RES_MEMORY pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: device (null)-1 requested unsupported memory range 0x44000000-0xefffffff (decoding 0xf4000000-0xfbffffff, 0xfff00000-0xfffff) pcib2: bypassing safety: return(NULL) pcib2: bypassing safety: return(NULL) pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER TUPLE: LINKTARGET [3]: 43 49 53 TUPLE: LINKTARGET [3]: 43 49 53 Product version: 5.0 Product version: 5.0 Product name: Xircom | CardBus Ethernet 10/100 + Modem 56 | CBEM56G | 1.03 | Product name: Xircom | CardBus Ethernet 10/100 + Modem 56 | CBEM56G | 1.03 | TUPLE: Unknown(0x88) [4]: 7d 4b 9d 00 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(0x8a) [12]: 00 00 00 00 00 00 00 00 00 00 00 00 TUPLE: Unknown(0x8b) [4]: 01 00 00 00 TUPLE: Unknown(0x8b) [4]: 01 00 00 00 Manufacturer ID: 0501001081 Manufacturer ID: 0501001081 TUPLE: DATE [4]: 0b 0f 3e 2aApr 18 14:54:25 slithytove /boot/kernel.old/kernel: TUPLE: DATE [4]: 0b 0f 3e 2aApr 18 14:54:25 slithytove /boot/kernel.old/kernel: Functions: Serial Port, Multi-Functioned Functions: Serial Port, Multi-Functioned Function Extension: 00020f5cApr 18 14:54:25 slithytove /boot/kernel.old/kernel: Function Extension: 00020f5cApr 18 14:54:25 slithytove /boot/kernel.old/kernel: Function Extension: 0206003f1c03030f070001b5 Function Extension: 0206003f1c03030f070001b5 Function Extension: 1306000b000200b5 Function Extension: 1306000b000200b5 TUPLE: DEVICE_OC [4]: 02 4f 02 ff TUPLE: DEVICE_OC [4]: 02 4f 02 ff cardbus0: Opening BAR: type=IO, bar=10, len=0002 cardbus0: Opening BAR: type=IO, bar=10, len=0002 pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: ENTER pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pccbb0: pccbb_cardbus_alloc_resource: EXIT calling bus_generic_alloc_resource pcib2: pcib_alloc_resource: ENTER pcib2: pcib_alloc_resource: ENTER pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) pcib2: device (null)-1 requested unsupported I/O range 0x3000-0xefff (decoding 0xe000-0xffff) cardbus0: Resource Allocation Failed! cardbus0: Resource Allocation Failed! cardbus0: Cannot allocate BAR 10 cardbus0: Cannot allocate BAR 10 cardbus0: Opening BAR: type=MEM, bar=14, len=0002 cardbus0: Opening BAR: type=MEM, bar=14, len=0002 cardbus0: Opening BAR: type=MEM, bar=18, len=0100 cardbus0: Opening BAR: type=MEM, bar=18, len=0100 cardbus0: Invalid BAR number: 27(06) cardbus0: Invalid BAR number: 27(06) TUPLE: CONFIG_CB [7]: 03 02 f3 00 00 00 ff 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 [9]: 41 b8 02 b0 bc 8e 0e fb 04 TUPLE: CFTABLE_ENTRY_CB [8]: 02 b0 b0 bc 8e 0e fb 04 TUPLE: CFTABLE_ENTRY_CB [8]: 02 b0 b0 bc 8e 0e fb 04 TUPLE: NO_LINK [0]: TUPLE: NO_LINK [0]: CIS reading done CIS reading done cardbus0: <unknown card> (vendor=0x115d, dev=0x0103) at 0.1 irq 0 cardbus0: <unknown card> (vendor=0x115d, dev=0x0103) at 0.1 irq 0 pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] pccbb0: pccbb_power: CARD_VCC_0V and CARD_VPP_0V [44] pccbb0: card activation failed pccbb0: card activation failed Viren -- Viren R. Shah | Nibley's Gas Law of Learning: viren@cigital.com | Any amount of learning, however small, http://www.viren.org/ | will expand to fill any intellectual void, Cigital, Inc. | however large. 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?15069.58658.970402.903412>