Subject: kern/23388: cardbus(4) doesn't mention RBUS option needed on TP 600E
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gdt@ir.bbn.com>
List: netbsd-bugs
Date: 11/07/2003 11:17:24
>Number:         23388
>Category:       kern
>Synopsis:       cardbus(4) doesn't mention RBUS option needed on TP 600E
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 07 16:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Greg Troxel
>Release:        NetBSD 1.6.1_STABLE
>Organization:
        Greg Troxel <gdt@ir.bbn.com>
>Environment:
	
	
System: NetBSD fnord.ir.bbn.com 1.6.1_STABLE NetBSD 1.6.1_STABLE (FNORD) #7: Mon Oct 6 15:46:22 EDT 2003 root@fnord.ir.bbn.com:/home/gdt/QUIST-current/netbsd/src/sys/arch/i386/compile/FNORD i386
Architecture: i386
Machine: i386
>Description:
The cardbus support uses the RBUS abstraction, which maps card memory.
The default location doesn't work on some machines, resulting in
mysterious failures.
One can map at 512M instead of 1G, and this helps on at least 2 known
models.
The cardbus(4) man page does not give this critical hint.

>How-To-Repeat:
Try to get cardbus to work on a 600E.  Post to current-users.  Observe
that no helpful replies arrive.  Send mail to authors of any PRs that
seem relevant from the 1.4 days, and hope one of them mails you the
hint (thanks jtk).
Realize later that arch/i386/conf/CARDBUS has the hint about RBUS,
notice that cardbus(4) does not give this hint, but that similar hints
are in pcmcia(4).

>Fix:

Apply patch:

Index: share/man/man4/cardbus.4
===================================================================
RCS file: /NETBSD-CVS/src/share/man/man4/cardbus.4,v
retrieving revision 1.16
diff -u -r1.16 cardbus.4
--- cardbus.4	6 May 2003 18:58:24 -0000	1.16
+++ cardbus.4	7 Nov 2003 16:15:18 -0000
@@ -117,3 +117,23 @@
 driver
 appeared in
 .Nx 1.5 .
+.Sh BUGS
+.Ss Memory space conflicts
+.Nx
+maps memory on Cardbus and PCMCIA cards in order to access the cards
+(including reading CIS tuples on PCMCIA cards)
+and access the devices using the
+.Tn RBUS
+abstraction.
+When the mapping does not work, PCMCIA cards are typically ignored on
+insert, and Cardbus cards are recognized but nonfunctional.
+The location is machine-specific, and the default location does not
+work on all hardware.
+On i386, the following kernel configuration line, which maps Cardbus
+space at 512M rather than 1GB, has been found to make Cardbus support
+(including PCMCIA attachment under a cbb) work on some notebook
+models, including the IBM Thinkpad 600E (2645-4AU) and the Compaq
+ARMADA M700.
+.Bd -literal -offset indent
+options RBUS_MIN_START="0x20000000"
+.Ed
>Release-Note:
>Audit-Trail:
>Unformatted: