linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegor_sub1@visionsystems.de>
To: Marcus Liebhardt <marcus.liebhardt@yujinrobot.com>
Cc: Linux-CAN <linux-can@vger.kernel.org>
Subject: Re: [Socketcan-users] Support of MCP2515 and AM35x High-End CAN controller in (RT-)SocketCAN
Date: Thu, 03 May 2012 08:42:22 +0200	[thread overview]
Message-ID: <4FA228CE.2080907@visionsystems.de> (raw)
In-Reply-To: <CAKG=6c50e3Q-fKvfhcSzqMAC66jTg2t7+U3f7uE10_r5sC5pLg@mail.gmail.com>

Am 03.05.2012 07:21, schrieb Marcus Liebhardt:
> Hi there!
> 
> First of all, thank you for your valuable feedback! I'll combine my
> questions and answers in one email.
> 
>> Setup time is not a strong argument for choosing -rt vs. Xenomai.
>> [...]
>> What are your requirements concerning latency and data rate?
> 
> Our real-time requirements are 10 ms cycles, latencies around 1000 us
> and we plan to use the 1 Mbit/s data rate. Based on what I read so
> far, this should be feasible with SocketCAN and a _well-tuned_
> RT-Linux.
> And yes, set-up time is not the most important part for this decision,
> but since I am a beginner it is not totally unimportant either.
> 
>> Don't use mcp2515, you won't have any fun with it. [...]
> 
> Why exactly is the MCP2515 not suitable for real-time applications? Is
> the SPI interface a bottleneck? (Isn't SPI fast?)
> 
>> Note that Beaglebone uses TI's AM335x SOC which has D_CAN peripheral vs the Beagleboard
>> Which uses TI's AM37x SOC and it does not have CAN peripheral integrated. AM3517 SOC has
>> HECC CAN peripheral which is different than D_CAN found on AM335x. Both HECC and D_CAN drivers
>> have been submitted to the linux-can list and HECC is already mainline - D_CAN driver has
>> been submitted to this list and is undergoing review - it will be merged with the C_CAN driver
>> shortly.
> 
> Thanks a lot for this clarification! It made me realise that I got
> quite confused by those many SoC variations. Hence, I checked the
> documents again and I hope I got it right this time:
> Neither the Beagleboard (OMAP3530), nor the Beagleboard-xM (DM3730)
> offer a CAN bus controller. But the Beaglebone (AM3359) offers the
> DCAN controller and the Craneboard (AM3517) the HECC.
> Are both controllers suitable for a real-time application with the
> mentioned requirements? Is there a performance difference among both
> controllers?
> And do you think that the whole system consisting of SocketCAN + Linux
> + PREEMPT_RT patch + proper tuning will fulfil the requirements?
> 
> About Linux driver support for the DCAN controller: After skimming
> through the Linux driver guide on the TI wiki [1] I got the impression
> that the DCAN controller is _already_ supported by the kernel. Is the
> TI wiki ahead of time?

TI wiki speaks about their own kernel repository with DCAN drivers. But the drivers are still not mainlined, i.e. you'll need to patch this repo [1] with RT-patch and I don't know if it works without problems. BTW you'll probably get problems patching kernels with both am33xx and am3517, because they are still not fully supported by mainline kernel and you'll have to do with TI's repos. Please let us know if you had success.

1. http://arago-project.org/git/projects/linux-am33x.git

Yegor

  reply	other threads:[~2012-05-03  6:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKG=6c5jafRAGjeQscTKLQbSjPFp7UJYwhhcpOS2QoNvy7Cggw@mail.gmail.com>
2012-05-02  7:51 ` Support of MCP2515 and AM35x High-End CAN controller in (RT-)SocketCAN Marcus Liebhardt
2012-05-02  8:07   ` Marc Kleine-Budde
2012-05-02  8:12   ` Wolfgang Grandegger
2012-05-02  8:17 ` [Socketcan-users] " Gole, Anant
2012-05-03  5:21   ` Marcus Liebhardt
2012-05-03  6:42     ` Yegor Yefremov [this message]
2012-05-03  7:13     ` Wolfgang Grandegger
2012-05-03 10:33       ` Wolfgang Grandegger
2012-05-04  2:27         ` Marcus Liebhardt
2012-05-04  6:58           ` Wolfgang Grandegger

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=4FA228CE.2080907@visionsystems.de \
    --to=yegor_sub1@visionsystems.de \
    --cc=linux-can@vger.kernel.org \
    --cc=marcus.liebhardt@yujinrobot.com \
    /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).