Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2007 09:26:06 +0200
From:      Marian Cerny <jojo@matfyz.cz>
To:        freebsd-hackers@freebsd.org
Subject:   Re: pccard0: Card has no functions!
Message-ID:  <20070818072606.GA10833@icomvision.com>
In-Reply-To: <20070816225344.GA67058@icomvision.com>
References:  <20070816225344.GA67058@icomvision.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-08-17 00:53 +0200, Marian Cerny wrote:
> I have Nokia Card Phone 2.0 (on a supported HW list) in a PCMCIA to PCI
> adapter. I have used this combination some time ago (2-3 years) and it worked
> without any problems. I don't remember what FreeBSD version I used that time.
> 
> I tried to get it working under FreeBSD 6.2R today but was not
> successful. I can see those messages after boot:
> 
> pcib5: pccard0 requested memory range 0xfe300000-0xfeafffff: good
> cis mem map 0xe6e2c000 (resource: 0xfe310000)
> pccard0: CIS tuple chain:
> CISTPL_END
>  ff
> cis mem map e6e2c000
> CISTPL_LINKTARGET expected, code ff observed
> pccard0: check_cis_quirks
> pccard0: Card has no functions!
> cbb0: PC Card card activation failed

I have tried the Card Phone in a laptop and there it works. Problem
seems to be in the "CIS tuple chain". In the laptop I get this (full
verbose dmesg at
http://artax.karlin.mff.cuni.cz/~cernm0bm/acer3692.dmesg.verbose.txt):

pcib5: pccard0 requested memory range 0x86000000-0xffffffff: good
cis mem map 0xcc8ab000 (resource: 0x86000000)
pccard0: CIS tuple chain:
CISTPL_DEVICE type=null speed=null
 01 03 00 00 ff
CISTPL_VERS_1
 15 28 05 00 4e 6f 6b 69 61 20 4d 6f 62 69 6c 65
 20 50 68 6f 6e 65 73 00 4e 6f 6b 69 61 20 43 61
 72 64 20 50 68 6f 6e 65 00 ff
CISTPL_MANFID
 20 04 24 01 00 09
CISTPL_FUNCID
 21 02 02 01
CISTPL_FUNCE
 22 04 00 02 0f 1c
CISTPL_FUNCE
 22 09 01 1f 3f 00 10 00 00 10 00
CISTPL_FUNCE
 22 0c 02 06 00 26 1c 03 03 3f 07 00 01 b5
CISTPL_FUNCE
 22 08 13 06 00 1f 00 ea 00 b5
CISTPL_FUNCE
 22 08 23 06 00 1f 00 ea 00 b5
CISTPL_CONFIG
 1a 05 01 03 f6 01 13
CISTPL_CFTABLE_ENTRY
 1b 12 c3 41 19 3f 55 c5 4b d5 19 36 36 56 a4 40
 0f 30 ff ff
unhandled CISTPL 14
CISTPL_NO_LINK
 14 00
CISTPL_END
 ff
pccard0: check_cis_quirks
pccard0: CIS version PC Card Standard 5.0
pccard0: CIS info: Nokia Mobile Phones, Nokia Card Phone

> Relevant messages from dmesg (full dmesg at
> http://artax.karlin.mff.cuni.cz/~cernm0bm/claire.dmesg.txt):

I have uploaded the full verbose dmesg at
http://artax.karlin.mff.cuni.cz/~cernm0bm/claire.dmesg.verbose.txt

> acpi0: <A M I OEMXSDT> on motherboard
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci5: <ACPI PCI bus> on pcib5
> cbb0: <RF5C475 PCI-CardBus Bridge> irq 23 at device 2.0 on pci5
> cbb0: Found memory at fe300000
> cbb0: Secondary bus is 6
> cardbus0: <CardBus bus> on cbb0
> pccard0: <16-bit PCCard bus> on cbb0
> 
> /boot/loader.conf:
> hw.pci.allow_unsupported_io_range="1"
> hw.cbb.start_memory="0x86000000"
> hw.cbb.debug="1"
> hw.cardbus.debug="1"
> hw.cardbus.cis_debug="1"
> hw.pccard.debug="1"
> hw.pccard.cis_debug="1"
> 
> pciconf -lv:
> cbb0@pci5:2:0:  class=0x060700 card=0x010114ef chip=0x04751180 rev=0x80 hdr=0x02
>     vendor   = 'Ricoh Co Ltd'
>     device   = 'RL5c475 CardBus Controller'
>     class    = bridge
>     subclass = PCI-CardBus

The Cardbus bridge in the laptop is:
cbb0@pci6:4:0:	class=0x060700 card=0x00901025 chip=0x14121524 rev=0x10 hdr=0x02
    vendor     = 'ENE Technology Inc'
    device     = 'CB-712/714 CardBus Controller'
    class      = bridge
    subclass   = PCI-CardBuscbb0@pci6:4:0:	class=0x060700

So now it looks like the problem is in the PCMCIA to PCI adapter. But it
should be supported (according to cbb(4)) - and it was working some
time ago.

The other differences are FreeBSD 6.2R vs 6-STABLE, RAM 2GB vs 256 MB.
Any idea what I could try next? Could a different PCMCIA to PCI adapter
help?

Regards,

Marian Cerny



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