Re: Gianfar driver failing on MPC8641D based board

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Gortmaker
Date: Thursday, February 25, 2010 - 5:53 pm

On Thu, Feb 25, 2010 at 12:49 PM, Anton Vorontsov
<avorontsov@ru.mvista.com> wrote:

I was able to reproduce it on an 8641D and bisected it down to this:

-----------
commit a3bc1f11e9b867a4f49505ecac486a33af248b2e
Author: Anton Vorontsov <avorontsov@ru.mvista.com>
Date:   Tue Nov 10 14:11:10 2009 +0000

    gianfar: Revive SKB recycling

    Before calling gfar_clean_tx_ring() the driver grabs an irqsave
    spinlock, and then tries to recycle skbs. But since
    skb_recycle_check() returns 0 with IRQs disabled, we'll never
    recycle any skbs.

    It appears that gfar_clean_tx_ring() and gfar_start_xmit() are
    mostly idependent and can work in parallel, except when they
    modify num_txbdfree.

    So we can drop the lock from most sections and thus fix the skb
    recycling.
-----------

...which probably explains why you weren't seeing it on non-SMP.
I'd imagine it would show up on any of the e500mc boards too.

I'd done a rev-list on gianfar.[ch] from 32 to 33-rc1, and then
cherry-picked those onto a 32 baseline to reduce the scale of
the bisection, but I don't think that should impact the final
result I got in any meaningful way.

Paul.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Gianfar driver failing on MPC8641D based board, Martyn Welch, (Fri Feb 5, 7:00 am)
Re: Gianfar driver failing on MPC8641D based board, Martyn Welch, (Thu Feb 25, 3:31 am)
Re: Gianfar driver failing on MPC8641D based board, Martyn Welch, (Thu Feb 25, 9:46 am)
Re: Gianfar driver failing on MPC8641D based board, Anton Vorontsov, (Thu Feb 25, 9:51 am)
Re: Gianfar driver failing on MPC8641D based board, Anton Vorontsov, (Thu Feb 25, 10:49 am)
Re: Gianfar driver failing on MPC8641D based board, Kumar Gala, (Thu Feb 25, 11:27 am)
Re: Gianfar driver failing on MPC8641D based board, Paul Gortmaker, (Thu Feb 25, 5:53 pm)
Re: Gianfar driver failing on MPC8641D based board, Anton Vorontsov, (Thu Feb 25, 8:14 pm)
RE: Gianfar driver failing on MPC8641D based board, Kumar Gopalpet-B05799, (Thu Feb 25, 9:58 pm)
Re: Gianfar driver failing on MPC8641D based board, Martyn Welch, (Fri Feb 26, 4:51 am)
Re: Gianfar driver failing on MPC8641D based board, Martyn Welch, (Fri Feb 26, 5:06 am)
Re: Gianfar driver failing on MPC8641D based board, Anton Vorontsov, (Fri Feb 26, 7:35 am)
Re: Gianfar driver failing on MPC8641D based board, Paul Gortmaker, (Fri Feb 26, 7:52 am)
Re: Gianfar driver failing on MPC8641D based board, Martyn Welch, (Fri Feb 26, 8:18 am)
Re: Gianfar driver failing on MPC8641D based board, Martyn Welch, (Fri Feb 26, 8:34 am)
Re: Gianfar driver failing on MPC8641D based board, Anton Vorontsov, (Fri Feb 26, 9:10 am)
Re: Gianfar driver failing on MPC8641D based board, Paul Gortmaker, (Fri Feb 26, 9:27 am)
Re: Gianfar driver failing on MPC8641D based board, Anton Vorontsov, (Fri Feb 26, 2:38 pm)
Re: Gianfar driver failing on MPC8641D based board, Paul Gortmaker, (Fri Feb 26, 3:12 pm)
RE: Gianfar driver failing on MPC8641D based board, Kumar Gopalpet-B05799, (Fri Feb 26, 10:35 pm)
Re: Gianfar driver failing on MPC8641D based board, Martyn Welch, (Mon Mar 1, 6:07 am)
Re: Gianfar driver failing on MPC8641D based board, Anton Vorontsov, (Tue Mar 2, 7:02 am)