Re: [RELENG_5_2] Cardbus trouble

From: Michael Lestinsky <michael_at_lestinsky.de>
Date: Wed, 7 Jan 2004 20:58:22 +0100
Am 25.12.'03 schrieb Michael Lestinsky:
> On 24.12.'03 M. Warner Losh wrote:
> > You may try setting hw.cbb.start_memory as well.
>                         
> I did this and applied your patch as well. Both didn't change anything.
> Do you want me to enable any debugging options?

Oops, after fixing some typos in my /boot/loader.conf:

| hw.pci.allow_unsupported_io_range=1
| hw.cbb.start_memory=0x88000000
| hw.cbb.debug=1
| hw.cardbus.debug=1
| hw.cardbus.cis_debug=1

Inserting the card for the first time (or booting with the card inserted):

| [...]
| cbb0: <RF5C476 PCI-CardBus Bridge> at device 3.0 on pci2
| start (88000000) < sc->membase (e0200000)
| end (ffffffff) > sc->memlimit (e02fffff)
| cbb0: PCI Memory allocated: 88000000
| cardbus0: <CardBus bus> on cbb0
| pccard0: <16-bit PCCard bus> on cbb0
| pcib1: slot 3 INTA is routed to irq 10
| cbb0: [MPSAFE]
| cbb1: <RF5C476 PCI-CardBus Bridge> at device 3.1 on pci2
| start (88000000) < sc->membase (e0200000)
| end (ffffffff) > sc->memlimit (e02fffff)
| cbb1: PCI Memory allocated: 88001000
| cardbus1: <CardBus bus> on cbb1
| pccard1: <16-bit PCCard bus> on cbb1
| pcib1: slot 3 INTB is routed to irq 10
| cbb1: [MPSAFE]
| [...]
| Status is 0x30000006
| Status is 0x30000820
| cbb1: card inserted: event=0x00000000, state=30000820
| cbb1: cbb_power: 3V
| cbb1: cbb_power: 0V
| cbb1: CardBus card activation failed

After one unplug-replug-cycle:

| Status is 0x30000820
| cbb1: card inserted: event=0x00000000, state=30000820
| cbb1: cbb_power: 3V
| start (88000000) < sc->membase (e0200000)
| end (ffffffff) > sc->memlimit (e02fffff)
| TUPLE: LINKTARGET [3]: 43 49 53
| Manufacturer ID: 71021200
| TUPLE: Unknown(0x04) [6]: 03 01 00 00 00 00
| TUPLE: Unknown(0x05) [14]: 41 b1 39 b5 1e 2d 4e 56 30 ff ff 02 e9 00
| cardbus1: Opening BAR: type=MEM, bar=10, len=10000
| CIS reading done
| start (88000000) < sc->membase (e0200000)
| end (ffffffff) > sc->memlimit (e02fffff)
| cardbus1: Non-prefetchable memory at 88010000-8801ffff
| ath0: <Atheros 5212> mem 0x88010000-0x8801ffff irq 10 at device 0.0 on cardbus1
| start (88010000) < sc->membase (e0200000)
| ath0: mac 5.6 phy 4.1 5ghz radio 4.5
| ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
| ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
| ath0: 802.11 address: 00:09:5b:89:f9:37

Is there anything useful I could do in order to help debugging the problem?

Thanks so far,
Michael

Received on Wed Jan 07 2004 - 11:29:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC