All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Guillaume Picquet <guillaume@picquet.fr>, linux-can@vger.kernel.org
Subject: Re: SocketCAN stops read after RX overflow, is it normal?
Date: Thu, 3 Sep 2015 11:01:40 +0200	[thread overview]
Message-ID: <55E80C74.8060600@pengutronix.de> (raw)
In-Reply-To: <55E6CCC8.7010908@picquet.fr>

[-- Attachment #1: Type: text/plain, Size: 1496 bytes --]

On 09/02/2015 12:17 PM, Guillaume Picquet wrote:
> Hi every one.
> 
> I’m not sure to post to the correct list, if so please correct me.

100% correct.

> I’m doing tests on embedded hardware with integrated CAN bus interface 
> (based on AT91). The driver provides Linux Socket API and I try to see 
> the limits:
> I have one transmitter that writes CAN frames (CAN_RAW) as fast as 
> possible and a receiver that reads continuously.
> After a moment the receiver gets an error frame signalling RX overflow. 
> I have no problem with that, it's normal and expected.
> But question is why at this point no more frame is received ?

It's probably a bug in the driver.

> read() do not return, I've tested also with select() which return timeout.
> (The restart-ms option is set)
> 
> I expected some dropped frames and others RX buffer errors but not the 
> end of reception.
> 
> The only way to recover the interface is to set it down and up again.

Try the patches I send you in the other mail. They switch the at91 to
the new infrastructure. Some generic testing show good results, but it
seems you have a harder/better test case.

Hope that helps, please keep us informed,
Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  reply	other threads:[~2015-09-03  9:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02 10:17 SocketCAN stops read after RX overflow, is it normal? Guillaume Picquet
2015-09-03  9:01 ` Marc Kleine-Budde [this message]
2015-10-12  8:05   ` Guillaume Picquet
2015-10-12  8:54     ` Marc Kleine-Budde
2015-10-12  9:04       ` Guillaume Picquet
2015-10-12  9:15         ` Marc Kleine-Budde
2015-10-12  9:46           ` Guillaume Picquet
2015-10-12  9:50             ` Marc Kleine-Budde
2015-09-03  9:16 ` Alexander Stein

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=55E80C74.8060600@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=guillaume@picquet.fr \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.