From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sasl.smtp.pobox.com (a-sasl-fastnet.sasl.smtp.pobox.com [207.106.133.19]) by ozlabs.org (Postfix) with ESMTP id 08DEEDDF2A for ; Sat, 9 Aug 2008 07:26:10 +1000 (EST) Date: Fri, 8 Aug 2008 16:25:58 -0500 From: Nathan Lynch To: Benjamin Herrenschmidt Subject: Re: Strange tg3 regression with UMP fw. link reporting Message-ID: <20080808212558.GL6967@localdomain> References: <1218180939.24157.332.camel@pasglop> <31233EB5-037E-4615-95C9-7C816E510752@kernel.crashing.org> <1218187111.24157.336.camel@pasglop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1218187111.24157.336.camel@pasglop> Cc: linuxppc-dev list , Michael Chan , mcarlson@broadcom.com, netdev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 says 2.5 _seconds_: > > > > + /* Wait for up to 2.5 milliseconds */ > > + for (i = 0; i < 250000; i++) { > > + if (!(tr32(GRC_RX_CPU_EVENT) & GRC_RX_CPU_DRIVER_EVENT)) > > + break; > > + udelay(10); > > + } > > > > (not that milliseconds wouldn't be bad already...) > > Right, indeed. I think we have a good candidate for the problem :-) I put a printk in tg3_wait_for_event_ack and I can confirm that it's timing out frequently (every few seconds) on my system. Changing the number of loop iterations to 250 alleviates the problem.