Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2004 20:58:22 +0100
From:      Michael Lestinsky <michael@lestinsky.de>
To:        freebsd-current@freebsd.org
Subject:   Re: [RELENG_5_2] Cardbus trouble
Message-ID:  <20040107195811.GB2230@mobi.lestinsky.de>
In-Reply-To: <20031225222245.GB648@mobi.lestinsky.de>
References:  <20031222220014.GA659@mobi.lestinsky.de> <20031224.180046.83980462.imp@bsdimp.com> <20031225222245.GB648@mobi.lestinsky.de>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE//GTTO0/CT/+fAyoRAmLgAJ99HoN1UQKoGzo0qKkQt+Qf1yelVACgkD2c
dwoZsbi1tR50JoMKmrP0Ha0=
=+WHH
-----END PGP SIGNATURE-----
help

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