From nobody@FreeBSD.org  Mon Apr 14 16:15:50 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BF333106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Apr 2008 16:15:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id AE7B98FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Apr 2008 16:15:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3EGFicG005584
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Apr 2008 16:15:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m3EGFipL005583;
	Mon, 14 Apr 2008 16:15:44 GMT
	(envelope-from nobody)
Message-Id: <200804141615.m3EGFipL005583@www.freebsd.org>
Date: Mon, 14 Apr 2008 16:15:44 GMT
From: Oliver <w00d00@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cardbus problem on IBM Thinkpad T60P
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122749
>Category:       kern
>Synopsis:       [cardbus] cardbus problem on IBM Thinkpad T60P
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 14 16:20:03 UTC 2008
>Closed-Date:    
>Last-Modified:  Tue Apr 15 14:20:01 UTC 2008
>Originator:     Oliver
>Release:        6.3 and 7.0 Current
>Organization:
none
>Environment:
FreeBSD testbsd 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
I tested 2 pcmcia cards on 3 different laptops with the exact same default installation (minimal).

The cards are:
Ubiquiti SRC Atheros 5212 Wireless Adapter
Sierra Wireless, AC850, 3G Network Adapter

On a T61p and on a Fujitsu laptop after plugin the Ubiquiti Card following is printed:

pcib1: requested memory range 0xd0200000-0xd02fffff: good
cbb0: Opening memory:
cbb0: Normal: 0xd0220000-0xd022ffff
unknown: Lazy allocation of 0x10000 bytes rid 0x10 type 3 at 0xd0220000
cbb0: Opening memory:
	map[10]: type Memory, range 32, base 0, size 16, enabled
pcib1: requested memory range 0xd0200000-0xd02fffff: good
found->	vendor=0x168c, dev=0x0013, revid=0x01
	domain=0, bus=2, slot=0, func=0
	class=02-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0002, statreg=0x0290, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x0a (2500 ns), maxlat=0x1c (7000 ns)
	intpin=a, irq=11
	powerspec 2  supports D0 D3  current D0
ath0: <Atheros 5212> mem 0xd0220000-0xd022ffff irq 11 at device 0.0 on cardbus0
ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xd0220000
cbb0: Opening memory:
cbb0: Normal: 0xd0220000-0xd022ffff
ath0: [MPSAFE]
ath0: [ITHREAD]
ath0: hal channel 2412/a0 -> 1
ath0: hal channel 2412/c0 -> 1
ath0: hal channel 2417/a0 -> 2
ath0: hal channel 2417/c0 -> 2
ath0: hal channel 2422/a0 -> 3
ath0: hal channel 2422/c0 -> 3
ath0: hal channel 2427/a0 -> 4
ath0: hal channel 2427/c0 -> 4
ath0: hal channel 2432/a0 -> 5
ath0: hal channel 2432/c0 -> 5
ath0: hal channel 2437/a0 -> 6
ath0: hal channel 2437/c0 -> 6
ath0: hal channel 2437/d0 -> 6
ath0: hal channel 2442/a0 -> 7
ath0: hal channel 2442/c0 -> 7
ath0: hal channel 2447/a0 -> 8
ath0: hal channel 2447/c0 -> 8
ath0: hal channel 2452/a0 -> 9
ath0: hal channel 2452/c0 -> 9
ath0: hal channel 2457/a0 -> 10
ath0: hal channel 2457/c0 -> 10
ath0: hal channel 2462/a0 -> 11
ath0: hal channel 2462/c0 -> 11
ath0: hal channel 5180/140 -> 36
ath0: hal channel 5200/140 -> 40
ath0: hal channel 5200/150 -> 40
ath0: hal channel 5210/2150 -> 42
ath0: hal channel 5220/140 -> 44
ath0: hal channel 5240/140 -> 48
ath0: hal channel 5240/150 -> 48
ath0: hal channel 5250/2150 -> 50
ath0: hal channel 5260/140 -> 52
ath0: hal channel 5280/140 -> 56
ath0: hal channel 5280/150 -> 56
ath0: hal channel 5290/2150 -> 58
ath0: hal channel 5300/140 -> 60
ath0: hal channel 5320/140 -> 64
ath0: hal channel 5745/140 -> 149
ath0: hal channel 5760/2150 -> 152
ath0: hal channel 5765/140 -> 153
ath0: hal channel 5765/150 -> 153
ath0: hal channel 5785/140 -> 157
ath0: hal channel 5800/2150 -> 160
ath0: hal channel 5805/140 -> 161
ath0: hal channel 5805/150 -> 161
ath0: hal channel 5825/140 -> 165
ath0: using obsoleted if_watchdog interface
ath0: bpf attached
ath0: Ethernet address: 00:15:6d:53:f8:12
ath0: bpf attached
ath0: bpf attached
ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
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: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: sturboA rates: 
ath0: mac 5.9 phy 4.3 radio 3.6
ath0: Use hw queue 1 for WME_AC_BE traffic
ath0: Use hw queue 0 for WME_AC_BK traffic
ath0: Use hw queue 2 for WME_AC_VI traffic
ath0: Use hw queue 3 for WME_AC_VO traffic
ath0: Use hw queue 8 for CAB traffic
ath0: Use hw queue 9 for beacons

and with ifconfig we see it's ok

ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:15:6d:53:f8:12
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
	status: no carrier
	ssid "" channel 1 (2412 Mhz 11b)
	authmode OPEN privacy OFF txpower 50 bmiss 7 scanvalid 60 bgscan
	bgscanintvl 300 bgscanidle 250 roam:rssi11b 7 roam:rate11b 1 burst
	bintval 0

on the T60p the message is:

pcib6: requested memory range 0x88000000-0xffffffff: good
cbb0: Opening memory:
cbb0: Normal: 0xbfed0000-0xbfedffff
unknown: Lazy allocation of 0x10000 bytes rid 0x10 type 3 at 0xbfed0000
cardbus0: Expecting link target, got 0xa
cbb0: Opening memory:
	map[10]: type Memory, range 32, base 0, size 16, enabled
pcib6: requested memory range 0x88000000-0xffffffff: good
found->	vendor=0x168c, dev=0x0013, revid=0x01
	domain=0, bus=22, slot=0, func=0
	class=02-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0002, statreg=0x0290, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x0a (2500 ns), maxlat=0x1c (7000 ns)
	intpin=a, irq=16
	powerspec 2  supports D0 D3  current D0
ath0: <Atheros 5212> mem 0xbfed0000-0xbfedffff irq 16 at device 0.0 on cardbus0
ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xbfed0000
cbb0: Opening memory:
cbb0: Normal: 0xbfed0000-0xbfedffff
ath0: [MPSAFE]
ath0: [ITHREAD]
ath0: unable to attach hardware; HAL status 13


For the Sierra Wireless Adapter the Output on the two working laptops is:

pcib1: pccard0 requested memory range 0xd0200000-0xd02fffff: good
pccard0: using CIS quirks for Sierra Wireless, AC850, 3G Network Adapter, R1
pccard0: CIS version PC Card Standard 7.0
pccard0: CIS info: Sierra Wireless, AC850, 3G Network Adapter, R1
pccard0: Manufacturer code 0x192, product 0x710
pccard0: function 1: serial port, ccr addr 700 mask 73
pccard0: function 1, config table entry 34: I/O card; irq mask 3fbc; iomask 0, iospace 3e8-3ef; io8 irqlevel
pcib1: pccard0 requested memory range 0xd0200000-0xd02fffff: good
uart0: <Sierra Wireless AC850> at port 0x3e8-0x3ef irq 11 function 1 config 34 on pccard0
uart0: [FILTER]
uart0: fast interrupt
interrupt storm detected on "irq11:"; throttling interrupt source

and on the T60p it's:

pcib6: pccard0 requested memory range 0x88000000-0xffffffff: good
CIS is too long -- truncating
pccard0: Card has no functions!
cbb0: PC Card card activation failed
pcib6: pccard0 requested memory range 0x88000000-0xffffffff: good
CIS is too long -- truncating
pccard0: Card has no functions!
cbb0: PC Card card activation failed

Interesting is that this happens only on the T60p as well with a 6.3 minimal installation as well as a 7.0 minimal installation.
The same installation on other laptops works just like a charm.
>How-To-Repeat:
Just insert a pcmcia card.
I think it will be the same problem with other cards as well.

I found another bug description on a forum maybe it can help for more informations:
http://www.nabble.com/support-for-Proxim-Silver-wifi-card-td15755775.html
>Fix:


>Release-Note:
>Audit-Trail:

From: Josh Paetzel <josh@tcbug.org>
To: bug-followup@freebsd.org, w00d00@gmail.com
Cc:  
Subject: Re: kern/122749: cardbus problem on IBM Thinkpad T60P
Date: Mon, 14 Apr 2008 11:36:37 -0500

 I have a T60p, I've run 7.0-RC4, 7.0-RELEASE, and 6.3-RELEASE on it.  I use a 
 pair of cardbus cards, one is a netgear atheros based wireless NIC and the 
 other is a pantech px-500 EVDO card.  I've had some USB trouble with the 
 pantech (it has a usb modem on it) but none whatsoever with the atheros 
 wireless.
 
 I can post dmesg or other output if needed.
 
 -- 
 Thanks,
 
 Josh Paetzel
 
 PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB

From: Oliver <w00d00@gmail.com>
To: "Josh Paetzel" <josh@tcbug.org>
Cc: bug-followup@freebsd.org
Subject: Re: kern/122749: cardbus problem on IBM Thinkpad T60P
Date: Tue, 15 Apr 2008 13:49:04 +0000

 ------=_Part_4307_27890074.1208267344470
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Hi Josh
 
 I borrowed an Netgear card with the atheros 5212 chip to test.
 on the two other laptops it's working on the T60p the output is the same as
 for the other cards:
 
 pcib6: requested memory range 0x88000000-0xffffffff: good
 cbb0: Opening memory:
 cbb0: Normal: 0xbfed0000-0xbfedffff
 unknown: Lazy allocation of 0x10000 bytes rid 0x10 type 3 at 0xbfed0000
 cardbus0: Expecting link target, got 0xa
 cbb0: Opening memory:
         map[10]: type Memory, range 32, base 0, size 16, enabled
 pcib6: requested memory range 0x88000000-0xffffffff: good
 found-> vendor=0x168c, dev=0x0013, revid=0x01
         domain=0, bus=22, slot=0, func=0
         class=02-00-00, hdrtype=0x00, mfdev=0
         cmdreg=0x0002, statreg=0x0290, cachelnsz=0 (dwords)
         lattimer=0x00 (0 ns), mingnt=0x0a (2500 ns), maxlat=0x1c (7000 ns)
         intpin=a, irq=16
         powerspec 2  supports D0 D3  current D0
 ath0: <Atheros 5212> mem 0xbfed0000-0xbfedffff irq 16 at device 0.0 on
 cardbus0
 ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xbfed0000
 cbb0: Opening memory:
 cbb0: Normal: 0xbfed0000-0xbfedffff
 ath0: [MPSAFE]
 ath0: [ITHREAD]
 ath0: unable to attach hardware; HAL status 13
 cbb0: Opening memory:
 device_attach: ath0 attach returned 6
 
 and the pciconf output:
 
 ath0@pci0:22:0:0:       class=0x020000 card=0x5b001385 chip=0x0013168c
 rev=0x01 hdr=0x00
     vendor     = 'Atheros Communications Inc.'
     device     = 'AR5212, AR5213 802.11a/b/g Wireless Adapter'
     class      = network
     subclass   = ethernet
 
 I really don't get it, today I installed again FreeBSD 7.0 CURRENT on a T61p
 and it's working plug and play :/
 
 What is interesting is also, that it was working once, I installed on my
 t60p FreeBSD 6.1 and then just updated/upgraded till I ended up with 7.0
 CURRENT, but I wanted to reinstall my system now to have again a clean
 installation and since I installed it out of box the cardbus is not working
 anymore. If I boot on the Windows partition everything is working. (so my
 cardbus is not broken :) )
 
 Do you have any special settings in loader.conf, or in any hints file ?
 
 greets
 Oliver
 
 On Mon, Apr 14, 2008 at 4:36 PM, Josh Paetzel <josh@tcbug.org> wrote:
 
 > I have a T60p, I've run 7.0-RC4, 7.0-RELEASE, and 6.3-RELEASE on it.  I
 > use a
 > pair of cardbus cards, one is a netgear atheros based wireless NIC and the
 > other is a pantech px-500 EVDO card.  I've had some USB trouble with the
 > pantech (it has a usb modem on it) but none whatsoever with the atheros
 > wireless.
 >
 > I can post dmesg or other output if needed.
 >
 > --
 > Thanks,
 >
 > Josh Paetzel
 >
 > PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB
 >
 
 ------=_Part_4307_27890074.1208267344470
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Hi Josh<br><br>I borrowed an Netgear card with the atheros 5212 chip to test.<br>on the two other laptops it&#39;s working on the T60p the output is the same as for the other cards:<br><br>pcib6: requested memory range 0x88000000-0xffffffff: good<br>
 cbb0: Opening memory:<br>cbb0: Normal: 0xbfed0000-0xbfedffff<br>unknown: Lazy allocation of 0x10000 bytes rid 0x10 type 3 at 0xbfed0000<br>cardbus0: Expecting link target, got 0xa<br>cbb0: Opening memory:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map[10]: type Memory, range 32, base 0, size 16, enabled<br>
 pcib6: requested memory range 0x88000000-0xffffffff: good<br>found-&gt; vendor=0x168c, dev=0x0013, revid=0x01<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; domain=0, bus=22, slot=0, func=0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=02-00-00, hdrtype=0x00, mfdev=0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmdreg=0x0002, statreg=0x0290, cachelnsz=0 (dwords)<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lattimer=0x00 (0 ns), mingnt=0x0a (2500 ns), maxlat=0x1c (7000 ns)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; intpin=a, irq=16<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; powerspec 2&nbsp; supports D0 D3&nbsp; current D0<br>ath0: &lt;Atheros 5212&gt; mem 0xbfed0000-0xbfedffff irq 16 at device 0.0 on cardbus0<br>
 ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xbfed0000<br>cbb0: Opening memory:<br>cbb0: Normal: 0xbfed0000-0xbfedffff<br>ath0: [MPSAFE]<br>ath0: [ITHREAD]<br>ath0: unable to attach hardware; HAL status 13<br>cbb0: Opening memory:<br>
 device_attach: ath0 attach returned 6<br><br>and the pciconf output:<br><br>ath0@pci0:22:0:0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=0x020000 card=0x5b001385 chip=0x0013168c rev=0x01 hdr=0x00<br>&nbsp;&nbsp;&nbsp; vendor&nbsp;&nbsp;&nbsp;&nbsp; = &#39;Atheros Communications Inc.&#39;<br>
 &nbsp;&nbsp;&nbsp; device&nbsp;&nbsp;&nbsp;&nbsp; = &#39;AR5212, AR5213 802.11a/b/g Wireless Adapter&#39;<br>&nbsp;&nbsp;&nbsp; class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = network<br>&nbsp;&nbsp;&nbsp; subclass&nbsp;&nbsp; = ethernet<br><br>I really don&#39;t get it, today I installed again FreeBSD 7.0 CURRENT on a T61p and it&#39;s working plug and play :/<br>
 <br>What is interesting is also, that it was working once, I installed on my t60p FreeBSD 6.1 and then just updated/upgraded till I ended up with 7.0 CURRENT, but I wanted to reinstall my system now to have again a clean installation and since I installed it out of box the cardbus is not working anymore. If I boot on the Windows partition everything is working. (so my cardbus is not broken :) )<br>
 <br>Do you have any special settings in loader.conf, or in any hints file ?<br><br>greets<br>Oliver<br><br><div class="gmail_quote">On Mon, Apr 14, 2008 at 4:36 PM, Josh Paetzel &lt;<a href="mailto:josh@tcbug.org">josh@tcbug.org</a>&gt; wrote:<br>
 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have a T60p, I&#39;ve run 7.0-RC4, 7.0-RELEASE, and 6.3-RELEASE on it. &nbsp;I use a<br>
 pair of cardbus cards, one is a netgear atheros based wireless NIC and the<br>
 other is a pantech px-500 EVDO card. &nbsp;I&#39;ve had some USB trouble with the<br>
 pantech (it has a usb modem on it) but none whatsoever with the atheros<br>
 wireless.<br>
 <br>
 I can post dmesg or other output if needed.<br>
 <font color="#888888"><br>
 --<br>
 Thanks,<br>
 <br>
 Josh Paetzel<br>
 <br>
 PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB<br>
 </font></blockquote></div><br>
 
 ------=_Part_4307_27890074.1208267344470--
>Unformatted:
