From owner-freebsd-isdn@FreeBSD.ORG Tue Jan 15 20:24:34 2013 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5EC396DE for ; Tue, 15 Jan 2013 20:24:34 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) by mx1.freebsd.org (Postfix) with ESMTP id 1D1DE617 for ; Tue, 15 Jan 2013 20:24:33 +0000 (UTC) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id B6C135D4FF; Tue, 15 Jan 2013 21:24:26 +0100 (CET) X-Virus-Scanned: amavisd-new at incore.de Received: from dss.incore.de ([10.3.0.3]) by inetmail.dmz (inetmail.dmz [10.3.0.3]) (amavisd-new, port 10024) with LMTP id s_taQ1Ui5aAx; Tue, 15 Jan 2013 21:24:26 +0100 (CET) Received: from mail.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id E9D5E5D4FE; Tue, 15 Jan 2013 21:24:25 +0100 (CET) Received: from bsdmhs.longwitz (unknown [192.168.99.6]) by mail.incore (Postfix) with ESMTP id 89BA750875; Tue, 15 Jan 2013 21:24:25 +0100 (CET) Message-ID: <50F5BAF9.5020509@incore.de> Date: Tue, 15 Jan 2013 21:24:25 +0100 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: ISDN4BSD (HPS version) is going into ports References: <509E87EF.9070607@incore.de> <201301091015.39124.hselasky@c2i.net> <50EDDDD7.2000006@incore.de> <201301100813.33186.hselasky@c2i.net> In-Reply-To: <201301100813.33186.hselasky@c2i.net> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-isdn@freebsd.org X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 20:24:34 -0000 Hi, please forget the last passage of my last post. In the meantime I changed some parts according to my former list to make things work like BSD does: >> 2. DELAY times on startup is different: 4 ms in isdn4bsd, 10 ms in BSD >> 3. Initializing the chip is more expansive in BSD, otherwise the >> register cmdrd is only used in isdn4bsd. >> >> 4. In avm_pci_fifo_reset() we write two single bytes, but BSD does one >> (atomic) four byte read. Particularly we do not write the HSCX_LEN >> byte between the both written bytes (must set to 0 ?) >> >> 5. In avm_pci_b_status_read() - analog to 4. - we read two single bytes, >> BSD (atomic) four bytes. With these adaptions isdn4bsd/isdnd now works with my AVM Fritzcard !! Because the driver works with "transparent mode" I observe that we have data exchange of 64kbit/s full duplex between chip and kernel as soon as a B-channel is up. And it makes no difference if I ping something over the line or run a ssh session or do nothing. I see about 500 irq's every second, I think that is the price for the tiny fifo buffer of 32 byte. Using the BSD driver I see for a ping only 12 irqs/sec and no irqs if the ping stops. Obviously thats not "transparent mode", the BSD driver uses HSCX_MODE_ITF_FLAG instead of HSCX_MODE_TRANS, that make probably the difference. If the 500 irqs/sec is what you expected, I will send you a complete patchfile. Thanks again for helping to track down this long standing problem. -- Andreas Longwitz