NetBSD Problem Report #40069

From kilbi@kilbi.de  Sun Nov 30 08:10:45 2008
Return-Path: <kilbi@kilbi.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 040A763B11D
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 30 Nov 2008 08:10:45 +0000 (UTC)
Message-Id: <20081130080925.291BB10574@mail.kilbi.de>
Date: Sun, 30 Nov 2008 09:09:24 +0100 (MET)
From: mk@kilbi.de
Reply-To: mk@kilbi.de
To: gnats-bugs@gnats.NetBSD.org
Subject: CB1410 CardBus Controller PCI card does not detect inserted pcmcia/cardbus cards
X-Send-Pr-Version: 3.95

>Number:         40069
>Category:       kern
>Synopsis:       CB1410 CardBus Controller PCI card does not detect insertted pcmcia/cardbus cards
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 08:15:00 +0000 2008
>Last-Modified:  Tue Jan 19 16:10:02 +0000 2010
>Originator:     Markus W Kilbinger
>Release:        NetBSD 5.99.4
>Organization:
There are 10 types of people in the world. Those who understand binary
and those who don't.
>Environment:


System: NetBSD 5.99.4 (Q) #0: Sun Nov 30 07:41:12 MET 2008  root@qie:/usr/u/NetBSD/HEAD/src/sys/arch/amd64/compile/Q amd64
Architecture: x86_64
Machine: amd64
>Description:
	I've bought a PCI <--> PCMCIA/Cardbus adapter card

	  ENE Technology CB1410 CardBus Controller (CardBus bridge, revision 0x01)

	to use wlan cards in my desktop pc (w/ an asus m3a78-t
	mainboard).

	The PCI card seems to be detect fine by the kernel (dmesg
	excerpt):

	  ppb2 at pci0 dev 20 function 4: ATI Technologies SB600 PCI to PCI Bridge (rev. 0x00)
	  pci3 at ppb2 bus 3
	  pci3: i/o space, memory space enabled
	  cbb0 at pci3 dev 5 function 0: ENE Technology CB1410 CardBus Controller (rev. 0x01)
	  cbb0: cacheline 0x10 lattimer 0x40
	  cbb0: bhlc 0x24010
	  cbb0: interrupting at ioapic0 pin 20
	  cardslot0 at cbb0
	  cardbus0 at cardslot0: bus 4
	  pcmcia0 at cardslot0

	, but no inserted pcmcia or cardbus card is detected!

	According to cbb(4)'s BUGS section I tried to decrease system
	memory from 4 GB down to 512 MB, and also 'options
	RBUS_MIN_START="0x20000000"', but with no success.
	Plugging/unplugging pcmcia/cardbus cards show no kernel
	reaction.

	For completeness here the adapter card's pcictl dump:

	  PCI configuration registers:
	    Common header:
	      0x00: 0x14101524 0xc2100147 0x06070001 0x00024010

	      Vendor Name: ENE Technology (0x1524)
	      Device Name: CB1410 CardBus Controller (0x1410)
	      Command register: 0x0147
	        I/O space accesses: on
	        Memory space accesses: on
	        Bus mastering: on
	        Special cycles: off
	        MWI transactions: off
	        Palette snooping: off
	        Parity error checking: on
	        Address/data stepping: off
	        System error (SERR): on
	        Fast back-to-back transactions: off
	        Interrupt disable: off
	      Status register: 0xc210
	        Capability List support: on
	        66 MHz capable: off
	        User Definable Features (UDF) support: off
	        Fast back-to-back capable: off
	        Data parity error detected: off
	        DEVSEL timing: medium (0x1)
	        Slave signaled Target Abort: off
	        Master received Target Abort: off
	        Master received Master Abort: off
	        Asserted System Error (SERR): on
	        Parity error detected: on
	      Class Name: bridge (0x06)
	      Subclass Name: CardBus (0x07)
	      Interface: 0x00
	      Revision ID: 0x01
	      BIST: 0x00
	      Header Type: 0x02 (0x02)
	      Latency Timer: 0x40
	      Cache Line Size: 0x10

	    Type 2 (PCI-CardBus bridge) header:
	      0x10: 0xcffe0000 0x020000a0 0x40040403 0xfffff000
	      0x20: 0x00000000 0xfffff000 0x00000000 0xfffffffc
	      0x30: 0x00000000 0xfffffffc 0x00000000 0x04c3010b
	      0x40: 0x14121524 0x00000001

	      Base address register at 0x10 (CardBus socket/ExCA registers)
	        type: 32-bit nonprefetchable memory
	        base: 0xcffe0000, not sized
	      Capability list pointer: 0xa0
	      Secondary status register: 0x0200
	        66 MHz capable: off
	        User Definable Features (UDF) support: off
	        Fast back-to-back capable: off
	        Data parity error detection: off
	        DEVSEL timing: medium (0x1)
	        PCI target aborts terminate CardBus bus master transactions: off
	        CardBus target aborts terminate PCI bus master transactions: off
	        Bus initiator aborts terminate initiator transactions: off
	        System error: off
	        Parity error: off
	      PCI bus number: 0x03
	      CardBus bus number: 0x04
	      Subordinate bus number: 0x04
	      CardBus latency timer: 0x40
	      CardBus memory region 0:
	        base register:  0xfffff000
	        limit register: 0x00000000
	      CardBus memory region 1:
	        base register:  0xfffff000
	        limit register: 0x00000000
	      CardBus I/O region 0:
	        base register:  0xfffffffc
	        limit register: 0x00000000
	      CardBus I/O region 1:
	        base register:  0xfffffffc
	        limit register: 0x00000000
	      Interrupt line: 0x0b
	      Interrupt pin: 0x01 (pin A)
	      Bridge control register: 0x04c3
	        Parity error response: on
	        CardBus SERR forwarding: on
	        ISA enable: off
	        VGA enable: off
	        CardBus master abort reporting: off
	        CardBus reset: on
	        Functional interrupts routed by ExCA registers: on
	        Memory window 0 prefetchable: off
	        Memory window 1 prefetchable: off
	        Write posting enable: on
	      Subsystem vendor ID: 0x1524
	      Subsystem ID: 0x1412
	      Base address register at 0x44 (legacy-mode registers)
	        type: i/o
	        base: 0x00000000, not sized

	    Capability register at 0xa0
	      type: 0x01 (Power Management, rev. 1.0)

	    Device-dependent header:
	      0x48: 0x00000000 0x00000000
	      0x50: 0x00000000 0x00000000 0x00000000 0x00000000
	      0x60: 0x00000000 0x00000000 0x00000000 0x00000000
	      0x70: 0x00000000 0x00000000 0x00000000 0x00000000
	      0x80: 0x0040d020 0x00000000 0x00000000 0x00801202
	      0x90: 0x604400c0 0x00000000 0x00000000 0x00000000
	      0xa0: 0xfe010001 0x00c00000 0x0000001e 0x0000001f
	      0xb0: 0x08000000 0x00000000 0x00000000 0x00000000
	      0xc0: 0x00001000 0x00800080 0x10000000 0x00000000
	      0xd0: 0x00000000 0x00000000 0x00000000 0x00000000
	      0xe0: 0x00000000 0x00000000 0x00000000 0x00000000
	      0xf0: 0x00000000 0x00000000 0x00000000 0x00000000

>How-To-Repeat:
	Try to use pcmcia/cardbus cards within the above mentioned
	CB1410 CardBus Controller PCI adapter card in a asus m3a78-t
	mainboard.
>Fix:
	Unknown.

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/40069: CB1410 CardBus Controller PCI card does not detect inserted pcmcia/cardbus cards
Date: Sun, 30 Nov 2008 14:47:50 +0100

 On Sun, Nov 30, 2008 at 08:15:00AM +0000, mk@kilbi.de wrote:
 > 	  cbb0 at pci3 dev 5 function 0: ENE Technology CB1410 CardBus Controller (rev. 0x01)
 > 	  cbb0: cacheline 0x10 lattimer 0x40
 > 	  cbb0: bhlc 0x24010
 > 	  cbb0: interrupting at ioapic0 pin 20

 Is that interrupt shared with other things? Does envstat -i show any 
 interrupts happening?

 Martin

From: Markus W Kilbinger <mk@kilbi.de>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org,
    gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org
Subject: Re: kern/40069: CB1410 CardBus Controller PCI card does not detect inserted pcmcia/cardbus cards
Date: Mon, 1 Dec 2008 13:51:38 +0100

 >>>>> "Martin" == Martin Husemann <martin@duskware.de> writes:

     >> cbb0: interrupting at ioapic0 pin 20

     Martin>  Is that interrupt shared with other things?

 No, 'cbb0' is the only user of ioapic0 pin 20.

     Martin> Does envstat -i show any interrupts happening?

 After reboot and several cardbus/pcmcia card plug-in and -out:

   $ vmstat -i
   interrupt                                     total     rate
   global TLB IPI                                46334       18
   ioapic0 pin 6                                    86        0
   ioapic0 pin 18                                12477        4
   ioapic0 pin 22                                19640        7
   ioapic0 pin 16                               100709       40
   ioapic0 pin 19                                   24        0
   ioapic0 pin 14                                    6        0
   ioapic0 pin 1                                   873        0
   Total                                        180149       71

 -> No 'ioapic0 pin 20' activity.

From: Hubert Feyrer <hubert@feyrer.de>
To: mk@kilbi.de
Cc: gnats-bugs@NetBSD.org, Hubert Feyrer <hubert@feyrer.de>
Subject: Re: kern/40069: CB1410 CardBus Controller PCI card does not detect
 inserted pcmcia/cardbus cards
Date: Tue, 19 Jan 2010 09:47:50 +0100 (CET)

 Hi,
 I think about getting an ENE 1410 based card, too, but the PR may make me 
 reconsider this. A few questions:
   * I see that you use amd64 - can you check with i386?
   * Are cards detected when they are inserted at system powerup/boot time?


   - Hubert

From: Markus W Kilbinger <mk@kilbi.de>
To: Hubert Feyrer <hubert@feyrer.de>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/40069: CB1410 CardBus Controller PCI card does not detect
 inserted pcmcia/cardbus cards
Date: Tue, 19 Jan 2010 17:07:00 +0100

 >>>>> "Hubert" == Hubert Feyrer <hubert@feyrer.de> writes:

     Hubert> Hi, I think about getting an ENE 1410 based card, too, but
     Hubert> the PR may make me reconsider this. A few questions:
     Hubert>   * I see that you use amd64 - can you check with i386?

 I've just tested a -current i386 MONOLITHIC kernel: Does not make a
 difference, no pcmcia or cardbus device detected as under amd64.

     Hubert>   * Are cards detected when they are inserted at system
     Hubert>     powerup/boot time?

 No, sadly.

 Markus.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.