From owner-freebsd-firewire@FreeBSD.ORG Tue Feb 17 00:00:00 2009 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FC981065674 for ; Tue, 17 Feb 2009 00:00:00 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: from iron2.pdx.net (iron2.pdx.net [69.64.224.71]) by mx1.freebsd.org (Postfix) with ESMTP id 200478FC1A for ; Tue, 17 Feb 2009 00:00:00 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: (qmail 8669 invoked from network); 16 Feb 2009 15:59:06 -0800 Received: from 069-064-235-060.pdx.net (HELO ?192.168.1.51?) (69.64.235.60) by iron2.pdx.net with SMTP; 16 Feb 2009 15:59:06 -0800 From: Sean Bruno To: freebsd-firewire@FreeBSD.org In-Reply-To: <1234828647.5736.3.camel@localhost.localdomain> References: <1234828647.5736.3.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 16 Feb 2009 15:59:58 -0800 Message-Id: <1234828798.5736.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 (2.24.3-1.fc10) Content-Transfer-Encoding: 7bit Cc: scottl Subject: Re: Enhance speed detection X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2009 00:00:00 -0000 On Mon, 2009-02-16 at 15:57 -0800, Sean Bruno wrote: > Synopsis: > If speed of link between two devices is slower than the reported max > speed of both endpoints, the current driver will fail and be unable to > negotiate. > > Summary: > Test negotiated speed by reading the CSRROM into a dummy variable. > If that read fails, decrement our speed and retry. If all else fails, > go to lowest speed possible. > > Report speed to the user. > Add display of the Bus Info Block when debug.firewire_debug > 1 > Support the Bus Info Block(1394a-2000) method of speed detection. > > _______________________________________________ I also should note that I am moving "hold_count" to 0 for future releases. This variable determines how many bus resets to "hold" a removed firewire device before deletion. I don't feel this is useful and will probably drop support for this sysctl in the future. Sean