Subject: Re: kern/32328: PCMCIA port doesn't work on Thinkpad T43p
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Michael van Elst <mlelstv@serpens.de>
List: netbsd-bugs
Date: 12/18/2005 16:15:04
The following reply was made to PR kern/32328; it has been noted by GNATS.

From: Michael van Elst <mlelstv@serpens.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/32328: PCMCIA port doesn't work on Thinkpad T43p
Date: Sun, 18 Dec 2005 17:11:38 +0100

 On Sun, Dec 18, 2005 at 04:05:05PM +0000, Havard Eidnes wrote:
 
 >  Please attach a complete dmesg to the PR by replying to this
 >  message, so that the one who is going to look closer at the
 >  problem may see e.g. what cardbus controller you have.
 
 Here it is:
 
 NetBSD 3.0_RC6 (HENERY) #9: Sun Dec 18 16:51:20 CET 2005
 	src@henery:/usr/obj/home/src/sys/arch/i386/compile/HENERY
 total memory = 1022 MB
 avail memory = 995 MB
 BIOS32 rev. 0 found at 0xfd760
 mainbus0 (root)
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel Pentium M (Dothan) (686-class), 2261.19 MHz, id 0x6d8
 cpu0: features afe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features afe9fbff<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
 cpu0: features afe9fbff<FXSR,SSE,SSE2,SS,TM,SBF>
 cpu0: features2 180<EST,TM2>
 cpu0: "Intel(R) Pentium(R) M processor 2.26GHz"
 cpu0: using thermal monitor 2
 cpu0: Enhanced SpeedStep running at 1700 MHz (1388 mV)
 cpu0: Enhanced SpeedStep frequencies available (MHz): 1700 600
 acpi0 at mainbus0
 acpi0: using Intel ACPI CA subsystem version 20040211
 acpi0: X/RSDT: OemId <IBM   ,TP-1Y   ,00001220>, AslId < LTP,00000000>
 acpi0: found ECDT, GPE 28
 acpi0: SCI interrupting at int 9
 acpi0: fixed-feature power button present
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 PNP0C0F at acpi0 not configured
 PNP0C0F at acpi0 not configured
 PNP0C0F at acpi0 not configured
 PNP0C0F at acpi0 not configured
 PNP0C0F at acpi0 not configured
 PNP0C0F at acpi0 not configured
 PNP0C0F at acpi0 not configured
 PNP0C0F at acpi0 not configured
 PNP0C01 at acpi0 not configured
 acpilid0 at acpi0 (PNP0C0D): ACPI Lid Switch
 acpibut0 at acpi0 (PNP0C0E): ACPI Sleep Button
 PNP0A08 at acpi0 not configured
 PNP0C02 at acpi0 not configured
 PNP0000 at acpi0 not configured
 PNP0100 at acpi0 not configured
 PNP0200 at acpi0 not configured
 PNP0800 at acpi0 not configured
 npx1 at acpi0 (PNP0C04)
 npx1: io 0xf0 irq 13
 npx1: using exception 16
 PNP0B00 at acpi0 not configured
 pckbc1 at acpi0 (PNP0303): kbd port
 pckbc1: io 0x60,0x64 irq 1
 pckbc2 at acpi0 (IBM0057): aux port
 pckbc2: irq 12
 fdc1 at acpi0 (PNP0700)
 fdc1: io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
 com0 at acpi0 (PNP0501)
 com0: io 0x3f8-0x3ff irq 4
 com0: ns16550a, working fifo
 lpt0 at acpi0 (PNP0400)
 lpt0: io 0x3bc-0x3be irq 7
 com1 at acpi0 (IBM0071)
 com1: io 0x2f8-0x2ff irq 3 drq 3
 com1: ns16550a, working fifo
 acpiec0 at acpi0 (PNP0C09-0): ACPI Embedded Controller
 acpiec0: io 0x62,0x66
 ACPI Object Type 'Power' (0x0b) at acpi0 not configured
 acpibat0 at acpi0 (PNP0C0A-0): ACPI Battery (Control Method)
 acpiacad0 at acpi0 (ACPI0003-0): ACPI AC Adapter
 IBM0068 at acpi0 not configured
 acpitz0 at acpi0: ACPI Thermal Zone
 acpitz0: unable to get polling interval; using default of 30.0s
 acpitz0: passive cooling mode only
 acpitz0: critical 99.0C passive 65.0C
 pckbd0 at pckbc1 (kbd slot)
 pckbc1: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc1 (aux slot)
 pms0: Synaptics touchpad version 5.9
 pms0: Palm detect, Multi-finger
 pckbc1: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Intel product 0x2590 (rev. 0x03)
 ppb0 at pci0 dev 1 function 0: Intel product 0x2591 (rev. 0x03)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled, rd/line, wr/inv ok
 vga1 at pci1 dev 0 function 0: ATI Technologies product 0x3154 (rev. 0x80)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 ppb1 at pci0 dev 28 function 0: Intel 82801FB/FR PCI Express Port #0 (rev. 0x03)
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 bge0 at pci2 dev 0 function 0: Broadcom BCM5751M Gigabit Ethernet
 bge0: interrupting at irq 11
 bge0: ASIC BCM5751 A1 (0x4101), Ethernet address 00:01:6c:cb:bc:94
 brgphy0 at bge0 phy 1: BCM5750 1000BASE-T media interface, rev. 0
 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 ppb2 at pci0 dev 28 function 2: Intel product 0x2664 (rev. 0x03)
 pci3 at ppb2 bus 3
 pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 uhci0 at pci0 dev 29 function 0: Intel 82801FB/FR USB UHCI Controller (rev. 0x03)
 uhci0: interrupting at irq 11
 usb0 at uhci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1 at pci0 dev 29 function 1: Intel 82801FB/FR USB UHCI Controller (rev. 0x03)
 uhci1: interrupting at irq 11
 usb1 at uhci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2 at pci0 dev 29 function 2: Intel 82801FB/FR USB UHCI Controller (rev. 0x03)
 uhci2: interrupting at irq 11
 usb2 at uhci2: USB revision 1.0
 uhub2 at usb2
 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhci3 at pci0 dev 29 function 3: Intel 82801FB/FR USB UHCI Controller (rev. 0x03)
 uhci3: interrupting at irq 11
 usb3 at uhci3: USB revision 1.0
 uhub3 at usb3
 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub3: 2 ports with 2 removable, self powered
 ehci0 at pci0 dev 29 function 7: Intel 82801FB/FR USB EHCI Controller (rev. 0x03)
 ehci0: interrupting at irq 11
 ehci0: BIOS has given up ownership
 ehci0: EHCI version 1.0
 ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
 usb4 at ehci0: USB revision 2.0
 uhub4 at usb4
 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub4: single transaction translator
 uhub4: 8 ports with 8 removable, self powered
 ppb3 at pci0 dev 30 function 0: Intel 82801BAM Hub-PCI Bridge (rev. 0xd3)
 pci4 at ppb3 bus 4
 pci4: i/o space, memory space enabled
 cbb0 at pci4 dev 0 function 0: Ricoh 5C476 PCI-CardBus bridge (rev. 0x8d) (chipflags 2)
 cbb0: socket base address 0xa8400000
 cbb0: intrpin A, intrtag 11
 iwi0 at pci4 dev 2 function 0: Intel PRO/Wireless LAN 2200BG Mini-PCI Adapter (rev. 0x05)
 iwi0: interrupting at irq 11
 iwi0: 802.11 address 00:13:ce:76:9c:20
 iwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
 iwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
 CardBus latency timer 0xb0 (b0070504)
 PCI latency timer 0x40 (824000)
 pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
 cbb0: interrupting at irq 11
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 5 device 0
 pcmcia0 at cardslot0
 pccbb_pcmcia_card_detect
 pccbbattach: found cardslot
 auich0 at pci0 dev 30 function 2: i82801FB (ICH6) AC-97 Audio
 auich0: interrupting at irq 11
 auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
 auich0: ac97: ext id 601<AC97_22,AMAP,VRA>
 Intel 82801FB/FR AC'97 Modem Controller (modem communications, revision 0x03) at pci0 dev 30 function 3 not configured
 pcib0 at pci0 dev 31 function 0
 pcib0: Intel product 0x2641 (rev. 0x03)
 piixide0 at pci0 dev 31 function 2
 piixide0: Intel 82801FBM Serial ATA Controller (ICH6) (rev. 0x03)
 piixide0: bus-master DMA support present
 piixide0: primary channel wired to compatibility mode
 piixide0: primary channel interrupting at irq 14
 atabus0 at piixide0 channel 0
 piixide0: secondary channel wired to compatibility mode
 piixide0: secondary channel interrupting at irq 15
 atabus1 at piixide0 channel 1
 Intel 82801FB/FR SMBus Controller (SMBus serial bus, revision 0x03) at pci0 dev 31 function 3 not configured
 isa0 at pcib0
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 sysbeep0 at pcppi0
 WARNING: Callback scheduled before sysmon task queue thread present.
 auich0: measured ac97 link rate at 48004 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, mmap, independent
 IPsec: Initialized Security Association Processing.
 pccbb_pcmcia_socket_enable: 3V card
 pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
 pccbb_power: CARDBUS_VCC_3V and CARDBUS_VPP_VCC [0x11]
 cbb0: wait took too long 0.191650s
 pccbb_pcmcia_delay: "pccen1" 0x0, sleep 1 ms
 pccbb_pcmcia_delay: "pccen2" 0x0, sleep 20 ms
 pccbb_pcmcia_alloc_mem: addr 0x40000000 size 0x400, realsize 0x1000
 pccbb_pcmcia_mem_map window 0 bus 40000000+0+400 at card addr 0
 pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x400003ff off 0xc0000000
 pccbb_pcmcia_do_mem_map window 0: 0000 0080 0040 40
 wdc0 at pcmcia0 function 0: <SanDisk, SDP, 5/3 0.6>
 pccbb_pcmcia_io_alloc alloc port 0x4000+0x10
 pccbb_pcmcia_io_map window 0 dynamic port 4000+10
 pccbb_pcmcia_do_io_map win 0 addr 0x4000 size 0x10 width 0
  start 00 40, stop 0f 40, ioctl 02 enable 60
 wdc0: i/o mapped mode
 pccbb_intr_establish start. 0x0
 pccbb_intr_establish add pil. 0xc194f820
 cbb0: pccbb_pcmcia_socket_settype 00 type io 70
 pccbb_pcmcia_alloc_mem: addr 0x40000000 size 0x14, realsize 0x1000
 pccbb_pcmcia_mem_map window 0 bus 40000000+200+14 at card addr 0
 pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x40000213 off 0xc0000000
 pccbb_pcmcia_do_mem_map window 0: 0000 0080 0040 40
 atabus2 at wdc0 channel 0
 ehci0: handing over full speed device on port 5 to uhci2
 uhub4: port 5, device disappeared after reset
 ehci0: handing over full speed device on port 6 to uhci2
 uhub4: port 6, device disappeared after reset
 ugen0 at uhub2 port 1
 ugen0: Broadcom IBM Bluetooth Module, rev 1.10/0.09, addr 2
 wd0 at atabus0 drive 0: <HTS721080G9AT00>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <MATSHITADVD-RAM UJ-822S, , 1.61> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 pccbb_pcmcia_socket_disable
 pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
 pccbb_pcmcia_delay: "pccwr1" 0x0, sleep 300 ms
 ugen1 at uhub2 port 2
 ugen1: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 3
 pccbb_intr_disestablish start. 0xc194f820
 pccbb_intr_disestablish: pil 0xc194f820
 pccbb_intr_disestablish frees one pil
 pccbb_intr_disestablish frees one pil
 pccbb_intr_disestablish: no interrupt handler
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)
 XFree86 aperture driver version 2.0
 Pentium Pro MTRR support enabled
 irframe0: SIR
 irframe0 attached at tty01
 acpibat0: battery info: SANYO, LION, IBM-92P1077,  1385
 
 Here is again the attach messages with CBB_DEBUG enabled:
 
 cbb0: 0x00000000 card inserted, 0x30000410
 pccbb_pcmcia_socket_enable: 5V card
 pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
 pccbb_power: CARDBUS_VCC_5V and CARDBUS_VPP_VCC [0x15]
 cbb0: wait took 0.019580s
 pccbb_pcmcia_delay: "pccen1" 0x0, sleep 1 ms
 pccbb_pcmcia_delay: "pccen2" 0x0, sleep 20 ms
 pccbb_pcmcia_delay: "pccwr0" 0x0, sleep 10 ms
 pccbb_pcmcia_delay: "pccwr1" 0x0, sleep 100 ms
 pccbb_pcmcia_alloc_mem: addr 0x40000000 size 0x400, realsize 0x1000
 pccbb_pcmcia_mem_map window 0 bus 40000000+0+400 at card addr 0
 pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x400003ff off 0xc0000000
 pccbb_pcmcia_do_mem_map window 0: 0000 0080 0040 40
 pccbb_pcmcia_mem_map window 0 bus 40000000+0+400 at card addr 0
 pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x400003ff off 0xc0000000
 pccbb_pcmcia_do_mem_map window 0: 0000 0080 0000 40
 wi0 at pcmcia0 function 0: <Lucent Technologies, WaveLAN/IEEE, Version
 01.01, >
 pccbb_pcmcia_io_alloc alloc port 0x4000+0x40
 pccbb_pcmcia_io_map window 0 dynamic port 4000+40
 pccbb_pcmcia_do_io_map win 0 addr 0x4000 size 0x40 width 0
  start 00 40, stop 3f 40, ioctl 02 enable 60
  pccbb_intr_establish start. 0x0
  pccbb_intr_establish add pil. 0xc1b7ca40
  cbb0: pccbb_pcmcia_socket_settype 00 type io 70
  pccbb_pcmcia_alloc_mem: addr 0x40000000 size 0x14, realsize 0x1000
  pccbb_pcmcia_mem_map window 0 bus 40000000+3e0+14 at card addr 0
  pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x400003f3 off 0xc0000000
  pccbb_pcmcia_do_mem_map window 0: 0000 0080 0040 40
  wi0:wi0: wi_cmd: busy bit won't clear.
  wi0: wi_cmd: busy bit won't clear.
  wi0: wi_cmd: busy bit won't clear.
  wi0: wi_cmd: busy bit won't clear.
  wi0: wi_cmd: busy bit won't clear.
  wi0: init failed
  wi0: failed to attach controller
  pccbb_intr_disestablish start. 0xc1b7ca40
  pccbb_intr_disestablish: pil 0xc1b7ca40
  pccbb_intr_disestablish frees one pil
  pccbb_intr_disestablish frees one pil
  pccbb_intr_disestablish: no interrupt handler
  pccbb_pcmcia_socket_disable
  pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
  pccbb_pcmcia_delay: "pccwr1" 0x0, sleep 300 ms
 
 Please see also kern/32327. Same machine, same PCMCIA, but
 this time with a simple CF card adapter.
 
 Greetings,
 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."