All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Tim Hotfilter <thotfilter@osdr.org>, linux-can@vger.kernel.org
Subject: Re: Problem using Linux CAN
Date: Wed, 22 Jul 2015 19:41:46 +0200	[thread overview]
Message-ID: <55AFD5DA.7010601@hartkopp.net> (raw)
In-Reply-To: <CD02850D-3BF4-4AE3-B1A3-72E34D09C061@osdr.org>

On 22.07.2015 12:49, Tim Hotfilter wrote:

> I am developing a control unit using four CAN Controllers based on the Xilinx Zynq 7000. Two CAN Controllers (based on the sja1000) are implemented in the Zynq’s FPGA and two are already integrated. The control unit runs Linux 3.19 with socket can.
> Under higher CAN busload (30% or more) socket CAN returns Error 105: No buffer space available.

How did you get this error?
What tools/kernel/distro are you using?

Did you try 'cangen' from https://github.com/linux-can/can-utils ?

Regards,
Oliver

> The problem is independent from the hardware, it occurs on both sja1000 and xilinx can. Restarting the network device by bringing it down and up enables to send again. But since there are other ECUs using watchdogs this solution is not suitable.
> After some kernel debugging it exposes that somehow a transmit interrupt gets lost. This results in a stopped tx queue and the transmit buffer overflows.
>
> Is there a possibility to handle with the lost interrupt, like waking up the queue after a short timeout?
>
> Thank you in advance!
>
> Best regards
> Tim Hotfilter
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

  reply	other threads:[~2015-07-22 17:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 10:49 Problem using Linux CAN Tim Hotfilter
2015-07-22 17:41 ` Oliver Hartkopp [this message]
2015-07-22 17:52   ` Tim Hotfilter
2015-07-22 18:39     ` Oliver Hartkopp
     [not found]       ` <0948A186-060F-4A31-8359-755DE78647A0@osdr.org>
2015-07-23 13:13         ` Tim Hotfilter
2015-07-23 17:26           ` Oliver Hartkopp
2015-07-24  7:53             ` Tim Hotfilter
2015-07-25 13:45               ` Oliver Hartkopp

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=55AFD5DA.7010601@hartkopp.net \
    --to=socketcan@hartkopp.net \
    --cc=linux-can@vger.kernel.org \
    --cc=thotfilter@osdr.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.