On 06/01/2011 02:57 PM, Charles H wrote: > > Hello: > I have a problem with a SPEAR 320 SOC board with kernel 2.6.27,using the > spr_can driver and only sysfs for config: > The board uses CAN0 and has only one other device on the bus. > I can transmit and receive fine for about 20 minutes, transmitting at 75 hz. > at this point the tx quits and returns with No buffer space available. > candump shows that the tx has stopped transmitting completely but the rx > works fine. I am using different tx and rx sockets ,dont think that should > matter. Candump shows the received messages getting through fine, but > nothing for tx. Obviously the bus remains up sysfs status does not show any > problems. Also if I bring Can0 down and back up again, it flushes the > buffers and everything works ok for another several minutes. I have tried > increasing tx queue len and it does not help at all. Any ideas? problems > with the driver? This sounds much like problems others have reported with > other drivers.
Does your application handle ENOBUFS on send/write? If your system is busy with other task it may happen the the TX queue gets full. But as the data rate is not really high and you tried to increase txqueuelen already, I suspect a driver problem. Unfortunately, we do not maintain or even know that driver. There is mainline support for that board using the C_CAN driver. Any chance to switch to a recent kernel version? Wolfgang. _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
