Claudi Jr ha scritto:
Hi people,
I have tested uCLinux-dist-20070130 with latest patch 20070130-20080131
on MCF5282 evaluation board (using kernel 2.6.x). I've payed my attention on network applications and I have noticed that network sometimes gets stalled and does not recover, even doing ifconfig down-up. I have debugged the FEC driver and it seems there's a lost of synchronization between FEC and the interrupt service routine attending it when packets are received or sent. By using my board as a web server (using Boa), I tested the network by massively performing wget's from my host computer (in order to retrieve a dummy file from the web server). The result was that, after few minutes, network stalled. Even by leaving the network quiet for a time, I was not able to communicate again with the board. The problem is clearly on the FEC driver, because I could see that interrupts were succesfully raised when packets were received but the function handling the RX interrupt always detected "empty packet". There was, thus, a lost of synchronization on reading
the RX ring buffer.
I have applied some modifications on the FEC driver (see patch below) and now network does not stall anymore. Actually, I have been performing wget's for 12 hours and all of them have succeeded. Maybe someone is having the same problem. On the other hand I would be grateful if someone having other Coldfire based boards different from MCF5282 (e.g MCF5329, ...) could test the patch I attach below. In case it succeeded, I would ask for the driver matainer to consider applying the patch. I really can assure that the driver coming in the latest uclinux distro does not work in all
cases (at least on my board!).

Again, patch must be applied against drivers/net/fec.c for linux 2.6.x in uCLinux-dist-20070130 with latest patch 20070130-20080131 already applied.


Hi Claude,
I had similar problems on a MCF5282, which seems being solved with modifications to cache setting code, I'd like to try your patch as soon as I have some spare time (I hope this week). Feel free to contact me privately to discuss your patch and other things I've done to work this board properly.

Cordiali Saluti / Kindest Regards / mit freundlichen GrĂ¼ssen
--
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com
 Meet us @ Embedded World 2008 - Nurenberg
  February 26-28, 2008      Hall 11 - 224
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to