From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 18 07:26:11 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFB6A16A417 for ; Sat, 18 Aug 2007 07:26:10 +0000 (UTC) (envelope-from cerny@icomvision.com) Received: from mohinder.icomvision.com (icom.casablanca.cz [81.0.254.115]) by mx1.freebsd.org (Postfix) with ESMTP id 85BE713C478 for ; Sat, 18 Aug 2007 07:26:07 +0000 (UTC) (envelope-from cerny@icomvision.com) Received: by mohinder.icomvision.com (Postfix, from userid 503) id 6866FF197A; Sat, 18 Aug 2007 09:26:06 +0200 (CEST) Date: Sat, 18 Aug 2007 09:26:06 +0200 From: Marian Cerny To: freebsd-hackers@freebsd.org Message-ID: <20070818072606.GA10833@icomvision.com> References: <20070816225344.GA67058@icomvision.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070816225344.GA67058@icomvision.com> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Sat, 18 Aug 2007 11:31:30 +0000 Subject: Re: pccard0: Card has no functions! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2007 07:26:11 -0000 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: on motherboard > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib5: at device 30.0 on pci0 > pci5: on pcib5 > cbb0: irq 23 at device 2.0 on pci5 > cbb0: Found memory at fe300000 > cbb0: Secondary bus is 6 > cardbus0: 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