From owner-freebsd-alpha@FreeBSD.ORG Sat Sep 20 12:54:21 2008 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C40C1065670 for ; Sat, 20 Sep 2008 12:54:21 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 0BD868FC13 for ; Sat, 20 Sep 2008 12:54:20 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m8KCsIKn036333 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 20 Sep 2008 14:54:18 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id m8KCsFqE011567 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Sep 2008 14:54:15 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id m8KCsFK1016177; Sat, 20 Sep 2008 14:54:15 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id m8KCsELX016176; Sat, 20 Sep 2008 14:54:14 +0200 (CEST) (envelope-from ticso) Date: Sat, 20 Sep 2008 14:54:14 +0200 From: Bernd Walter To: gavin@freebsd.org Message-ID: <20080920125414.GS93308@cicely7.cicely.de> References: <200809101624.m8AGOHdS047064@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200809101624.m8AGOHdS047064@freefall.freebsd.org> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.065, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: freebsd-alpha@freebsd.org, alexey@zhtw.org.ru Subject: Re: alpha/127248: System crashes when many (7) serial port terminals (vt320-vt510) connected to the server via com to usb adapter and 2-usb hubs. X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2008 12:54:21 -0000 On Wed, Sep 10, 2008 at 04:24:17PM +0000, gavin@freebsd.org wrote: > Synopsis: System crashes when many (7) serial port terminals (vt320-vt510) connected to the server via com to usb adapter and 2-usb hubs. > > State-Changed-From-To: open->feedback > State-Changed-By: gavin > State-Changed-When: Wed Sep 10 16:17:30 UTC 2008 > State-Changed-Why: > To submitter: Are you able to compile the debugger into the kernel > and obtain a backtrace next time it panics? > > Add the following to your kernel config file: > options KDB > options DDB > options GDB > > Then when the machine crashes next, enter "bt" at the prompt? > (Disclaimer: I've never used FreeBSD/alpha before, but this should work) > > By the way, my gut instinct is that this panic is caused by the fact the > serial dongles seem to be disconnecting/reconnecting, and not specifically > because the machine is an Alpha. However, why they are disconnecting in > the first place, I don't know. This is because USB is absolutely crap for this purpose. RS232 terminals, especially with long cables, can produce several kind of spikes and ground loops, which USB is very very sensitive about. The upcoming new USB stack does a lot about handling transmission errors, but the underlying problem is USB and not FreeBSD. The best thing software can do about this is avoiding the panics. Nevertheless the new USB stack is likely not being merged into any alpha supporting OS release, so even that will not happen for alpha. My advise is to use a completely other technology to connect the terminals. A galvanic isolated USB device might work, but there are lot of PCI and Ethernet devices on the market which are more solid by design than USB. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.