From nobody@FreeBSD.org  Mon Aug 15 14:49:32 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7E39716A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Aug 2005 14:49:32 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 463E643D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Aug 2005 14:49:32 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j7FEnWxu076069
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Aug 2005 14:49:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j7FEnW9Q076068;
	Mon, 15 Aug 2005 14:49:32 GMT
	(envelope-from nobody)
Message-Id: <200508151449.j7FEnW9Q076068@www.freebsd.org>
Date: Mon, 15 Aug 2005 14:49:32 GMT
From: Alexander Leidinger <netchild@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [CARDBUS] cbb alloc res fail (with hw.cardbus.debug=1 output)
X-Send-Pr-Version: www-2.3

>Number:         84954
>Category:       kern
>Synopsis:       [CARDBUS] cbb alloc res fail (with hw.cardbus.debug=1 output)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 15 14:50:25 GMT 2005
>Closed-Date:    Fri May 13 14:25:48 MDT 2011
>Last-Modified:  Fri May 13 14:25:48 MDT 2011
>Originator:     Alexander Leidinger
>Release:        7-current as of Aug 24
>Organization:
>Environment:
Tested with i386 -current from Jul 23 to Aug 14.
>Description:
I've bought a D-Link DFE-690TXD. When I insert it, I get:
---snip---
TUPLE: LINKTARGET [3]: 43 49 53
Manufacturer ID: 49010000
Functions: Network Adaptor, Multi-Functioned
Function Extension: 0102
Function Extension: 0280969800
Function Extension: 0200e1f505
Function Extension: 040600e04c390010
TUPLE: Unknown(0x1c) [2]: 02 ff
cardbus0: Opening BAR: type=IO, bar=10, len=0100
cardbus0: Opening BAR: type=MEM, bar=14, len=0200
CIS reading done
cardbus0: Non-prefetchable memory at 88000000-880001ff
cbb alloc res fail
cardbus0: Can't get memory for IO ports
found->	vendor=0x1186, dev=0x1340, revid=0x10
	bus=2, slot=0, func=0
	class=02-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0000, statreg=0x0290, cachelnsz=0 (dwords)
	lattimer=0xa8 (5040 ns), mingnt=0x20 (8000 ns), maxlat=0x40 (16000 ns)
	intpin=a, irq=255
	powerspec 2  supports D0 D1 D2 D3  current D0
cbb alloc res fail
rl0: couldn't map ports/memory
cbb alloc res fail
rl0: couldn't map ports/memory
cardbus0: <network, ethernet> at device 0.0 (no driver attached)
pci2:0:0: Transition from D0 to D3
---snip---

This is the first time I use the cardbus slot of my laptop (the onboard NIC has a broken connector), so I don't know if this is a recent regression or if the slot never worked. This is not a hardware problem (Windows can use the card as expected).

A complete verbose dmesg (with -current as of Jul 23) is available at http://www.Leidinger.net/FreeBSD/dmesg.laptop.bz2 (7k).
>How-To-Repeat:
Inserting the network card.
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Tue Aug 16 13:31:53 GMT 2005 
Responsible-Changed-Why:  
Probably related to recent Warner's changes. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84954 

From: goran.tal@gmail.com
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/84954: [CARDBUS] cbb alloc res fail (with hw.cardbus.debug=1 output)
Date: Tue, 18 Dec 2007 17:30:23 -0500

 by default cardbus tries to allocate memory for i/o ports at 0x1000,
 and it fails when it is already taken. the address can be changed with
 sysctl hw.cbb.start_32_io.
 
 you can set sysctl debug.rman_debug to see where and how much memory
 cardbus tries to allocate, and check for available memory range with
 devinfo.
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Fri May 13 14:25:24 MDT 2011 
State-Changed-Why:  
Gave feedback years ago, no response so I'm closing. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=84954 
>Unformatted:
