linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix.de>
To: Vlastimil Setka <setka@vsis.cz>
Cc: rfi@lists.rocketboards.org, Marc Kleine-Budde <mkl@pengutronix.de>
Subject: Re: [Rfi] Cyclone V CAN errors when application pinned to CPU1
Date: Tue, 20 Oct 2015 09:18:07 +0200	[thread overview]
Message-ID: <20151020071807.GH20879@pengutronix.de> (raw)
In-Reply-To: <562155B7.7020504@vsis.cz>

Hi,


Adding Marc to Cc:.

On Fri, Oct 16, 2015 at 09:53:27PM +0200, Vlastimil Setka wrote:
> We discovered very weird behaviour of CAN controller in Cyclone V SoC
> with Linux socketcan stack. The problem was first seen on 3.10-ltsi a
> few months ago, and now again on 3.18 from altera github (with rt
> preempt patch applied).

Could you try if the issue happens with a recent mainline kernel as
well? RT is available for 4.1, so that would be a good choice.
 
> We have a linux application which sends data periodically (1 to 20 ms
> period) out over the can0 socketcan interface. Sometimes the first
> data byte in the CAN frame is zero on the wire, but non-zero in the
> data sent! When running with this period, this happens at random
> times, but during a few minutes it can be allways replicated.
> 
> The problem only appears when the application is pinned to CPU1 by
> linux process afinity mechanism. When pinned to default CPU0, there is
> no problem.
> 
> Anyone seen this issue? Any idea how to debug it and what can be a
> reason? What version (git repo / tag) of Linux should I use?
> 
> We plan to do some in-deep evaluation and testing, but I want to share
> the experience now.

Is your test program available somewhere?

Regards,
Robert Schwebel
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


       reply	other threads:[~2015-10-20  7:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <562155B7.7020504@vsis.cz>
2015-10-20  7:18 ` Robert Schwebel [this message]
2015-10-20  7:37   ` [Rfi] Cyclone V CAN errors when application pinned to CPU1 Marc Kleine-Budde
2016-02-06 17:59     ` Vlastimil Setka
2016-02-06 22:34       ` Tom Evans
2016-02-06 23:56         ` Vlastimil Setka
2016-02-07  0:54           ` Tom Evans
2016-02-07 22:19           ` Tom Evans

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=20151020071807.GH20879@pengutronix.de \
    --to=r.schwebel@pengutronix.de \
    --cc=mkl@pengutronix.de \
    --cc=rfi@lists.rocketboards.org \
    --cc=setka@vsis.cz \
    /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).