panic on sparc64 with oem fw pci fw card
Sean Bruno
sean.bruno at dsl-only.net
Mon Mar 30 15:43:08 PDT 2009
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
More information about the freebsd-firewire
mailing list