Re: [RFC] c_can: improve latency and avoid packet loss

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

 



On di, 17 dec 2019 13:26:19 +0100, Marc Kleine-Budde wrote:
> On 12/17/19 1:16 PM, Kurt Van Dijck wrote:
> > This series is my attempt to make avoid packet loss on a D_CAN chip.
> > 
> > It consists of adding a manual mode to rx-offload, with a temporary queue
> > for use during ISR.
> > The c_can ISR is re-organized to use rx-offload in manual mode.
> > 
> > This reduced the packet loss on our product _almost_ completely.
> > 
> > Finally, I added the commits in can-next/c_can-more-objects.
> 
> Nice. However I don't like the Kconfig options, make it dependent on the
> DT compatible. See the individual mails.
> 
> > I observed no more packet loss since (monitoring for +/- 6 weeks).
> > Our product runs a v4.9 kernel, on which I tuned the code.
> > This series is a forward-ported version of it, on top of can-next.
> 
> How many RX/TX mailboxes are you using?

48rx, 16tx. But I could reduce to 8tx or even 4tx too without har
without harm, as you suggested.

> 
> 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 |
> 






[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