Re: mcp2517fd: transmit errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/9/20 4:16 PM, Kurt Van Dijck wrote:
> I'm using a v5.4 kernel now, with backported 'can: mcp25xxfd: initial commit'.
> I did focus up to now to CAN recv performance, but now I face another
> issue. I have errors transmitting to CAN.

What kind of errors?

> It's unstable.

What does that mean?

> I need to collect more details, and it is now about focus number 1.
> 
> I managed to decrease the urgency for my project by inserting a delay
> in the most busy transmitter.
> 
> Any ideas what to look for?

The mcp2517fd suffers from the MAB TX underflow errata: See 1. in
http://ww1.microchip.com/downloads/en/DeviceDoc/MCP2517FD-External-CAN-FD-Controller-with-SPI-Interface-20005688B.pdf

Compile the driver with "#define DEBUG" or remove the
"MCP251XFD_QUIRK_MAB_NO_WARN" from the mcp251xfd_devtype_data_mcp2517fd. Then
you should see an error message when the chip switches modes due to the MAB
underrun.

If it's that errors there's not so much you can do, maybe optimize the SPI host
driver (or use a mcp2518fd). Which SoC are you on?

regards,
Marc

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

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux