From nobody@FreeBSD.org  Tue Mar 22 09:13:38 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 DE8E016A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Mar 2005 09:13:38 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C2EC643D5D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Mar 2005 09:13:38 +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 j2M9DcFj085968
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Mar 2005 09:13:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j2M9DcRo085967;
	Tue, 22 Mar 2005 09:13:38 GMT
	(envelope-from nobody)
Message-Id: <200503220913.j2M9DcRo085967@www.freebsd.org>
Date: Tue, 22 Mar 2005 09:13:38 GMT
From: Thiemo Nordenholz <nz@thiemo.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: iavc(4) for AVM B1 PCI does not attach
X-Send-Pr-Version: www-2.3

>Number:         79117
>Category:       kern
>Synopsis:       [iavc] iavc(4) for AVM B1 PCI does not attach
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 22 09:20:02 GMT 2005
>Closed-Date:    Sat Jul 05 08:21:39 UTC 2008
>Last-Modified:  Sat Jul 05 08:21:39 UTC 2008
>Originator:     Thiemo Nordenholz
>Release:        5.4-PRERELEASE
>Organization:
>Environment:
FreeBSD mygiea.ham01.thiemo.net 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Sun Mar 20 17:54:44 CET 2005     thiemo@mygiea.ham01.thiemo.net:/usr/src/sys/i386/compile/MYGIEA  i386
>Description:
With an AVM B1 PCI interface and the kernel configuration containing this:
# ISDN
device "i4bcapi"
device iavc
device isic
device "i4bq921"
device "i4bq931" 
device "i4b"
device "i4btrc" 4
device "i4bctl" 
device "i4brbch" 4
device "i4btel" 4
device "i4bipr" 4

On boot, the card is detected but the iavc driver fails to attach:

iavc0: <AVM B1 PCI> port 0xd800-0xd81f,0xd400-0xd43f irq 11 at device 13.0 on pci0
iavc0: failed: rid 0x10 is ioport, requested 3
iavc0: can't allocate memory region
device_attach: iavc0 attach returned 6

Though this happens, the driver seems to stay attached and shows up in pciconf:

iavc0@pci0:13:0:        class=0x028000 card=0x00000000 chip=0x07001244 rev=0x00 hdr=0x00
    vendor   = 'AVM AUDIOVISUELLES MKTG & Computer GmbH'
    device   = 'B1 ISDN controller'
    class    = network

Full kernel config can be found at
   http://www.thiemo.net/projects/mygiea/kernconf-isdn
full dmesg output at
   http://www.thiemo.net/projects/mygiea/dmesg-isdn

(dirty root device seen in that dmesg came from doing "isdndebug" in the state described above - system just hung up)
>How-To-Repeat:
Have ISDN B1 PCI card, try to use it
>Fix:
Unknown to me.
>Release-Note:
>Audit-Trail:

From: Thiemo Nordenholz <nz@thiemo.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/79117: iavc(4) for AVM B1 PCI does not attach
Date: Fri, 29 Apr 2005 22:42:52 +0200

 I have for further experiments disabled the SYS_RES_MEMORY allocation
 routine in the iavc_pci_attach() routine (commented out everything between
 "use the memory mapped DMA controller" and "do some detection").
 
 With this changed driver, the driver did attach.
 
 Upon starting of isdnd, the firmware could not be uploaded to the interface
 because:
 
 	[ ... ]
 	Apr 29 19:18:30 mygiea kernel: iavc0: firmware loaded, wait for ACK
 	....
 	Apr 29 19:18:30 mygiea kernel: iavc0: loading failed, bad ack = 75
 
 This is actually RECEIVE_POLLDWORD instead of the RECEIVE_POLL expected when
 not using DMA, so I changed the check for this in iavc_lli.c to check for
 the return code we receive.
 This way, isdnd at least states it had uploaded the firmware correctly.
 
 All I checked so far was if isdnd would somehow show incoming calls, which
 did not work. Further investigation should be done here.
 
 My current theory is that I have an older B1 card which not yet supports DMA
 (bought it on eBay), and behaves different from the officially supported B1
 PCI V4.
 
 -- 
 Query a PGP key server (e.g. http://www.pgp.net/) for my public key 41068629.
 Strange sender address? Please see http://www.thiemo.net/misc/list-mail.shtml
Responsible-Changed-From-To: freebsd-bugs->freebsd-isdn 
Responsible-Changed-By: arved 
Responsible-Changed-When: Tue May 10 13:18:31 GMT 2005 
Responsible-Changed-Why:  
over to ISDN mailinglist 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79117 
State-Changed-From-To: open->suspended 
State-Changed-By: hm 
State-Changed-When: Sat May 13 17:14:05 CEST 2006 
State-Changed-Why:  
i cannot reproduce this bug here, and due to the fact 
that c4b is close to hitting the tree i will not put 
too much work into this anymore. 

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

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: bug-followup@FreeBSD.org, nz@thiemo.net
Cc:  
Subject: Re: kern/79117: [iavc] iavc(4) for AVM B1 PCI does not attach
Date: Mon, 26 May 2008 11:12:33 +0000 (UTC)

 Hi,
 
 is this still relevant to you?
 
 -- 
 Bjoern A. Zeeb              Stop bit received. Insert coin for new game.
State-Changed-From-To: suspended->feedback 
State-Changed-By: bz 
State-Changed-When: Tue Jun 3 18:59:39 UTC 2008 
State-Changed-Why:  
See if we'll get feedback or if we can close this. 


Responsible-Changed-From-To: freebsd-isdn->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Tue Jun 3 18:59:39 UTC 2008 
Responsible-Changed-Why:  
See if we'll get feedback or if we can close this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79117 
State-Changed-From-To: feedback->closed 
State-Changed-By: bz 
State-Changed-When: Sat Jul 5 08:21:14 UTC 2008 
State-Changed-Why:  
Feedback timeout (and I4B had been removed from HEAD). 

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