Re: FlexCAN on imx28
From: Tom Evans <hidden>
Date: 2017-03-06 02:42:37
On 03/03/17 22:23, Marc Kleine-Budde wrote:
Hallo Steffen, I'm adding the linux-can ML on Cc, as the answer is of potential common interest. On 03/02/2017 03:42 PM, Steffen Malmgaard Mortensen wrote:quoted
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