This is the mail archive of the
mailing list for the eCos project.
Re: ea2468 Ethernet overrun
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Nikolay Marusov <nmarusov at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 3 Jun 2009 15:55:44 +0200
- Subject: Re: [ECOS] ea2468 Ethernet overrun
- References: <email@example.com>
On Wed, Jun 03, 2009 at 05:43:04PM +0400, Nikolay Marusov wrote:
> I am playing with Embedded Artists LPC2468-16 OEM Board.
> Has anybody encounetered with a problem of TX overrun while
> transmitting Ethernet packets?
> Device works pretty well at 10Mbit/s but regullarly drops packet when
> transmitting at 100Mbit/s.
> What may be the cause?
Is it an overrun or an underrun?
I've seen underrun problems before in an intel chipset. The problem
was that the DMA would start transferring the packet from the host RAM
to the ethernet chipset. When X bytes of the packet had arrived at the
ethernet, the ethernet started sending them on the wire. Under heavy
memory load, the DMA was slower than the Ethernet sending bytes on the
wire, and with long packets the ethernet chip would empty its buffer
and then throw an underrun error. I had the change the Ethernet
chipset to have a bigger X so it had more buffered bytes before it
started sending them to the wire.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss