Re: Strange tg3 regression with UMP fw. link reporting

2008-08-08 Thread Michael Chan
On Fri, 2008-08-08 at 15:05 -0700, Benjamin Herrenschmidt wrote: > On Fri, 2008-08-08 at 11:43 -0700, Matt Carlson wrote: > > We really shouldn't be displaying any error messages in the event of a > > timeout though. Earlier versions of the UMP firmware did not support > > the link update interfa

Re: Strange tg3 regression with UMP fw. link reporting

2008-08-08 Thread Benjamin Herrenschmidt
On Fri, 2008-08-08 at 11:43 -0700, Matt Carlson wrote: > > Segher is right. The code should be 2.5 milliseconds but is actually > much longer. This fix is actually already in my patch queue and needs > to be sent upstream. > > We really shouldn't be displaying any error messages in the event of

Re: Strange tg3 regression with UMP fw. link reporting

2008-08-08 Thread Nathan Lynch
Benjamin Herrenschmidt wrote: > On Fri, 2008-08-08 at 10:58 +0200, Segher Boessenkool wrote: > > > I don't know yet for sure what happens, but a quick look at the commit > > > seems to show that the driver synchronously spin-waits for up to 2.5ms > > > > That's what the comment says, but the code

Re: Strange tg3 regression with UMP fw. link reporting

2008-08-08 Thread Michael Chan
On Fri, 2008-08-08 at 11:43 -0700, Matthew Carlson wrote: > Segher is right. The code should be 2.5 milliseconds but is actually > much longer. This fix is actually already in my patch queue and needs > to be sent upstream. > Matt, I think we can optimize this a little more. The heart beat ev

Re: Strange tg3 regression with UMP fw. link reporting

2008-08-08 Thread Matt Carlson
On Fri, Aug 08, 2008 at 07:18:31PM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2008-08-08 at 10:58 +0200, Segher Boessenkool wrote: > > > I don't know yet for sure what happens, but a quick look at the commit > > > seems to show that the driver synchronously spin-waits for up to 2.5ms > > > > T

Re: Strange tg3 regression with UMP fw. link reporting

2008-08-08 Thread Arnd Bergmann
On Friday 08 August 2008, Segher Boessenkool wrote: > > I don't know yet for sure what happens, but a quick look at the commit > > seems to show that the driver synchronously spin-waits for up to 2.5ms > > That's what the comment says, but the code says 2.5 _seconds_: > > +       /* Wait for up t

Re: Strange tg3 regression with UMP fw. link reporting

2008-08-08 Thread Benjamin Herrenschmidt
On Fri, 2008-08-08 at 10:58 +0200, Segher Boessenkool wrote: > > I don't know yet for sure what happens, but a quick look at the commit > > seems to show that the driver synchronously spin-waits for up to 2.5ms > > That's what the comment says, but the code says 2.5 _seconds_: > > + /* Wait

Re: Strange tg3 regression with UMP fw. link reporting

2008-08-08 Thread Segher Boessenkool
I don't know yet for sure what happens, but a quick look at the commit seems to show that the driver synchronously spin-waits for up to 2.5ms That's what the comment says, but the code says 2.5 _seconds_: + /* Wait for up to 2.5 milliseconds */ + for (i = 0; i < 25; i++) { +