Re: panic on sparc64 with oem fw pci fw card

Sean Bruno <[email protected]>
Newsgroups gmane.os.freebsd.devel.firewire
Message-ID <[email protected]>
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


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-firewire
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.