Date: Mon, 30 Mar 2009 15:43:05 -0700 From: Sean Bruno <sean.bruno@dsl-only.net> To: Andreas Tobler <andreast-list@fgznet.ch> Cc: freebsd-firewire@freebsd.org, Marius Strobl <marius@alchemy.franken.de> Subject: Re: panic on sparc64 with oem fw pci fw card Message-ID: <1238452985.3500.9.camel@localhost.localdomain> In-Reply-To: <1238448423.3500.4.camel@localhost.localdomain> References: <49D13250.5030300@fgznet.ch> <1238448423.3500.4.camel@localhost.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1238452985.3500.9.camel>
