From owner-freebsd-isdn@FreeBSD.ORG Mon Jul 5 11:10:50 2004 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DA9A16A4CE for ; Mon, 5 Jul 2004 11:10:50 +0000 (GMT) Received: from cocoa.syncrontech.com (cocoa-e0.syncrontech.com [62.71.8.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0306943D31 for ; Mon, 5 Jul 2004 11:10:49 +0000 (GMT) (envelope-from ari@suutari.iki.fi) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19])i65BAgWw048796 for ; Mon, 5 Jul 2004 14:10:45 +0300 (EEST) (envelope-from ari@suutari.iki.fi) Received: from coffee (coffee.syncrontech.com [62.71.8.37]) i65BAeKN018250 for ; Mon, 5 Jul 2004 14:10:41 +0300 (EEST) (envelope-from ari@suutari.iki.fi) Message-ID: <07c301c46280$b5c44010$2508473e@sad.syncrontech.com> From: "Ari Suutari" To: Date: Mon, 5 Jul 2004 14:10:40 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Scanned-By: MIMEDefang 2.30 (www . roaringpenguin . com / mimedefang) X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Subject: AVM Fritz V2 and reboot vs. power-off X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2004 11:10:50 -0000 Hi, I'm facing odd but repeatable problems with FreeBSD 4.9 and AVM Fritz V2 PCI isdn cards. It seems that if I reboot my server the isdn card no longer works. However, if I power-off and power-on the card works again. Without power-off, I'm getting messages like "Awaiting signal" from ifpi2 driver and the system never recovers. I have tried replacing the isdn card, but it doesn't help. The machines are HP Compaq 2000 models. Any ideas I could try ? The machines will be installed at locations where nobody is normally present, which makes remote rebooting difficult if power-off is required. Ari S. From owner-freebsd-isdn@FreeBSD.ORG Tue Jul 6 08:43:54 2004 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE88716A4CE for ; Tue, 6 Jul 2004 08:43:54 +0000 (GMT) Received: from cocoa.syncrontech.com (cocoa-e0.syncrontech.com [62.71.8.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3893243D45 for ; Tue, 6 Jul 2004 08:43:53 +0000 (GMT) (envelope-from ari@suutari.iki.fi) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19])i668hnWw051348 for ; Tue, 6 Jul 2004 11:43:50 +0300 (EEST) (envelope-from ari@suutari.iki.fi) Received: from coffee (coffee.syncrontech.com [62.71.8.37]) i668hmKN033538 for ; Tue, 6 Jul 2004 11:43:49 +0300 (EEST) (envelope-from ari@suutari.iki.fi) Message-ID: <097401c46335$5ba541f0$2508473e@sad.syncrontech.com> From: "Ari Suutari" To: References: <07c301c46280$b5c44010$2508473e@sad.syncrontech.com> Date: Tue, 6 Jul 2004 11:43:48 +0300 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0971_01C4634E.80897EF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Scanned-By: MIMEDefang 2.30 (www . roaringpenguin . com / mimedefang) X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Subject: Re: AVM Fritz V2 and reboot vs. power-off X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 08:43:54 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0971_01C4634E.80897EF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi again, > I'm facing odd but repeatable problems with FreeBSD 4.9 and > AVM Fritz V2 PCI isdn cards. It seems that if I reboot my > server the isdn card no longer works. However, if I power-off > and power-on the card works again. > > Without power-off, I'm getting messages like "Awaiting signal" > from ifpi2 driver and the system never recovers. I investigated differences between FreeBSD and Linux Fritz driver. Linux driver does one additional thing during device initialization. I added that to FreeBSD driver and it started working OK ! Patch (against 4.9, sorry) attached. I'll file a PR also. Ari S. ------=_NextPart_000_0971_01C4634E.80897EF0 Content-Type: application/octet-stream; name="ifpi2-patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ifpi2-patch" Index: i4b_ifpi2_pci.c=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /opt/freebsd-cvs/src/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c,v=0A= retrieving revision 1.6.2.2=0A= diff -c -r1.6.2.2 i4b_ifpi2_pci.c=0A= *** i4b_ifpi2_pci.c 15 May 2002 08:12:42 -0000 1.6.2.2=0A= --- i4b_ifpi2_pci.c 6 Jul 2004 08:18:35 -0000=0A= ***************=0A= *** 155,160 ****=0A= --- 155,161 ----=0A= /*=0A= * AVM PCI Status Latch 0 read only bits=0A= */=0A= + #define ASL_RESET 0x01=0A= #define ASL_TIMERRESET 0x04=0A= #define ASL_ENABLE_INT 0x08=0A= =0A= ***************=0A= *** 566,571 ****=0A= --- 567,579 ----=0A= #ifdef AVMA1PCI_V2_DEBUG=0A= printf("avma1pp2_attach: 1 HSCX_STAT %x\n", v);=0A= #endif=0A= + =0A= + bus_space_write_1(btag, bhandle, STAT0_OFFSET, 0);=0A= + DELAY(SEC_DELAY/100); /* 10 ms */=0A= + bus_space_write_1(btag, bhandle, STAT0_OFFSET, ASL_RESET);=0A= + DELAY(SEC_DELAY/100); /* 10 ms */=0A= + bus_space_write_1(btag, bhandle, STAT0_OFFSET, 0);=0A= + DELAY(SEC_DELAY/100); /* 10 ms */=0A= =0A= bus_space_write_1(btag, bhandle, STAT0_OFFSET, ASL_TIMERRESET);=0A= DELAY(SEC_DELAY/100); /* 10 ms */=0A= ------=_NextPart_000_0971_01C4634E.80897EF0-- From owner-freebsd-isdn@FreeBSD.ORG Tue Jul 6 00:12:33 2004 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FB3D16A4CE for ; Tue, 6 Jul 2004 00:12:33 +0000 (GMT) Received: from marvin.muc.de (marvin.muc.de [193.149.48.2]) by mx1.FreeBSD.org (Postfix) with SMTP id D533043D2F for ; Tue, 6 Jul 2004 00:12:32 +0000 (GMT) (envelope-from 520016061496-0001@t-online.de) Received: (qmail 43067 invoked by alias); 6 Jul 2004 00:12:31 -0000 Delivered-To: mods-muc-lists-freebsd-isdn@moderators.muc.de Received: (qmail 43060 invoked from network); 6 Jul 2004 00:12:31 -0000 Received: from mailout02.sul.t-online.com (194.25.134.17) by marvin.muc.de with SMTP; 6 Jul 2004 00:12:31 -0000 Received: from imh00.t-online.com by mailout02.sul.t-online.com with esmtp id 1BhdZW-0005P6-00; Tue, 06 Jul 2004 02:12:30 +0200 Received: from news.t-online.com by imh00.t-online.com with esmtp id 1BhdZW-0006Ys-00; Tue, 06 Jul 2004 02:12:30 +0200 Received: from news by news.t-online.com with local id 1BhdZW-0001og-00; Tue, 06 Jul 2004 02:12:30 +0200 To: muc-lists-freebsd-isdn@moderators.muc.de Path: news.t-online.com!not-for-mail From: jack Newsgroups: muc.lists.freebsd.isdn Date: Tue, 06 Jul 2004 02:12:00 +0200 Organization: T-Online Lines: 37 Message-ID: References: <07c301c46280$b5c44010$2508473e@sad.syncrontech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1089072750 00 6984 e6vrXsQlTLS2D96 040706 00:12:30 X-Complaints-To: usenet-abuse@t-online.de X-ID: GlINYvZ1reUfBSzvME1CzwBYXuamtG8FV0J+MWIuvStYe++bfDudo7 User-Agent: Mozilla/5.0 (compatible; MSIE 5.0; Windows 98;) X-Accept-Language: en-us, en In-Reply-To: <07c301c46280$b5c44010$2508473e@sad.syncrontech.com> X-Mailman-Approved-At: Tue, 06 Jul 2004 12:11:18 +0000 Subject: Re: AVM Fritz V2 and reboot vs. power-off X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 00:12:33 -0000 Ari Suutari wrote: > Hi, > > I'm facing odd but repeatable problems with FreeBSD 4.9 and > AVM Fritz V2 PCI isdn cards. It seems that if I reboot my > server the isdn card no longer works. However, if I power-off > and power-on the card works again. > > Without power-off, I'm getting messages like "Awaiting signal" > from ifpi2 driver and the system never recovers. > > I have tried replacing the isdn card, but it doesn't help. The machines > are HP Compaq 2000 models. > > Any ideas I could try ? The machines will be installed at locations > where nobody is normally present, which makes remote rebooting > difficult if power-off is required. I don't know about exactly Your hardware, but - from my experience - there are configurations where the mainboard chipset does not provide enough power for the ISDN adaptor. - Although this problem should only concern older ISA cards on older EX/BX chipsets, I'd recommend cross- checking this one. As for remotely cold-booting: With ATX, You can specify a "wake-up"- time in most recent BIOSses. - But once the thing hangs, You cannot even shutdown. Plus, it may be 23:59 hrs to the next wake-up hour... In this case, get Yourself a proper "watchdog" card. - It will detect system hangs and initiate a reboot, cold or warm. Cheers, Jack. -- ---------------------------------------------------------------------- My personal reading of the string "MicroSoft" expands to "NanoWeak"...