Re: MPC5200B FEC TX packets getting stuck

2012-02-07 Thread Joey Nelson
I've revisited my testing, and found I was wrong about the packets getting stuck in the FEC queue. The packets are getting stuck in the bestcomm. I generate a timestamp for each skb's ip_hdr->id at the beginning of mpc52xx_fec_start_xmit, and for each skb retrieved from the bestcomm. Typically t

Re: MPC5200B FEC TX packets getting stuck

2012-02-02 Thread Joey Nelson
I ran my test overnight with the TX irq time-stamping and finally got one delayed packet. Based on the time-stamp data the packets are getting stuck in the FEC TX FIFO. The calls to the xmit function are spaced our on about 150 us interval for a larger TCP socket write. The BestComm tx irq is han

Re: MPC5200B FEC TX packets getting stuck

2012-02-01 Thread Joey Nelson
First I think the spin_locks in the irq handlers should be spin_lock_irqsave(), because the same lock is used in multiple irq handlers. If we get an rx interrupt while the tx interrupt holds the spin lock, this would seem to be a problem. In this case maybe not because it is a single processor sy