From owner-freebsd-firewire@FreeBSD.ORG Mon Mar 30 22:43:07 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 50E8F1065676 for ; Mon, 30 Mar 2009 22:43:07 +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 2A7AD8FC1A for ; Mon, 30 Mar 2009 22:43:06 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: (qmail 2679 invoked from network); 30 Mar 2009 15:43:04 -0700 Received: from 069-064-235-060.pdx.net (HELO ?192.168.1.51?) (69.64.235.60) by iron2.pdx.net with SMTP; 30 Mar 2009 15:43:03 -0700 From: Sean Bruno To: Andreas Tobler In-Reply-To: <1238448423.3500.4.camel@localhost.localdomain> References: <49D13250.5030300@fgznet.ch> <1238448423.3500.4.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 30 Mar 2009 15:43:05 -0700 Message-Id: <1238452985.3500.9.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org, Marius Strobl Subject: Re: panic on sparc64 with oem fw pci fw card 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: Mon, 30 Mar 2009 22:43:08 -0000 On Mon, 2009-03-30 at 14:27 -0700, Sean Bruno wrote: > Andreas: > > Thank you for the patch. Can you point me to the original emails about > this issue? > > I don't see a problem with this patch as it is, but I would like to > understand your problem a bit more. > > Sean > > On Mon, 2009-03-30 at 22:57 +0200, Andreas Tobler wrote: > > Hi all, > > > > I get the below panic when I load fw support on my sparc64. > > > > I first posted this issue to the sparc64 list. Marius suggested to post > > to fw and simokawa@, here I do. > > > > On suggestion of Marius I modified the fwohci.c with this: > > > > Index: fwohci.c > > =================================================================== > > --- fwohci.c (revision 190571) > > +++ fwohci.c (working copy) > > @@ -527,7 +527,7 @@ > > device_printf(dev, "resetting OHCI..."); > > i = 0; > > while(OREAD(sc, OHCI_HCCCTL) & OHCI_HCC_RESET) { > > - if (i++ > 100) break; > > + if (i++ > 1000) break; > > DELAY(1000); > > } > > if (firewire_debug) > > > > Ok, I read http://lists.freebsd.org/pipermail/freebsd-sparc64/2009-March/006308.html and have 2 questions from that thread. 1. You MacBook FireWire no longer works? 2. Try the attached patch on your sparc64 machine. I don't think that the problem is coming from fwohci_reset() but fwohci_probe_phy(). Index: fwohci.c =================================================================== --- fwohci.c (revision 190557) +++ fwohci.c (working copy) @@ -436,7 +436,8 @@ * It is not actually available port on your PC . */ OWRITE(sc, OHCI_HCCCTL, OHCI_HCC_LPS); - DELAY(500); + /*DELAY(500);*/ + DELAY(1500); reg = fwphy_rddata(sc, FW_PHY_SPD_REG); Sean