linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* at91_can.c: Data transmission stops
@ 2012-11-26 14:28 Henrik Bork Steffensen
  2012-11-26 15:25 ` Wolfgang Grandegger
  0 siblings, 1 reply; 17+ messages in thread
From: Henrik Bork Steffensen @ 2012-11-26 14:28 UTC (permalink / raw)
  To: linux-can

Hi All,

We use the canopen on an at91sam9263, and experience a can problem.
Sometimes data transmission simply stops. Data reception continues normally.

Reloading the at91_can module seems to be the only action to bring our 
system back on can.
When we experience this problem, the TXF counter in /proc/net/can/stats 
is frozen.

I have followed the thread on a similar issue "pch_can", and I was wondering
if this is the same problem, and if the real problem might be in a 
higher level.

In our case the lockup occurs approximately 1 time in 50 days.
I tried reducing the number of mailboxes used for TX, from 4 to 1.
That seem to increase the frequency of this lockup by a factor 2-5.
These numbers are very uncertain due to the randomness and rarity of 
this bug.

Some numbers to give an impression of our system:
125 kbit bus speed
can bus load <1%
max tx burst 1-6 telegrams, rx is a little bit higher.
240MHz ARM 9 (at91sam9263B)
2.6.32 kernel, with at91_can (and related files) patched with a few 
important fixes.
I would like to move to a recent kernel, but that is not possible right now.


I am considering protecting tx objects as Wolfgang suggests in the 
pch_can thread.

Any ideas?

best regards,
Henrik Bork Steffensen




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-12-03 16:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26 14:28 at91_can.c: Data transmission stops Henrik Bork Steffensen
2012-11-26 15:25 ` Wolfgang Grandegger
2012-11-26 16:29   ` Henrik Bork Steffensen
2012-11-27 14:11     ` Henrik Bork Steffensen
2012-11-27 16:31       ` Wolfgang Grandegger
2012-11-28 14:22         ` Henrik Bork Steffensen
2012-11-28 14:29           ` Marc Kleine-Budde
2012-11-28 15:09             ` Henrik Bork Steffensen
2012-11-28 15:12               ` Marc Kleine-Budde
2012-11-28 15:44                 ` Henrik Bork Steffensen
2012-11-28 16:23                   ` Wolfgang Grandegger
2012-12-03 16:13                     ` Henrik Bork Steffensen
2012-11-28 14:38           ` Wolfgang Grandegger
2012-11-28 15:17             ` Henrik Bork Steffensen
2012-11-28 14:56         ` Marc Kleine-Budde
2012-11-28 15:17           ` Wolfgang Grandegger
2012-11-26 16:36   ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).