FlexCAN on imx28
A message that is not in the archive (sent off-list or not yet received): [email protected]
Marc Kleine-Budde
maintainerHallo Steffen,
I'm adding the linux-can ML on Cc, as the answer is of potential common interest.
Quoted 5 lines · Steffen Malmgaard Mortensen
I have been experiencing problems with CAN package loss under high bus load at high bit rates using an imx28. During my search for a solution, I fell upon your flexcan-maxmb branch on the linux-can-next git tree. As you are the author, I turn to you for a bit of advice. What is the current state of the code?
The current code is available as the tag "linux-can-next-for-4.11-20170206" and has already been merged to net-next. This means it will be included in the upcoming v4.11 release.
Quoted 1 line
Is it tested on imx28, or only newer SOCs?
Yes.
Quoted 1 line
What are the plans for merging to linux-fslc or other upstream trees?
It's already upstream \o/
Regarding any freescale/nxp/... vendor trees I have personally no interest of merging the driver there. Feel free to contact me if you need commercial support, though.
regards,
Marc
Signature · 4 lines
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 |
Quoted 8 lines · Marc Kleine-Budde
Hallo Steffen,
I'm adding the linux-can ML on Cc, as the answer is of potential common interest.
Quoted 2 lines · Steffen Malmgaard Mortensen
I have been experiencing problems with CAN package loss under high bus load at high bit rates using an imx28.
Steffen didn't say which version of Linux he's using.
If he's using the latest NXP-supported version of Linux (2.6.35) then the following patches may be of interest to him.
Search for my posts on this thread and then follow the links to the other bug reports.
https://community.nxp.com/message/593611#comment-585209
This summarises the close to 20 separate bugs in the one old driver:
https://community.nxp.com/message/593606#593606
Why would anyone be using as old as 2.6.35? It is the only "supported" version for this chip i.MX53. And in my case the only one that can access the graphics hardware in the i.MX53.
If Stefan's Linux is a later version where the CAN driver uses the FlexCAN FIFO, but is the one using NAPI for everything, then that pretty much guarantees packet loss and overflow. The have been some very good recent changes to the driver to fix this.
Tom
Quoted 28 lines · Tom Evans
Quoted 12 lines · Marc Kleine-Budde
Hallo Steffen,
I'm adding the linux-can ML on Cc, as the answer is of potential common
interest.Quoted 4 lines · Steffen Malmgaard Mortensen
I have been experiencing problems with CAN package loss under high bus
load at high bit rates using an imx28.Steffen didn't say which version of Linux he's using.
Quoted 1 line
If he's using the latest NXP-supported version of Linux (2.6.35) then
the
following patches may be of interest to him.Quoted 1 line
Search for my posts on this thread and then follow the links to the
other bug
reports.Quoted 4 lines
https://community.nxp.com/message/593611#comment-585209
This summarises the close to 20 separate bugs in the one old driver:
https://community.nxp.com/message/593606#593606
Why would anyone be using as old as 2.6.35? It is the only"supported" version
for this chip i.MX53. And in my case the only one that can access the graphics
hardware in the i.MX53.
Quoted 8 lines
Quoted 1 line
If Stefan's Linux is a later version where the CAN driver uses the
FlexCAN
FIFO, but is the one using NAPI for everything, then that pretty much
guarantees packet loss and overflow. The have been some very good recent
changes to the driver to fix this.Quoted 1 line
Tom
Hi Marc and Tom,
Thanks for your input. I'm using the FSL Community BSP v2.2 to build a small linux distribution for a custom imx28-based board. Since I didn't know any better, I used the same kernel version (4.8.x+fslc branch from linux-fslc tree) that is used for the imx28evk reference board. Apart from the CAN issue the kernel seems to do the job, but if you (or anyone on the mailing list) think a different kernel version would be more appropriate, I would love to hear arguments?
/Steffen