From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outbound8-sin-R.bigfish.com (outbound-sin.frontbridge.com [207.46.51.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.bigfish.com", Issuer "*.bigfish.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 76263DE18A for ; Thu, 24 Apr 2008 04:52:25 +1000 (EST) Subject: Re: XLlTemac soft lockup BUG From: John Bonesio To: khollan In-Reply-To: <16834738.post@talk.nabble.com> References: <16711066.post@talk.nabble.com> <42848A5C5A0D1E47B026E644DD49B08E025AA69F@mail> <16734685.post@talk.nabble.com> <20080416225949.92427BD8076@mail18-sin.bigfish.com> <16834738.post@talk.nabble.com> Content-Type: multipart/alternative; boundary="=-/nTUtYBMyalElEAlhyrz" Date: Wed, 23 Apr 2008 11:45:28 -0700 Mime-Version: 1.0 Message-Id: <20080423184529.002029D8054@mail54-sin.bigfish.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-/nTUtYBMyalElEAlhyrz Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi Kevin, When the system locks up, does it get stuck in the FifoRecvHandler() routine? How many bytes are returned from XLlFifo_RxGetLen(&lp->Fifo) in that routine? You can try calling XLlFifo_Reset(&lp->Fifo); to see if that clears the fifo. Though, I suspect that this wont fix the root cause of the problem you're seeing. - John On Wed, 2008-04-23 at 11:09 -0700, khollan wrote: > Hi, > > I have done some more digging and it seems like whenever the system works > the command XLlFifo_IsRxEmpty(&lp->Fifo)) returns a 1 meaning that the > RxFifo is empty. I stuck this test in the xenet_open function right before > the fifo interupt gets enabled. > > When ever this test comes back as 0 the ifconfig will get into the soft > lockup I described above. > > Is there a function that empties out the fifo, I tried XLlFifo_RxReset but > that doesn't seem to work. > > Thanks > > Kevin --=-/nTUtYBMyalElEAlhyrz Content-Type: text/html; charset=utf-8 Hi Kevin,

When the system locks up, does it get stuck in the FifoRecvHandler() routine?

How many bytes are returned from XLlFifo_RxGetLen(&lp->Fifo) in that routine?

You can try calling XLlFifo_Reset(&lp->Fifo); to see if that clears the fifo. Though, I suspect that this wont fix the root cause of the problem you're seeing.

- John


On Wed, 2008-04-23 at 11:09 -0700, khollan wrote:
Hi,

I have done some more digging and it seems like whenever the system works
the command XLlFifo_IsRxEmpty(&lp->Fifo)) returns a 1 meaning that the
RxFifo is empty.  I stuck this test in the xenet_open function right before
the fifo interupt gets enabled.

When ever this test comes back as 0 the ifconfig will get into the soft
lockup I described above.

Is there a function that empties out the fifo, I tried XLlFifo_RxReset but
that doesn't seem to work.

Thanks

Kevin

--=-/nTUtYBMyalElEAlhyrz--