From: Henrik Bork Steffensen <hbs@rosetechnology.dk>
To: linux-can@vger.kernel.org
Subject: at91_can.c: Data transmission stops
Date: Mon, 26 Nov 2012 15:28:32 +0100 [thread overview]
Message-ID: <50B37C90.3040904@rosetechnology.dk> (raw)
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
next reply other threads:[~2012-11-26 14:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-26 14:28 Henrik Bork Steffensen [this message]
2012-11-26 15:25 ` at91_can.c: Data transmission stops 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50B37C90.3040904@rosetechnology.dk \
--to=hbs@rosetechnology.dk \
--cc=linux-can@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).